Skip to content

Pipeline Parameters

This section will detail how to set the inputs and outputs of the pipeline.

ParameterDescriptionTypeDefaultRequiredHidden
inputPath to the BIDS directory location.
HelpEnsure the BIDS data structure is respected. For more information, see the documentation
string
participant_labelList of participant IDs or a single participant ID.
HelpThis will be used to select the specific participants to process. The best way to provide them is in a params.yml file, see the documentation for more information.
array
input_derivPath to the derivatives directory to use as input.string
bids_scriptPath to the BIDS script.
HelpThis is a script that will be used to generate the BIDS directory structure from the raw data. Unless you know what you are doing, this should not be changed. Will be removed in a future release.
stringTrue
outdirThe output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure.
HelpFor a detailed description of the output files, please see the documentation.
stringTrue
emailEmail address for completion summary.
HelpSet this parameter to your e-mail address to get a summary e-mail with details of the run sent to you when the workflow exits. If set in your user config file (~/.nextflow/config) then you don’t need to specify this on the command line for every run.
string
multiqc_title_subjectMultiQC report title for subject report. Printed as page header, used for filename if not otherwise specified.string
multiqc_title_globalMultiQC report title for global report. Printed as page header, used for filename if not otherwise specified.string

Options for FreeSurfer, FastSurfer, and/or M-CRIB-S processing. Only relevant if you select the segmentation profile.

ParameterDescriptionTypeDefaultRequiredHidden
methodMethod to use to perform surface reconstruction and cortical/subcortical segmentation. Will only affect subjects > 3 months of age. Recon-all-clinical is highly recommended for subjects between 3 months and 5 years old. Options include recon-all, recon-all-clinical, or FastSurfer.stringrecon-all-clinicalFalse
fs_licensePath to FreeSurfer license file.
HelpThis is required to run the segmentation profile. You can obtain a FreeSurfer license from the FreeSurfer website here.
string
cerebnetUse CerebNet for cerebellum segmentation in FastSurfer.booleanFalseTrue
hypvinnUse HypVINN for hypothalamus sub-segmentation in FastSurfer.booleanFalseTrue
acq3TUse 3T acquisition parameters.booleanTrueTrue
fs_output_dirPath to FreeSurfer/FastSurfer/M-CRIB-S output directory.
HelpDefault location will be alongside --outdir. For more information, please see the documentation
stringFalse
mcribs_jointhreshJoin threshold used in the MCRIBS surface reconstruction step.numberTrue
mcribs_fastcollisionUse deformable fast collision test in the MCRIBS surface reconstruction step.booleanFalseTrue
mcribs_nopialoutsideDo not ensure pial is outside of WM in the MCRIBS surface reconstruction step.booleanFalseTrue
mcribs_seedSeed used in the MCRIBS surface reconstruction step.number1234True

Options for atlases used in the pipeline.

ParameterDescriptionTypeDefaultRequiredHidden
utils_folderPath to the utils folder.
HelpThis folder contains the atlases used in the pipeline. Unless you know what you are doing, please do not change this.
stringTrue

Processing steps to apply on anatomical images.

Section titled “Processing steps to apply on anatomical images.”

Processing steps to apply on anatomical images. (NOTE: the same steps will be applied on both T1w/T2w if both are available).

ParameterDescriptionTypeDefaultRequiredHidden
preproc_run_denoisingRun denoising on the anatomical images.booleanTrueFalse
preproc_run_N4Run N4 bias correction on the anatomical images.booleanTrueFalse
preproc_run_resamplingRun resampling on the anatomical images.booleanTrueFalse
preproc_run_synthstripRun SynthStrip for brain extraction.booleanTrueFalse
preproc_run_ants_betRun AntsBet for brain extraction
HelpThis step will require the use of a template image which does not match all ages and is much slower than the default synthstrip method. Not recommended.
booleanFalseFalse
preproc_run_cropRun cropping on the anatomical images.booleanTrueFalse
synthstrip_weightsPath to alternative weights for SynthStrip brain extraction.stringNoneFalse

Options for T1w processing. In the case where you do not have a T1w image, you can ignore those options.

