Module: preproc/topup

Prepare data and apply FSL topup

Inputs

TypeDescriptionPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
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

Arguments

TypeDescriptionChoicesDefault
encodingstringEncoding direction of the forward DWI.x, y or zy
readoutfloatTotal readout time from the DICOM metadata.0.062
b0_thr_extract_b0intThreshold under which b-values are considered to be b0s.10
run_qcbooleanRun quality control.True

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

DescriptionHomepageDOI
ANTsAdvanced Normalization Tools (ANTs) for image processing.http://stnava.github.io/ANTs/
FSLFSL Toolbox and Scilpy Toolboxhttps://fsl.fmrib.ox.ac.uk/fsl/fslwiki
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.https://github.com/scilus/scilpy.git

Keywords

DWI
distorsion
topup

Authors

@arnaudbore