Skip to content

topup

Module: 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


Inputs

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]true
dwifileDWI Nifti image*.{nii,nii.gz}
bvalfileB-values in FSL format [DWI].*.bval
bvecfileB-values in FSL format [DWI].*.bvec
b0fileb0 [DWI].*.bvec
rev_dwifileDWI Nifti image [rev-DWI].*.{nii,nii.gz}
rev_bvalfileB-values in FSL format [rev-DWI].*.bval
rev_bvecfileB-vectors in FSL format [rev-DWI].*.bvec
rev_b0fileReversed b0 [rev-DWI].*.{nii,nii.gz}
config_topupfiletopup config file. See https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/topup/TopupUsersGuide#Configuration_files*cnf

Outputs

TypeDescriptionPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
topup_corrected_b0sfileNifti volume - b0 corrected*__corrected_b0s.nii.gz
topup_fieldcoeffileNifti volume - topup field to correct for distorsion*_fieldcoef.nii.gz
topup_movpartfileText file - topup movpart*__movpar.txt
rev_b0_warpedfileNifti volume - rev b0 warped on b0*__rev_b0_warped.nii.gz
rev_b0_meanfileNifti volume - rev b0 mean*__rev_b0_mean.nii.gz
b0_meanfileNifti volume - b0 mean*__b0_mean.nii.gz
mqcfile.gif file containing quality control image for the topup process (Comparison with dwi and rev_dwi). Made for use in MultiQC report.*_b0_topup_mqc.gif
versionsfileFile containing software versions.versions.yml

Tools

DescriptionDOI
ANTsAdvanced Normalization Tools (ANTs) for image processing.
FSLFSL Toolbox and Scilpy Toolbox
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.

Authors

arnaudbore


Last updated : 2025-07-15