Skip to content

Pipeline Parameters

Define where the pipeline should find input data and save output data.

ParameterDescriptionTypeDefaultRequiredHidden
inputEither a path to a BIDS database or to comma-separated file containing information about the input subjects files.
HelpBIDS database or csv file containing a list of subjects to process. See assets/samplesheet.csv.
stringTrue
bids_configBIDS configuration file in json pre-generated by TractoFlow(Read_BIDS process). This option must be used only if loading bids from —input did not work due to an issue in the BIDS folder.
HelpBIDS configuration file in json pre-generated by TractoFlow(Read_BIDS process). This option must be used only if loading bids from —input did not work due to an issue in the BIDS folder.
string
fsbidsFreesurfer BIDS derivative to use to load segmentations and parcellations.
HelpFreesurfer BIDS derivative to use to load segmentations and parcellations.
string
bidsignoreIf you want to ignore some subjects or some files, you can provide an extra bidsignore file. Check: https://github.com/bids-standard/bids-validator#bidsignore
HelpIf you want to ignore some subjects or some files, you can provide an extra bidsignore file. Check: https://github.com/bids-standard/bids-validator#bidsignore
string
clean_bidsIf set, it will remove all the participants that are missing any information.
HelpIf set, it will remove all the participants that are missing any information.
boolean
b0_thr_extract_b0Consider all b-values below threshold as b=0 images.
HelpConsider all b-values below threshold as b=0 images.
integer10
dwi_shell_toleranceConsider all b-values up to +-tolerance as belonging to the same shell.
HelpConsider all b-values up to +-tolerance as belonging to the same shell.
integer20
outdirThe output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure.
HelpThe output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure.
stringTrue
clean_outputThe results will be saved in BIDS.
HelpCheck BIDS derivatives.
booleanTrue
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.
stringTrue
multiqc_titleMultiQC report title. Printed as page header, used for filename if not otherwise specified.
HelpMultiQC report title. Printed as page header, used for filename if not otherwise specified.
stringTrue

All parameters related to DWI preprocessing.

ParameterDescriptionTypeDefaultRequiredHidden
bet_prelim_fFractional Intensity threshold for preliminary brain masking.
HelpFractional Intensity threshold for preliminary brain masking.
number0.16
dilate_b0_mask_prelim_brain_extractionDilation radius applied to the preliminary mask to ensure whole brain coverage.
HelpDilation radius applied to the preliminary mask to ensure whole brain coverage.
integer5
run_dwi_denoisingRun dwi denoising.
HelpRun dwi denoising.
booleanTrue
extentDenoising block size. Rule: extent^3 >= number of directions.
HelpDenoising block size. Rule: extent^3 >= number of directions.
integer7
run_gibbs_correctionRRun Gibbs correction.
HelpRRun Gibbs correction.
boolean
run_topupRun Topup.
HelpRun Topup.
booleanTrue
encoding_directionEncoding direction of the DWI [x, y, z]
HelpEncoding direction of the DWI [x, y, z]
stringy
readoutReadout time
HelpReadout time
number0.062
config_topupConfiguration file to use for Topup. Can either be a full path to a file or the name of a configuration file in Topup resources.stringb02b0.cnfTrue
prefix_topupOutput prefix to use for susceptibility filtering output filenames.stringtopup_resultsTrue
run_eddyRun Eddy.
HelpRun Eddy.
booleanTrue
eddy_cmdCommand to use to run Eddy.
HelpCommand to use to run Eddy.
stringeddy_cpu
bet_topup_before_eddy_fFractional Intensity threshold for intermediate brain masking on Topup corrected b0 images.
HelpFractional Intensity threshold for intermediate brain masking on Topup corrected b0 images.
number0.16
use_slice_drop_correctionIf set, will use the slice drop correction option from Eddy.
HelpIf set, will use the slice drop correction option from Eddy.
booleanTrue
bet_dwi_final_fFractional Intensity threshold for final brain masking.
HelpFractional Intensity threshold for final brain masking.
number0.16
fa_mask_thresholdFA threshold to compute WM mask for normalization.
HelpFA threshold to compute WM mask for normalization.
number0.4

All parameters related to T1 preprocessing.

ParameterDescriptionTypeDefaultRequiredHidden
run_t1_denoisingRun T1 denoising.
HelpRun T1 denoising.
booleanTrue
template_t1Path to the template for antsBrainExtraction. The folder must contain t1_template.nii.gz and t1_brain_probability_map.nii.gz. Defaults to the mni_152_sym_09c template directory delivered with the pipeline in the assets directory.
HelpPath to the template for antsBrainExtraction. The folder must contain t1_template.nii.gz and t1_brain_probability_map.nii.gz. Defaults to the mni_152_sym_09c template directory delivered with the pipeline in the assets directory.
string

