Extracting head motion measurements.

extract_headmotion(filename = "motiondat.csv", start = 1)

Arguments

filename

the desired filename, with a *.csv extension, of the output.Set to 'motiondat.csv' by default

start

calculate motion parameters from this frame index. set to 1 by default

Value

outputs a .csv file containing columns of

  • subj Subject ID.

  • no.frames Number of frames.

  • FD Framewise displacement.

  • RMSD Root Mean Squared Displacement.

  • FD.20 Number of frames with FD>0.2.

  • RMSD.25 Number of frames with RMSD>0.25.

Details

This function extracts head motion measurements from an fMRIprep output directory, and outputs these measurements in a .csv file

Examples

if (FALSE) {
extract_headmotion()
}