Skip to content

Commit b8ac0d5

Browse files
committed
dwipreproc: Add warning regarding topup / eddy image alignment
1 parent 8844a04 commit b8ac0d5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/dwipreproc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ from mrtrix3 import app, file, fsl, image, path, phaseEncoding, run
3131

3232
app.init ('Robert E. Smith (robert.smith@florey.edu.au)',
3333
'Perform diffusion image pre-processing using FSL\'s eddy tool; including inhomogeneity distortion correction using FSL\'s topup tool if possible')
34+
app.cmdline.addDescription('Note that this script does not perform any explicit registration between images provided to topup via the -se_epi option, and the DWI volumes provided to eddy. In some instances (motion between acquisitions) this can result in erroneous application of the inhomogeneity field during distortion correction. If this could potentially be a problem for your data, a possible solution is to insert the first b=0 DWI volume to be the first volume of the image file provided via the -se_epi option. This will hopefully be addressed within the script itself in a future update.')
3435
app.cmdline.addCitation('', 'Andersson, J. L. & Sotiropoulos, S. N. An integrated approach to correction for off-resonance effects and subject movement in diffusion MR imaging. NeuroImage, 2015, 125, 1063-1078', True)
3536
app.cmdline.addCitation('', 'Smith, S. M.; Jenkinson, M.; Woolrich, M. W.; Beckmann, C. F.; Behrens, T. E.; Johansen-Berg, H.; Bannister, P. R.; De Luca, M.; Drobnjak, I.; Flitney, D. E.; Niazy, R. K.; Saunders, J.; Vickers, J.; Zhang, Y.; De Stefano, N.; Brady, J. M. & Matthews, P. M. Advances in functional and structural MR image analysis and implementation as FSL. NeuroImage, 2004, 23, S208-S219', True)
3637
app.cmdline.addCitation('If performing recombination of diffusion-weighted volume pairs with opposing phase encoding directions', 'Skare, S. & Bammer, R. Jacobian weighting of distortion corrected EPI data. Proceedings of the International Society for Magnetic Resonance in Medicine, 2010, 5063', True)

docs/reference/scripts/dwipreproc.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ Usage
1818
- *input*: The input DWI series to be corrected
1919
- *output*: The output corrected image series
2020

21+
Description
22+
-----------
23+
24+
Note that this script does not perform any explicit registration between images provided to topup via the -se_epi option, and the DWI volumes provided to eddy. In some instances (motion between acquisitions) this can result in erroneous application of the inhomogeneity field during distortion correction. If this could potentially be a problem for your data, a possible solution is to insert the first b=0 DWI volume to be the first volume of the image file provided via the -se_epi option. This will hopefully be addressed within the script itself in a future update.
25+
2126
Options
2227
-------
2328

@@ -43,6 +48,8 @@ Other options for the dwipreproc script
4348

4449
- **-json_import JSON_file** Import image header information from an associated JSON file (may be necessary to determine phase encoding information)
4550

51+
- **-eddy_options Options** Manually provide additional command-line options to the eddy command
52+
4653
- **-cuda** Use the CUDA version of eddy (if available)
4754

4855
Options for importing the diffusion gradient table

0 commit comments

Comments
 (0)