Resampling options for DWI and anatomical volumes.

ParameterDescriptionTypeDefaultRequiredHidden
run_resample_dwiRun resample DWI.
HelpRun resample DWI.
booleanTrue
dwi_resolutionDWI resolution.
HelpDWI resolution.
number1.0
dwi_interpolationDWI interpolation method.
HelpDWI interpolation method
stringlin
run_resample_t1Run resample T1.
HelpRun resample T1.
booleanTrue
t1_resolutionT1 resolution.
HelpT1 resolution.
number1.0
t1_interpolationT1 interpolation method.
HelpT1 interpolation method.
stringlin

All parameters related to DWI processing (SH, DTI, fODF).

ParameterDescriptionTypeDefaultRequiredHidden
max_dti_shell_valueMaximum shell threshold to be consider as a DTI shell. This is the default behavior to select DTI shells.
HelpMaximum shell threshold to be consider as a DTI shell. This is the default behavior to select DTI shells.
integer1200
dti_shellsShells selected to compute the DTI metrics (generally b <= 1200). Please write them between quotes e.g. (—dti_shells “0 300 1000”). If selected, it will overwrite max_dti_shell_value.
HelpShells selected to compute the DTI metrics (generally b <= 1200). Please write them between quotes e.g. (—dti_shells “0 300 1000”). If selected, it will overwrite max_dti_shell_value.
string
min_fodf_shell_valueMinimum shell threshold to be consider as a fODF shell. This is the default behaviour to select fODF shells.
HelpMinimum shell threshold to be consider as a fODF shell. This is the default behaviour to select fODF shells.
integer700
fodf_shellsShells selected to compute the fODF metrics (generally b >= 700). Please write them between quotes e.g. (—fodf_shells “0 1000 2000”). If selected, it will overwrite min_fodf_shell_value.
HelpShells selected to compute the fODF metrics (generally b >= 700). Please write them between quotes e.g. (—fodf_shells “0 1000 2000”). If selected, it will overwrite min_fodf_shell_value.
string
faInitial FA threshold to compute the frf.
HelpInitial FA threshold to compute the frf.
number0.7
min_faMinimum FA threshold to compute the frf.
HelpMinimum FA threshold to compute the frf.
number0.5
min_nvoxMinimum number of voxels to compute the frf.
HelpMinimum number of voxels to compute the frf.
integer300
roi_radiusRegion of interest radius to compute the frf.
HelpRegion of interest radius to compute the frf.
integer20
manual_frfForce a fiber response function. Supply as 3 values : —manual_frf “mean_b0 parallel_diff perpendicular_diff”.
HelpForce a fiber response function. Supply as 3 values : —manual_frf “mean_b0 parallel_diff perpendicular_diff”.
string15,4,4
mean_frfAverage the frf of all subjects. USE ONLY IF ALL OF SUBJECTS COME FROM THE SAME SCANNER AND ADHERE TO THE SAME ACQUISITION PROTOCOL.
HelpAverage the frf of all subjects. USE ONLY IF ALL OF SUBJECTS COME FROM THE SAME SCANNER AND ADHERE TO THE SAME ACQUISITION PROTOCOL.
boolean
sh_orderSpherical harmonics order, must be even. Rules : sh_order=8 for 45 directions, sh_order=6 for 28 directions.
HelpSpherical harmonics order, must be even. Rules : sh_order=8 for 45 directions, sh_order=6 for 28 directions.
integer8
basisfODF basis.
HelpfODF basis.
stringdescoteaux07
fodf_metrics_a_factorMultiplicative factor for AFD max in ventricles.
HelpMultiplicative factor for AFD max in ventricles.
number2.0
relative_thresholdRelative threshold on fODF amplitude in ]0,1].
HelpRelative threshold on fODF amplitude in ]0,1].
number0.1
max_fa_in_ventricleMaximal threshold of FA to be considered as ventricles voxels.
HelpMaximal threshold of FA to be considered as ventricles voxels.
number0.1
min_md_in_ventricleMinimal threshold of MD in mm2/s to be considered as ventricles voxels.
HelpMinimal threshold of MD in mm2/s to be considered as ventricles voxels.
number0.003
sh_fittingCompute a Spherical Harmonics fit on the DWI, and output the SH coefficients in a Nifti file.
HelpCompute a Spherical Harmonics fit on the DWI, and output the SH coefficients in a Nifti file.
boolean
sh_fitting_basisSH basis used for the optional SH fitting.
HelpSH basis used for the optional SH fitting.
stringdescoteaux07
sh_fitting_orderSH order used for the optional SH fitting, must be an even number. Rules : sh_order=8 for 45 directions, sh_order=6 for 28 directions
HelpSH order used for the optional SH fitting, must be an even number. Rules : sh_order=8 for 45 directions, sh_order=6 for 28 directions
integer6
sh_fitting_shellsShells selected to compute the SH fitting. Please write them between quotes e.g. (—sh_fitting_shells “0 1000”). NOTE: SH fitting works only on single shell. You must include the b0 shell as well.
HelpShells selected to compute the SH fitting. Please write them between quotes e.g. (—sh_fitting_shells “0 1000”). NOTE: SH fitting works only on single shell. You must include the b0 shell as well.
string