ParameterDescriptionTypeDefaultRequiredHidden
t1_denoise_number_of_coilsNumber of coils used in the T1w denoising step.integer1True
t1_bias_bspline_knot_per_voxelNumber of B-spline knots per voxel used in the T1w bias correction step.number8True
t1_bias_shrink_factorShrink factor used in the T1w bias correction step.integer4True
t1_resample_voxel_sizeVoxel size used in the T1w resampling step.integer1True
t1_resample_interpInterpolation method used in the T1w resampling step.stringlinTrue
t1_synthstrip_borderMask border threshold used in the SynthStrip brain extraction step.integer1True
t1_synthstrip_nocsfExclude CSF from the border in the SynthStrip brain extraction step.booleanFalseTrue

Options for T2w preprocessing. In the case where you do not have a T2w image, you can ignore those options.

ParameterDescriptionTypeDefaultRequiredHidden
t2_denoise_number_of_coilsNumber of coils used in the T2w denoising step.integer1True
t2_bias_bspline_knot_per_voxelNumber of B-spline knots per voxel used in the T2w bias correction step.number8True
t2_bias_shrink_factorShrink factor used in the T2w bias correction step.integer4True
t2_resample_voxel_sizeVoxel size used in the T2w resampling step.integer1True
t2_resample_interpInterpolation method used in the T2w resampling step.stringlinTrue
t2_synthstrip_borderMask border threshold used in the SynthStrip brain extraction step.integer1True
t2_synthstrip_nocsfExclude CSF from the border in the SynthStrip brain extraction step.booleanFalseTrue

Options for anatomical co-registration. Will only be performed if both T2w and T1w images are available.

ParameterDescriptionTypeDefaultRequiredHidden
coreg_dimensionalityDimensionality of the registered images.integer3True
coreg_transformTransform used in the coregistration step. t: translation (1 stage), r: rigid (1 stage), a: rigid + affine (2 stages), s: rigid + affine + deformable syn (3 stages)stringaFalse
coreg_quickUse antsRegistrationSyNQuick for the coregistration step.booleanFalseFalse

Options for DWI preprocessing. You can use these options to customise the behaviour of the DWI preprocessing steps.

ParameterDescriptionTypeDefaultRequiredHidden
skip_dwi_preprocessingSkip the DWI preprocessing steps.booleanFalseFalse
dwi_b0_thresholdB0 threshold used in the DWI preprocessing steps.integer20False
dwi_shell_toleranceShell tolerance used in the DWI preprocessing steps.integer50False
preproc_dwi_run_denoisingRun denoising on the DWI images.booleanTrueFalse
dwi_denoise_patch_sizePatch size used in the DWI denoising step.integer7True
preproc_dwi_run_degibbsRun Gibbs ringing correction on the DWI images.booleanFalseFalse
topup_eddy_run_topupRun topup in the susceptibility distortion correction step.booleanTrueFalse
dwi_susceptibility_config_filePath to the susceptibility distortion correction config file.stringb02b0.cnfTrue
dwi_susceptibility_output_prefixPrefix used in the susceptibility distortion correction step.stringtopup_resultsTrue
dwi_susceptibility_readoutReadout time used in the susceptibility distortion correction step.number0.04True
dwi_susceptibility_encoding_dirEncoding direction used in the susceptibility distortion correction step.stringyTrue
topup_eddy_run_eddyRun eddy in the eddy current correction step.booleanTrueFalse
dwi_motion_and_eddy_commandCommand used in the motion and eddy correction step.stringeddy_cpuTrue
dwi_motion_and_eddy_bet_f_thresholdBet f threshold used in the motion and eddy correction step.number0.16True
dwi_motion_and_eddy_restore_slicesRestore slices in the motion and eddy correction step.booleanTrueTrue
dwi_pwdavg_shellsShells used in the PowderAverage step.stringFalse
dwi_run_synthstripRun SynthStrip for brain extractionbooleanTrueFalse
dwi_synthstrip_borderBrain border used in the SynthStrip brain extraction step.integer1True
dwi_synthstrip_nocsfExclude CSF from the border in the SynthStrip brain extraction step.booleanFalseTrue
dwi_synthstrip_weightsAlternative weights used in the SynthStrip brain extraction step.stringNoneFalse
dwi_bet_f_thresholdBet f threshold used in the brain extraction step.number0.16True
preproc_dwi_run_N4Run N4 bias correction on the DWI images.booleanTrueFalse
dwi_bias_bspline_knot_per_voxelNumber of B-spline knots per voxel used in the DWI bias correction step.number8True
dwi_bias_shrink_factorShrink factor used in the DWI bias correction step.integer4True
dwi_normalize_fa_mask_thresholdFA mask threshold used in the normalization step.number0.4False
preproc_dwi_run_resamplingRun resampling on the DWI images.booleanTrueFalse
dwi_resample_voxel_sizeVoxel size used in the DWI resampling step.integer1True
dwi_resample_interpInterpolation method used in the DWI resampling step.stringlinTrue
dwi_resample_mask_voxel_sizeVoxel size used in the DWI mask resampling step.integer1True
dwi_resample_mask_interpInterpolation method used in the DWI mask resampling step.stringnnTrue

