Skip to content

flywheel-apps/hcp-icafix

Repository files navigation

Docker Pulls Docker Stars

flywheel/hcp-icafix

Flywheel Gear that runs ICA-FIX denoising on functional data preprocessed according to the Human Connectome Project Minimal Preprocessing Pipeline (MPP). This is based on scripts from the v4.0-alpha release of the ICAFIX, PostFix, and RestingStateStats pipelines. For more info on the pipelines, see HCP Pipelines. For more info on FSL FIX, including available classifiers, see FSL FIX User Guide.

Important notes

  • ICA-FIX works best when applied to time series with many volumes. Original HCP rfMRI scans were 15 minutes TR=720ms each (1200 volumes). If data was collected in shorter scans within the same session, it's recommended to concatenate these before running ICA. For this gear, you can provide multiple FuncZip inputs and the pipeline will handle the concatenation and split the outputs once it completes.
  • If providing multiple FuncZip inputs, make sure each HCP-Func gear was run with a unique fMRIName! Otherwise, scans will be overwritten!

Required inputs

  1. FuncZip output from HCP-Func gear for at least one functional run.
  2. StructZip output from the HCP-Struct gear (containing T1w/, T2w/, and MNINonLinear/ folders).

Configuration options

  1. FIXClassifier: Name of FIX training file to use for classification. 'Standard', 'HCP_hp2000' (default), 'HCP7T_hp2000', 'WhII_MB6', 'WhII_Standard', 'UKBiobank'. See FSL FIX User Guide: Trained-weights files for details.
  2. HighPassFilter: Cutoff of temporal highpass full-width (2*sigma) in seconds (default=2000). This should match the filter cutoff used during classifier training.
  3. RegName: Surface registration to use during CIFTI resampling: either 'FS' (freesurfer) or 'MSMSulc'. ('Empty'=gear uses RegName from HCP-Structural)

Outputs

  • <subject>_<fMRIName>_hcpicafix.zip: Zipped output directory.
  • <subject>_<fMRIName>_RestingStateStats.zip: Zipped RestingStateStats directory containing
    • <fMRIName>_Atlas_stats.dscalar.nii: spatial maps of SNR, CNR, etc...
    • <fMRIName>_Atlas_stats.txt: whole-brain summary of SNR, CNR, etc...
    • RestingStateStats/*.png: gray-plot images depicting impact of ICAFIX and other denoising strategies on time series and global signal.
  • <subject>_<fMRIName>_ICA_Classification_Scene.zip: Zip containing wb_view .scene files to load into the Connectome Workbench Viewer - wb_view to inspect ICA components and their classification. After unzipping, view with wb_view <subject>/MNINonLinear/Results/<fMRIName>/<fMRIName>/<fMRIName>_hp<HP>.ica/*.scene
  • Note: When providing multiple FuncZip inputs, the outputs will be named <subject>_ICAFIX_multi_<fMRIName1>_<fMRIName2>...
  • Logs (details to come...)

Optional inputs

  1. FuncZip2, FuncZip3, etc... HCP-Functional output zips from additional scans.
  2. CustomClassifier: Supply your own .RData file containing training weights.