All parameters related to particle filtering tractography on fODF fields.

ParameterDescriptionTypeDefaultRequiredHidden
run_pft_trackingRun Particle Filtering Tractography (PFT).
HelpRun Particle Filtering Tractography (PFT).
booleanTrue
pft_seeding_mask_type[PFT] Seeding mask type.
Help[PFT] Seeding mask type.
stringwm
pft_fa_seeding_mask_threshold[PFT] FA threshold for FA seeding mask.
Help[PFT] FA threshold for FA seeding mask.
number0.1
pft_algo[PFT] Tracking algorithm.
Help[PFT] Tracking algorithm.
stringprob
pft_seeding[PFT] Seeding type.
Help[PFT] Seeding type.
stringnpv
pft_nbr_seeds[PFT] Number of seeds related to the seeding type param.
Help[PFT] Number of seeds related to the seeding type param.
integer10
pft_step[PFT] Step size.
Help[PFT] Step size.
number0.5
pft_theta[PFT] Maximum angle between 2 steps.
Help[PFT] Maximum angle between 2 steps.
number20.0
pft_sfthresThreshold on spherical functions computed from fODF.number0.1True
pft_sfthres_initInitial threshold on spherical functions computed from fODF.number0.5True
pft_min_len[PFT] Minimum length.
Help[PFT] Minimum length.
number20.0
pft_max_len[PFT] Maximum length .
Help[PFT] Maximum length .
number200.0
pft_particlesNumber of particles propagated in case of premature termination.integer15True
pft_backLength of the backtracking steps of the particle filter in mm.number2.0True
pft_frontLength of the forward tracking steps of the particle filter in mm.number1.0True
pft_compress_value[PFT] Compression error threshold.
Help[PFT] Compression error threshold.
number0.2
pft_random_seed[PFT] List of random seed numbers for the random number generator. Please write them as list separated using comma WITHOUT SPACE e.g. (—pft_random_seed 0,1,2)
Help[PFT] List of random seed numbers for the random number generator. Please write them as list separated using comma WITHOUT SPACE e.g. (—pft_random_seed 0,1,2)
integer0

All parameters related to local tractography on fODF fields.

ParameterDescriptionTypeDefaultRequiredHidden
run_local_trackingRun Local Tracking.
HelpRun Local Tracking.
booleanTrue
local_seeding_mask_type[LOCAL] seeding mask type.
Help[LOCAL] seeding mask type.
stringwm
local_fa_seeding_mask_threshold[LOCAL] FA threshold for FA seeding mask.
Help[LOCAL] FA threshold for FA seeding mask.
number0.1
local_tracking_mask_type[LOCAL] tracking mask type.
Help[LOCAL] tracking mask type.
stringwm
local_fa_tracking_mask_threshold[LOCAL] FA threshold for FA tracking mask.
Help[LOCAL] FA threshold for FA tracking mask.
number0.1
local_algo[LOCAL] Tracking algorithm.
Help[LOCAL] Tracking algorithm.
stringprob
local_seeding[LOCAL] Seeding type.
Help[LOCAL] Seeding type.
stringnpv
local_nbr_seeds[LOCAL] Number of seeds related to the seeding type param.
Help[LOCAL] Number of seeds related to the seeding type param.
integer10
local_step[LOCAL] Step size.
Help[LOCAL] Step size.
number0.5
local_theta[LOCAL] Maximum angle between 2 steps.
Help[LOCAL] Maximum angle between 2 steps.
number20.0
local_sfthresThreshold on spherical functions computed from fODF.number0.1True
local_sfthres_initInitial threshold on spherical functions computed from fODF.number0.5True
local_min_len[LOCAL] Minimum length.
Help[LOCAL] Minimum length.
number20.0
local_max_len[LOCAL] Maximum length.
Help[LOCAL] Maximum length.
number200.0
local_compress_value[LOCAL] Compression error threshold.
Help[LOCAL] Compression error threshold.
number0.2
local_random_seed[LOCAL] List of random seed numbers for the random number generator. Please write them as list separated using comma WITHOUT SPACE e.g. (—local_random_seed 0,1,2).
Help[LOCAL] List of random seed numbers for the random number generator. Please write them as list separated using comma WITHOUT SPACE e.g. (—local_random_seed 0,1,2).
integer0
local_batch_size_gpu[LOCAL-GPU] Approximate size of GPU batches (number of streamlines to track in parallel).
Help[LOCAL-GPU] Approximate size of GPU batches (number of streamlines to track in parallel).
integer10000
local_tracking_gpuUse GPU trackingbooleanTrue

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
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
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.stringTrue
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 filesstringhttps://raw.githubusercontent.com/nf-core/test-datasets/True
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

