Routines for Common fMRI Processing Tasks
All binary?
All integers?
Convert CIFTI, NIFTI, or GIFTI input to matrix
Bandstop filter
Stacked carpetplot
Carpetplot
Check required packages for the data format
Center matrix columns
Color palette
Anatomical CompCor for HCP NIFTI and CIFTI data
CompCor: get noise components
Anatomical CompCor
Convert coordinate list to 3D array
Un-vectorize correlation matrix
Crop a 3D array
fMRI data for scrub and CompCor
Generate cosine bases for the DCT
DCT and frequency conversion
3dDespike from AFNI, step 2
3dDespike from AFNI, step 1
3dDespike from AFNI
Dilate 3D mask
PCA-based Dimension Reduction and Prewhitening
Multiple regression for parcel data
Dual Regression
Erode 3D mask
Expand realignment parameters (RPs)
FFT detrending
fMRItools: Routines for Common fMRI Processing Tasks
Format data for pscrub and CompCor
Format a path
bptf function from FSL
Get FORMAT from format
Get kwargs
Get NIFTI ROI masks
Hat matrix
image_scale
Infer fMRI data format for several inputs
Infer fMRI data format
Is this object the expected data type, and length one?
Is this numeric vector constant?
Is this an integer?
Is this object a positive number? (Or non-negative)
Is this an existing file path?
Create a mask based on vertices that are invalid
Matrix to Upper Triangular Vector
Do these character vectors match exactly?
Match user inputs to expected values
Compute mean squares from variance decomposition
Merges two kwargs
Mode of data vector
noise parameters for CompCor
Normalize BOLD data
Nuisance regression
Pad 3D Array
PCA for tall matrix
Convert data values to percent signal.
Plot FC with ggplot2
Plot FC
Wrapper to functions for reading NIFTIs
Row medians
Scale a design matrix
Robust scaling
Scale the BOLD timeseries
Sign match ICA results
Positive skew?
Sum of each voxel's neighbors
Format a path for system
Temporal filtering (bandpass, highpass, lowpass) with DCT or FFT
Unmask matrix data
Transform vector data to image
Convert vectorized data back to volume
Upper Triangular Vector to Matrix
Validate design matrix
Compute variance decomposition
Get coordinates of each voxel in a mask
Supports fMRI (functional magnetic resonance imaging) analysis tasks including reading in 'CIFTI', 'GIFTI' and 'NIFTI' data, temporal filtering, nuisance regression, and aCompCor (anatomical Components Correction) (Muschelli et al. (2014) <doi:10.1016/j.neuroimage.2014.03.028>).