multiGLM {hrf} | R Documentation |
multiGLM for CIFTI
Description
Performs classical Bayesian GLM for task fMRI activation with CIFTI-format data, evaluating multiple design matrices. Includes the pre-processing steps of nuisance regression. Supports single-session analysis only.
Usage
multiGLM(
BOLD,
design,
brainstructures = c("left", "right"),
TR = NULL,
resamp_res = 10000,
hpf = NULL,
nuisance = NULL,
design_canonical = NULL,
verbose = 1,
meanTol = 1e-06,
varTol = 1e-06
)
Arguments
BOLD |
fMRI timeseries data in CIFTI format ("*.dtseries.nii").
For single-session analysis this can be a file path to a CIFTI file or a
If |
design |
A 3D numeric array that is locations by fields by designs. |
brainstructures |
Character vector indicating which brain structure(s)
of |
TR |
Temporal resolution of the data, in seconds. |
resamp_res |
For cortex spatial model. The number of vertices to which
each cortical surface should be resampled, or For computational feasibility, a value of |
hpf |
Add DCT bases to Using at least two DCT bases is as sufficient for detrending as using linear
and quadratic drift terms in the nuisance matrix. So if DCT detrending is
being used here, there is no need to add linear and quadratic drift terms to
|
nuisance |
(Optional) A Detrending/high-pass filtering is accomplished by adding DCT bases to the
nuisance matrix; see the parameters Do not add spike regressors for scrubbing to the |
design_canonical |
TO DO |
verbose |
|
meanTol , varTol |
Tolerance for mean and variance of each data location.
Locations which do not meet these thresholds are masked out of the analysis.
Default: |
Value
An object of class "mGLM"
: a list with elements
- brainstructures
data.frame
summarizing the spatial features of each brain structure modeled.- fields
data.frame
with thename
, relatedtask
, andHRF_order
of each field.
Connectome Workbench Requirement
This function uses a system wrapper for the 'wb_command' executable. The user must first download and install the Connectome Workbench, available from https://www.humanconnectome.org/software/get-connectome-workbench .