ddmra.utils.get_fd_power

get_fd_power(motion, order=['x', 'y', 'z', 'r', 'p', 'ya'], unit='deg', radius=50)[source]

Calculate Framewise Displacement (Power version).

This is meant to be very flexible, but is really only here for the test ADHD dataset.

Parameters
  • motion ((T, 6) numpy.ndarray) – Translation and rotation motion parameters.

  • order ((6,) list) – Order of the motion parameters in motion array. Some combination of ‘x’, ‘y’, ‘z’, ‘r’, ‘p’, and ‘ya’. Default has translations then rotations.

  • unit ({‘deg’, ‘rad’}) – Which unit the rotation parameters are in. ‘deg’ for degree (default in SPM and AfNI), ‘rad’ for radian (default in FSL). Default is ‘deg’.

  • radius (float or int) – Radius of brain in millimeters. Default is 50, as used by Power.

Returns

fd ((T,) numpy.ndarray) – Framewise displacement values.