xcp_d.utils.modified_data.compute_fd

xcp_d.utils.modified_data.compute_fd(confound, head_radius=50)[source]

Compute framewise displacement.

NOTE: TS- Which kind of FD? Power? NOTE: TS- What units must rotation parameters be in?

Parameters:
  • confound (pandas.DataFrame) – DataFrame with six motion parameters.

  • head_radius (float or “auto”) – Radius of the head, in millimeters, for framewise displacement calculation.

    xcp_d’s default head radius is 50. The recommended value for infants is 35. A value of ‘auto’ is also supported, in which case the brain radius is estimated from the preprocessed brain mask.

Returns:

fdres – The framewise displacement time series.

Return type:

numpy.ndarray