getfMRInuisanceVariables.Rd
Will motion correct, run compcorr and estimate global signal. Outputs a list with the time series data matrix (time by voxels), motion and other nuisance variables, global signal (for BOLD or ASL), the mask and the average time series image. Meant to be used before filterfMRIforNetworkAnalysis or any other results-oriented processing.
getfMRInuisanceVariables(fmri, maskThresh = 500, moreaccurate = 1, mask = NULL)
outputs list described above.
if (FALSE) { # \dontrun{
if (!exists("fn")) fn <- getANTsRData("pcasl")
pcasl <- antsImageRead(fn)
aslmean <- getAverageOfTimeSeries(pcasl)
aslmask <- getMask(aslmean)
ee <- getfMRInuisanceVariables(pcasl,
mask = aslmask,
moreaccurate = F
)
} # }