Options for diffusion tensor fitting.

ParameterDescriptionTypeDefaultRequiredHidden
dti_max_shell_valueMaximum shell value used in the DTI processing step.integer1600True
dti_shellsShells used in the DTI processing step.stringFalse

Options for fiber response function (FRF) processing. The FRF is derived from normative curves in function of each participant’s age. The current options are mostly if you want to override this default behavior.

ParameterDescriptionTypeDefaultRequiredHidden
frf_faMinimum FA threshold to use to compute the FRF.number0.7True
frf_min_faMinimum FA threshold to use to compute the FRF.number0.5True
frf_nvox_minMinimum number of voxels to include in the computation of the FRF.integer300True
frf_roi_radiusRadius of the ROI used to compute the FRF.integer20True
frf_max_dti_shell_valueMaximum DTI shell value used.integer1600True
frf_min_fodf_shell_valueMinimum FODF shell value used.integer700True
frf_set_methodMethod used to compute the FRF.stringssstFalse
frf_manual_frfManual FRF values.(e.g. ‘15,4,4’). This is set from the normative curves. Use this option only to apply a single FRF to every participants. For more information, please see the documentation.stringFalse

Options for FODF processing.

ParameterDescriptionTypeDefaultRequiredHidden
fodf_min_fodf_shell_valueMinimum FODF shell value used.integer700True
fodf_shellsShells used in the FODF processing step.stringFalse
fodf_sh_orderSpherical harmonics order used in the FODF processing step.integer8False
fodf_sh_basisSpherical harmonics basis used in the FODF processing step. Choices: descoteaux07 or tournier07.stringdescoteaux07False
fodf_set_methodMethod used to compute the FODF.stringssstFalse
fodf_relative_thresholdRelative threshold used in the FODF processing step.number0.1True
fodf_a_factorFODF a factor used in the FODF processing step.number2.0True
fodf_max_fa_thresholdMaximum FA threshold used in the FODF processing step.number0.1True
fodf_min_md_thresholdMinimum MD threshold used in the FODF processing step.number0.003True

Options for Particle Filter Tracking (PFT).

ParameterDescriptionTypeDefaultRequiredHidden
run_pft_trackingRun PFT tracking.booleanTrueFalse
pft_seeding_mask_typeSeeding mask type used in the PFT tracking step. Choices: wm, fa, or interface.stringwmFalse
pft_fa_thresholdFA threshold to use on FA map to generate seeding mask.number0.2True
pft_random_seedRandom seed used in the PFT tracking step.integer1234True
pft_compressIf true, compress the streamlines.booleanTrueTrue
pft_compress_valueCompression value for the streamlines’ compression.number0.2True
pft_algoAlgorithm used in the PFT tracking step. Choices: prob or detstringprobFalse
pft_nbr_seedsNumber of seeds used in the PFT tracking step.integer10False
pft_seeding_typeSeeding type used in the PFT tracking step. Choices: npv or nt.stringnpvFalse
pft_stepStep value used in the PFT tracking step.number0.5True
pft_thetaTheta value used in the PFT tracking step.number20True
pft_sfthresSF threshold used in the PFT tracking step.number0.1True
pft_sfthres_initInitial SF threshold used in the PFT tracking step.number0.5True
pft_min_lenMinimum length used in the PFT tracking step.number20False
pft_max_lenMaximum length used in the PFT tracking step.number200False
pft_particlesNumber of particles used in the PFT tracking step.integer15True
pft_backLength of PFT back tracking (mm)integer2True
pft_frontLength of PFT forward tracking (mm).integer1True

Options for local tracking.

