Wrapper to CompCor
for HCP data. Can perform CompCor on a
data ROI from the same fMRI volume as the one containing the noise ROIs,
or on a separate CIFTI file.
CompCor.HCP(
vol,
labs = NULL,
data_labs = NULL,
data_cii = NULL,
noise_ROI = NULL,
noise_nPC = 5,
noise_erosion = 0,
verbose = TRUE
)
vol | The \(I x J x K x T\) volumetric fMRI timeseries, including both
the data voxels (unless |
---|---|
labs | The \(I x J x K\) labels. Values should be according to this table: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/AnatomicalROI/FreeSurferColorLUT . In the HCP, the corresponding file is "ROIs/Atlas_wmparc.2.nii.gz". Can also be the file path to this NIFTI. |
data_labs | Numeric vector of labels that make up the data ROI. If
Alternatively, this can be If |
data_cii |
|
noise_ROI | List of numeric vectors, where each entry contains the label
values in
These default ROIs are based on this forum post: https://www.mail-archive.com/hcp-users@humanconnectome.org/msg00931.html Alternatively, this can be |
noise_nPC, noise_erosion | See |
verbose | Print occasional updates? Default: |
A list with entries "data"
and "noise"
.
If !is.null(data_labs)
, "data"
will be a \(V x T\) data matrix where
each row is a voxel time series from which the noise components have been
regressed (voxels in spatial order, and only voxels in the data ROI are
included). Otherwise, if !is.null(data_cii)
, it will be the same "cifti"
object but with the noise components regressed from each brainordinate.
The entry "noise"
is a list of T
\(x\) noise_nPC
PC
scores, one for each noise_ROI
.