Skip to content

preproc_topup

Run magnetic susceptibility distortions correction using FSL Topup. The module can take either b0 or DWI volumes. The latter activates b0 extraction prior to running Topup. Extraction can be configured to take one (default) or many b0 volumes in each forward and reverse acquired DWI and perform averaging if needed. Note that running Topup with more than one volume per encoding direction greatly increases computation time.

Keywords : DWI, distorsion, topup


Format : tuple val(meta), path(dwi), path(bval), path(bvec), path(b0), path(rev_dwi), path(rev_bval), path(rev_bvec), path(rev_b0)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
dwifileDWI Nifti imageTrue*.{nii,nii.gz}
bvalfileB-values in FSL format [DWI].True*.bval
bvecfileB-values in FSL format [DWI].True*.bvec
b0fileb0 [DWI].True*.bvec
rev_dwifileDWI Nifti image [rev-DWI].True*.{nii,nii.gz}
rev_bvalfileB-values in FSL format [rev-DWI].True*.bval
rev_bvecfileB-vectors in FSL format [rev-DWI].True*.bvec
rev_b0fileReversed b0 [rev-DWI].True*.{nii,nii.gz}

Format : path(config_topup)

TypeDescriptionMandatoryPattern
config_topupfiletopup config file. See https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/topup/TopupUsersGuide#Configuration_filesTrue*cnf

Format : tuple val(meta), path(*__corrected_b0s.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__corrected_b0s.nii.gzfileNifti volume - b0 correctedTrue*__corrected_b0s.nii.gz

Format : tuple val(meta), path(*_fieldcoef.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_fieldcoef.nii.gzfileNifti volume - topup field to correct for distorsionTrue*_fieldcoef.nii.gz

Format : tuple val(meta), path(*_movpar.txt)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_movpar.txtfileText file - topup movpartTrue*_movpar.txt

Format : tuple val(meta), path(*__rev_b0_warped.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__rev_b0_warped.nii.gzfileNifti volume - rev b0 warped on b0True*__rev_b0_warped.nii.gz

Format : tuple val(meta), path(*__rev_b0_mean.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__rev_b0_mean.nii.gzfileNifti volume - rev b0 meanTrue*__rev_b0_mean.nii.gz

Format : tuple val(meta), path(*__b0_mean.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__b0_mean.nii.gzfileNifti volume - b0 meanTrue*__b0_mean.nii.gz

Format : tuple val(meta), path(*_b0_topup_mqc.gif)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_b0_topup_mqc.giffile.gif file containing quality control image for the topup process (Comparison with dwi and rev_dwi). Made for use in MultiQC report.True*_b0_topup_mqc.gif

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versions.Trueversions.yml

TypeDescriptionDefaultChoices
encodingstringEncoding direction of the forward DWI.y- x
- y
- z
readoutfloatTotal readout time from the DICOM metadata.0.062
b0_thr_extract_b0integerThreshold under which b-values are considered to be b0s.10
prefix_topupstringPrefix to prepend to Topup output files.
default_config_topupstringDefault Topup configuration to use.b02b0.cnf- b02b0.cnf
- b02b0_1.cnf
- b02b0_2.cnf
- b02b0_4.cnf
- b02b0_7T.cnf
run_qcbooleanRun quality control.True

DescriptionDOI
ANTsAdvanced Normalization Tools (ANTs) for image processing.10.1038/s41598-021-87564-6
FSLFSL Toolbox10.1016/j.neuroimage.2011.09.015
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2025-10-20