ParameterDescriptionTypeDefaultRequiredHidden
run_local_trackingRun local tracking.booleanTrueFalse
local_seeding_mask_typeSeeding mask type used in the local tracking step.stringwmFalse
local_fa_tracking_mask_thresholdFA threshold used for the tracking mask.number0.4True
local_fa_seeding_mask_thresholdFA threshold used for the seeding mask.number0.4True
local_tracking_mask_typeTracking mask type used in the local tracking step. Choices: wm, fa, or interface.stringwmFalse
local_random_seedRandom seed used in the local tracking step.integer1234True
local_compressIf true, compress the streamlines.booleanTrueTrue
local_compress_valueCompression value for the streamlines’ compression.number0.2True
local_algoAlgorithm used in the local tracking step. Choices: prob or detstringprobFalse
local_nbr_seedsNumber of seeds used in the local tracking step.integer10False
local_seeding_typeSeeding type used in the local tracking step. Choices: npv or nt.stringnpvFalse
local_stepStep value used in the local tracking step.number0.5True
local_thetaTheta value used in the local tracking step.number20True
local_sfthresSF threshold used in the local tracking step.number0.1True
local_min_lenMinimum length used in the local tracking step.number20False
local_max_lenMaximum length used in the local tracking step.number200False

Options for BundleSeg

ParameterDescriptionTypeDefaultRequiredHidden
minimal_vote_ratioRatio of vote across models to consider a streamline for saving. If you have 5 input models and a ratio of 0.5, you will need at least 3 votes.number0.5False
outlier_alphaPercentage of the length of the tree that clusters of individual streamlines will be pruned. Higher values will remove more streamlines.number0.6False
nb_pointsNumber of points to segment the bundles.integer5False
colormapColormap to use for coloring the bundles. Color only affects visualization.stringjetFalse
density_weightingIf set, weight statistics based on the number of voxel going through the voxel.booleanTrueFalse
normalize_weightsIf set, the weights will be normalized to the [0,1] range.booleanTrueFalse
length_statsIf set, will output bundles’ length.booleanTrueFalse
endpoints_statsIf set, will output statistics in endpoints.booleanTrueFalse
means_stdIf set, will output mean and std values per bundle per metrics.booleanTrueFalse
volumeIf set, will output volume values per bundle.booleanTrueFalse
streamline_countIf set, will output the streamline count per bundle.booleanTrueFalse
volume_per_labelsIf set, will output volume values per labels per bundle.booleanTrueFalse
mean_std_per_pointIf set, will output mean and std per points per metrics per bundle.booleanTrueFalse

Options for transforming labels from anatomical to diffusion space.

ParameterDescriptionTypeDefaultRequiredHidden
labels_transform_dimensionalityDimensionality of the label file.integer3True
labels_output_suffixName to use as suffix in the output filename.string_labelsTrue
labels_interpolationInterpolation method used in the label transformation step. Choices: NearestNeighbor, Linear, or BSpline.stringNearestNeighborTrue
labels_output_dtypeOutput data type used in the label transformation step. Choices: float or int.stringintTrue

Options for COMMIT filtering.

ParameterDescriptionTypeDefaultRequiredHidden
run_commit2Run COMMIT2 filtering.booleanTrueFalse
commit2_lambdaLambda value used in the COMMIT filtering step.number0.001True
commit_para_diffPara diff value used in the COMMIT filtering step.
HelpThis value is derived from normative curves in function of each participant’s age. For more information, please see the documentation.
stringFalse
commit_iso_diffIso diff value used in the COMMIT filtering step.
HelpThis value is derived from normative curves in function of each participant’s age. For more information, please see the documentation.
stringFalse
commit_perp_diffPerp diff value used in the COMMIT filtering step.
HelpThis value is derived from normative curves in function of each participant’s age. For more information, please see the documentation.
stringFalse
commit_ball_stickUse the ball and stick model in the COMMIT filtering step.booleanFalseTrue
commit_nbr_dirNumber of directions used in the COMMIT filtering step.integer500True

Options for decomposing the tractogram according to a label file.

