dmriprep.workflows.dwi.base module

Orchestrating the dMRI-preprocessing workflow.

dmriprep.workflows.dwi.base.init_dwi_wf(*, dwi_series, precomputed=None, fieldmap_id=None, jacobian=False, min_dwi_vols=7)View on GitHub

Build a preprocessing workflow for one DWI run.

Parameters:
  • dwi_series – List of paths to NIfTI files.

  • precomputed – Dictionary containing precomputed derivatives to reuse, if possible.

  • fieldmap_id – ID of the fieldmap to use to correct this DWI series. If None, no correction will be applied.

Inputs:
  • dwi_file – dwi NIfTI file

  • in_bvec – File path of the b-vectors

  • in_bval – File path of the b-values

  • metadata – dwi metadata

  • fmap – File path of the fieldmap

  • fmap_ref – File path of the fieldmap reference

  • fmap_coeff – File path of the fieldmap coefficients

  • fmap_mask – File path of the fieldmap mask

  • fmap_id – The BIDS modality label of the fieldmap being used

Outputs:
  • dwi_reference – A 3D \(b = 0\) reference, before susceptibility distortion correction.

  • dwi_mask – A 3D, binary mask of the dwi_reference above.

  • gradients_rasb – A RASb (RAS+ coordinates, scaled b-values, normalized b-vectors, BIDS-compatible) gradient table.