{}

ParameterDescriptionTypeDefaultRequiredHidden
preproc_dwi_run_denoisingbooleanTrueTrue
preproc_dwi_run_degibbsbooleanTrue
topup_eddy_run_topupbooleanTrueTrue
topup_eddy_run_eddybooleanTrueTrue
preproc_dwi_run_N4booleanTrueTrue
preproc_t1_run_denoisingbooleanTrueTrue
preproc_t1_run_N4booleanTrueTrue
preproc_t1_run_synthbetbooleanTrue
preproc_t1_run_ants_betbooleanTrueTrue
preproc_t1_run_cropbooleanTrueTrue
preproc_dwi_run_resamplingbooleanTrueTrue
preproc_t1_run_resamplingbooleanTrueTrue
frf_average_from_databooleanTrue
run_pftbooleanTrueTrue

Define the behaviour of the bundle_seg subworkflow.

ParameterDescriptionTypeDefaultRequiredHidden
run_bundle_segbooleanFalse
atlas_directoryPath to the BundleSeg atlas directory.
HelpPath to the BundleSeg atlas directory. If not set, the default bundle_seg atlas will automatically downloaded.
string
run_synthmorphUse SynthMorph for registration instead of ANTs for BundleSeg. (Requires Freesurfer license)
HelpUse SynthMorph for registration instead of ANTs for BundleSeg. (Requires Freesurfer license)
boolean

Define the behaviour of the tractometry subworkflow.

ParameterDescriptionTypeDefaultRequiredHidden
run_tractometrybooleanFalse
nb_pointsNumber of points for tractometry.
HelpNumber of points for tractometry.
integer10
ParameterDescriptionTypeDefaultRequiredHidden
run_noddiCompute NODDI maps.
HelpCompute NODDI maps.
boolean
run_freewaterRun Freewater Elimination and compute Freewater corrected metrics.
HelpRun Freewater Elimination and compute Freewater corrected metrics.
boolean
average_diff_priorsAverage diffusivity priors across subjects.
HelpAverage diffusivity priors across subjects.
booleanTrue
para_diffAverage parallel diffusivity value.
HelpAverage parallel diffusivity value. Specifying this will override automatically computed values.
string
iso_diffAverage isotropic diffusivity value.
HelpAverage isotropic diffusivity value. Specifying this will override automatically computed values.
string
perp_diff_minMinimum perpendicular diffusivity value.
HelpMinimum perpendicular diffusivity value. Specifying this will override automatically computed values.
string
perp_diff_maxMaximum perpendicular diffusivity value.
HelpMaximum perpendicular diffusivity value. Specifying this will override automatically computed values.
string
run_qballCompute Q-Ball metrics.
HelpCompute Q-Ball metrics (gfa, nufo, odf, …).
boolean
use_qball_for_trackingUse Q-Ball model for tractography instead of fODFs.
HelpUse Q-Ball model for tractography instead of fODFs.
booleanFalse
run_atlas_based_tractometryRun atlas-based tractometry using ROI masks obtained from IIT.booleanFalse
atlas_iit_b0Path to the IIT mean B0 nifti image file.
HelpPath to the IIT mean B0 nifti image file.
string
atlas_iit_bundle_masks_dirPath to the directory holding all IIT bundle (binary) masks nifti files.
HelpPath to the directory holding all IIT bundle (binary) masks nifti files.
string