Warning: This document is for an old version of dmriprep. The main version is master.

dmriprep.workflows.dwi.eddy module

Eddy-currents and head-motion estimation/correction.

dmriprep.workflows.dwi.eddy.gen_eddy_textfiles(in_file, in_meta, newpath=None)

Generate the acquisition-parameters and index files for FSL eddy_openmp.

Examples

>>> out_acqparams, out_index = gen_eddy_textfiles(
...     "dwi.nii.gz",
...     {"PhaseEncodingDirection": "j-", "TotalReadoutTime": 0.005},
... )
>>> Path(out_acqparams).read_text()
'0 -1 0 0.0050000'
>>> Path(out_index).read_text()
'1 1 1 1 1 1'
dmriprep.workflows.dwi.eddy.init_eddy_wf(debug=False, name='eddy_wf')

Create a workflow for head-motion & Eddy currents distortion estimation with FSL.

Parameters

name (str) – Name of workflow (default: eddy_wf)

Inputs

dwi_file – dwi NIfTI file

Outputs

out_eddy – The eddy corrected diffusion image