xcp_d.utils.modified_data

Functions for interpolating over high-motion volumes.

Functions

cast_cifti_to_int16(in_file)

Cast a CIFTI file to int16 data.

compute_fd(confound[, head_radius])

Compute framewise displacement.

downcast_to_32(in_file)

Downcast a file from >32-bit to 32-bit if necessary.

flag_bad_run(fmriprep_confounds_file, ...)

Determine if a run has too many high-motion volumes to continue processing.

scale_to_min_max(X, x_min, x_max)

Scale data to between minimum and maximum values.