ParameterDescriptionTypeDefaultRequiredHidden
decompose_no_pruningDo not prune the tractogram.booleanFalseTrue
decompose_no_remove_loopsDo not remove loops from the tractogram.booleanFalseTrue
decompose_no_remove_outliersDo not remove outliers from the tractogram.booleanFalseTrue
decompose_no_remove_curvDo not remove curvilinear structures from the tractogram.booleanFalseTrue
decompose_min_lenMinimum length used in the tractogram decomposition step.number20False
decompose_max_lenMaximum length used in the tractogram decomposition step.number200False
decompose_outlier_thresholdOutlier threshold used in the tractogram decomposition step.number0.6False
decompose_max_angleMaximum angle used in the tractogram decomposition step.number330.0False
decompose_max_curvMaximum curvature used in the tractogram decomposition step.number10.0False

Options for AFD fixel processing.

ParameterDescriptionTypeDefaultRequiredHidden
afd_fixel_length_weightingUse length weighting in the AFD fixel processing step.booleanFalseTrue

Options for outputting to specific template space.

ParameterDescriptionTypeDefaultRequiredHidden
templateTemplate space to output to. The available template are the ones supported by TemplateFlow, please see their documentation for an exhaustive list (https://www.templateflow.org/browse/).stringNoneFalse
templateflow_resResolution of the template space.integer1False
templateflow_cohortCohort to use for the template space (not required for most template, but if it is, simply provide the cohort’s number).integerFalse
templateflow_homePath to the TemplateFlow home directory where templates will be downloaded. If you are running the pipeline without internet access, this needs to point to a folder containing predownloaded templates.string./templateflowFalse
use_template_t2wUse the T2w image from the template space (useful with infant data.).booleanFalseFalse

Pipeline profile options. This is a short list of options. For full description, please see the documentation

ParameterDescriptionTypeDefaultRequiredHidden
trackingPerform tracking profile.booleanFalseTrue
bundlingPerform bundle extraction profile.booleanFalseTrue
connectomicsPerform connectomics profile.booleanFalseTrue
segmentationPerform segmentation profile.booleanFalseTrue

Parameters used to describe centralised config profiles. These should not be edited.

ParameterDescriptionTypeDefaultRequiredHidden
custom_config_versionGit commit id for Institutional configs.stringmasterTrue
custom_config_baseBase directory for Institutional configs.
HelpIf you’re running offline, Nextflow will not be able to fetch the institutional config files from the internet. If you don’t need them, then this is not a problem. If you do need them, you should download the files from the repo and tell Nextflow where to find them with this parameter.
stringhttps://raw.githubusercontent.com/nf-core/configs/masterTrue
config_profile_nameInstitutional config name.stringTrue
config_profile_descriptionInstitutional config description.stringTrue
config_profile_contactInstitutional config contact information.stringTrue
config_profile_urlInstitutional config URL link.stringTrue

Less common options for the pipeline, typically set in a config file.

ParameterDescriptionTypeDefaultRequiredHidden
versionDisplay version and exit.booleanTrue
publish_dir_modeMethod used to save pipeline results to output directory.
HelpThe Nextflow publishDir option specifies which intermediate files should be saved to the output directory. This option tells the pipeline what method should be used to move these files. See Nextflow docs for details.
stringcopyTrue
lean_outputDo not copy intermediate files to output directory.booleanFalse
email_on_failEmail address for completion summary, only when pipeline fails.
HelpAn email address to send a summary email to when the pipeline is completed - ONLY sent if the pipeline does not exit successfully.
stringTrue
plaintext_emailSend plain-text email instead of HTML.booleanTrue
max_multiqc_email_sizeFile size limit when attaching MultiQC reports to summary emails.string25.MBTrue
monochrome_logsDo not use coloured log outputs.booleanTrue
hook_urlIncoming hook URL for messaging service
HelpIncoming hook URL for messaging service. Currently, MS Teams and Slack are supported.
stringTrue
multiqc_configCustom config file to supply to MultiQC.stringTrue
multiqc_logoCustom logo file to supply to MultiQC. File name must also be set in the MultiQC config filestringTrue
multiqc_methods_descriptionCustom MultiQC yaml file containing HTML including a methods description.string
validate_paramsBoolean whether to validate parameters against the schema at runtimebooleanTrueTrue
pipelines_testdata_base_pathBase URL or local path to location of pipeline test dataset filesstringNoneTrue
trace_report_suffixSuffix to add to the trace report filename. Default is the date and time in the format yyyy-MM-dd_HH-mm-ss.stringTrue