Calculating mean FD from XCP outputs and generating bash script to remove fMRI runs with excessive headmotion

headmotion.XCP(filename = "FD.csv", threshold = 0.25)

Arguments

filename

Filename of the output.csv file. Set to FD.csv by default

threshold

mean FD threshold for identifying fMRI runs for deletion due to excessive headmotion. Set to 0.25 by default

Value

outputs a .csv file containing the columns of fMRI runs and FD, and a bash script del.sh

Details

This function calculating mean FD from XCP outputs and generating bash script to remove fMRI runs with excessive headmotion. This is used mainly on the XCP-d post-processed HCP fMRI data.

Examples

if (FALSE) { # \dontrun{
headmotion.XCP()
} # }