This code is archived. The gear has been moved to GitLab bids-hcp
Flywheel Gear that runs the structural preprocessing steps of the Human Connectome Project Minimal Preprocessing Pipeline (MPP) described in Glasser et al. 2013. Currently, this includes v4.0.1 release of PreFreeSurfer, FreeSurfer, and PostFreeSurfer pipelines, as well as generating some helpful QC images. For more info on the pipelines, see HCP Pipelines.
- T1w and T2w volumes should not have any online bias-correction (e.g.: no "Pre-scan Normalize" option on Siemens scanners). If on-scanner bias-correction was applied, it must be applied to BOTH T1w and T2w inputs.
- All MRI inputs (T1w, T2w, FieldMaps) must include BIDS-conformed DICOM metadata!
- Gradient nonlinearity correction (using coefficient file) is currently only available for data from Siemens scanners.
- Readout distortion correction using B0 field maps (Field map "Option 1", below) is currently only available for data from Siemens scanners. "TOPUP"-style correction (Field map "Option 2", below) should work for all data (but has not yet been tested).
- T1-weighted anatomical volume (eg: MPRAGE), <= 1mm spatial resolution
- T2-weighted anatomical volume (eg: SPACE, FLAIR), <= 1mm spatial resolution
- FreeSurfer license.txt file (found in
$FREESURFER_HOME/license.txt
)
- Field map for correcting readout distortion
- Option 1: "typical" GRE B0 field map including magnitude and phase volumes
- Option 2: a pair of spin echo with opposite phase-encode directions ("Positive" = R>>L or P>>A, and "Negative" = L>>R or A>>P) for "TOPUP"-style distortion estimation
- Note 1: If readout distortion correction is performed, user must specify the correct "StructualUnwarpDirection" config option. For HCP scans (sagittal slices with A>>P phase-encoding), this should be "z", corresponding to readout in the F>>H direction.
- Note 2: This effect is very small, at most 0.35mm in a few high-susceptibility areas (e.g., orbitofrontal)
- Gradient nonlinearity coefficients copied from scanner. See FAQ 8. What is gradient nonlinearity correction?
- If needed, this file can be obtained from the console at
C:\MedCom\MriSiteData\GradientCoil\coeff.grad
for Siemens scanners - Note: This effect is significant for HCP data collected on custom Siemens "ConnectomS" scanner, and for 7T scanners. It is relatively minor for production 3T scanners (Siemens Trio, Prisma, etc.)
- If needed, this file can be obtained from the console at
- Subject: Subject ID to use for outputs
- RegName: Surface registration type: either 'FS' (freesurfer) or 'MSMSulc' (HCP default). (See FSL MSM for details on MSMSulc)
- BrainSize: Brain size in mm (in Superior-Inferior axis), typically 150 (default) for adults
- TemplateSize: Voxel size of HCP anatomical template. Best if matches input. (Options = 0.7mm, 0.8mm (default), 1mm)
- StructuralUnwarpDirection: Readout direction for structural scans ( 'x', 'x-', 'y', 'y-', 'z', 'z-' ). HCP default = 'z' (Only used when providing fieldmaps to correct readout distortion)
\<subject\>\_hcpstruct.zip
: Zipped output directory containing completeMNINonLinear/
,T1w/
, andT2w/
folders.\<subject\>\_hcpstruct\_QC.*.png
: QC images for visual inspection of output quality (details to come...)- Logs (details to come...)
Flywheel Gear that runs the functional preprocessing steps of the Human Connectome Project Minimal Preprocessing Pipeline (MPP) described in Glasser et al. 2013. Currently, this includes v4.0-alpha release of fMRIVolume and fMRISurface, as well as generating some helpful QC images. For more info on the pipelines, see HCP Pipelines.
- All MRI inputs (fMRI time series, FieldMaps) must include BIDS-conformed DICOM metadata!
- Gradient nonlinearity correction (using coefficient file) is currently only available for data from Siemens scanners.
- Readout distortion correction using B0 field maps (Field map "Option 1", below) is currently only available for data from Siemens scanners. "TOPUP"-style correction (Field map "Option 2", below) should work for all data (but has not yet been tested).
- fMRI time series NiFTI
- Field map for correcting readout distortion
- Option 1: GRE = "typical" GRE B0 field map including magnitude and phase volumes
- Option 2: SpinEchoFieldMap = a pair of spin echo with opposite phase-encode directions ("Positive" = R>>L or P>>A, and "Negative" = L>>R or A>>P) for "TOPUP"-style distortion estimation
- StructZip output from the HCP-Struct gear (containing
T1w/
,T2w/
, andMNINonLinear/
folders) - FreeSurfer license.txt file (found in
$FREESURFER_HOME/license.txt
)
- fMRIScout: high-quality exemplar volume from fMRI time-series. If using Multi-Band for fMRI, and Single-Band reference volume is available, use SBRef. Otherwise, leave empty to first time series volume for registration.
- Gradient nonlinearity coefficients copied from scanner. See FAQ 8. What is gradient nonlinearity correction?
- If needed, this file can be obtained from the console at
C:\MedCom\MriSiteData\GradientCoil\coeff.grad
for Siemens scanners - Note: This effect is significant for HCP data collected on custom Siemens "ConnectomS" scanner, and for 7T scanners. It is relatively minor for production 3T scanners (Siemens Trio, Prisma, etc.)
- If needed, this file can be obtained from the console at
- fMRIName: Output name for preprocessed data (default = rfMRI_REST)
- BiasCorrection: Bias-field estimation method. 'NONE' (default), 'SEBased', or 'Legacy'. 'SEBased'=Estimate from SpinEchoFieldMap (only possible with both Pos and Neg SpinEcho), 'Legacy'=Estimate from structural scans (only valid if structural collected in the same session, and without any subject movement)
- MotionCorrection: Use 'MCFLIRT' (standard FSL moco) for most acquisitions. 'FLIRT'=custom algorithm used by HCP internally, but not recommended for public use
- AnatomyRegDOF: Degrees of freedom for fMRI->Anat registration. 6 (default) = rigid body, when all data is from same scanner. 12 = full affine, recommended for 7T fMRI->3T anatomy
- RegName: Surface registration to use during CIFTI resampling: either 'FS' (freesurfer) or 'MSMSulc'. ('Empty'=gear uses RegName from HCP-Structural)
\<subject\>\_\<fMRIName\>\_hcpfunc.zip
: Zipped output directory containing\<fMRIName\>/
andMNINonLinear/Results/\<fMRIName\>/
folders\<subject\>\_\<fMRIName\>\_hcpfunc\_QC.*.png
: QC images for visual inspection of output quality (Distortion correction and registration to anatomy, details to come...)- Logs (details to come...)
Flywheel Gear that runs the diffusion preprocessing steps of the Human Connectome Project Minimal Preprocessing Pipeline (MPP) described in Glasser et al. 2013. This includes correction for EPI distortion (using FSL topup), correction for motion and eddy-current distortion (using FSL eddy), and registration to subject anatomy. The output of this gear can serve as the input for diffusion modeling (eg: bedpostx) and tractography. For more info on the pipelines, see HCP Pipelines.
- Diffusion time series must be provided in pairs with opposite phase-encoding.
- All MRI inputs must include BIDS-conformed DICOM metadata!
- Gradient nonlinearity correction (using coefficient file) is currently only available for data from Siemens scanners.
- Pair of diffusion scans (each including NiFTI+bvec+bval) with identical acquisitions but opposite phase-encoding (R>>L + L>>R, or P>>A + A>>P)
- StructZip output from the HCP-Struct gear (containing
T1w/
,T2w/
, andMNINonLinear/
folders) - FreeSurfer license.txt file (found in
$FREESURFER_HOME/license.txt
)
- Additional diffusion pairs from the same session (DWIPositiveData2 + DWINegativeData2, etc...)
- Gradient nonlinearity coefficients copied from scanner. See FAQ 8. What is gradient nonlinearity correction?
- If needed, this file can be obtained from the console at
C:\MedCom\MriSiteData\GradientCoil\coeff.grad
for Siemens scanners - Note: This effect is significant for HCP data collected on custom Siemens "ConnectomS" scanner, and for 7T scanners. It is relatively minor for production 3T scanners (Siemens Trio, Prisma, etc.)
- If needed, this file can be obtained from the console at
\<subject\>\_\<DWIName\>\_hcpdiff.zip
: Zipped output directory containing\<subject\>/<DWIName\>/
and\<subject\>/T1w/<DWIName\>/
folders\<subject\>\_\<DWIName\>\_hcpdiff\_QC.*.png
: QC images for visual inspection of output quality (details to come...)- Logs (details to come...)
The latest iteration of the hcp gears use a common docker base image to consolidate both library installations and common functionality across gears. See HCP Base Docker Image for details.