dmriprep.workflows.dwi.outputs module

Write outputs (derivatives and reportlets).

dmriprep.workflows.dwi.outputs.init_dwi_derivatives_wf(output_dir, name='dwi_derivatives_wf')View on GitHub

Set up a battery of datasinks to store dwi derivatives in the right location.

Parameters:
  • output_dir (str) – Directory in which to save derivatives.

  • name (str) – Workflow name (default: "dwi_derivatives_wf").

Inputs:
  • source_file – One dwi file that will serve as a file naming reference.

  • dwi_ref – The b0 reference.

  • dwi_mask – The brain mask for the dwi file.

dmriprep.workflows.dwi.outputs.init_dwi_fit_derivatives_wf(output_dir, fieldmap_id=None, name='dwi_fit_derivatives_wf')View on GitHub

Set up datasinks to store fit-stage derivatives.

This workflow saves the outputs of the fit stage, including reference images, transforms, and rotated gradient directions.

Parameters:
  • output_dir (str) – Directory in which to save derivatives.

  • fieldmap_id (str or None) – Fieldmap identifier for SDC outputs.

  • name (str) – Workflow name.

Inputs:
  • source_file – DWI file used as naming reference.

  • hmc_dwiref – HMC reference image.

  • coreg_dwiref – Coregistration reference (SDC-corrected if available).

  • dwi_mask – Brain mask in DWI space.

  • motion_xfm – Per-volume motion transforms.

  • dwiref2anat_xfm – DWI-to-anatomical coregistration transform.

  • dwiref2fmap_xfm – DWI-to-fieldmap registration transform.

  • fmap_coeff – Fieldmap B-spline coefficients.

  • out_bvec – Motion-corrected (rotated) b-vectors.

  • out_bval – b-values file.

dmriprep.workflows.dwi.outputs.init_dwi_preproc_derivatives_wf(output_dir, space='orig', name='dwi_preproc_derivatives_wf')View on GitHub

Set up datasinks to store preprocessed DWI derivatives.

Parameters:
  • output_dir (str) – Directory in which to save derivatives.

  • space (str) – Output space identifier (‘orig’, ‘T1w’, or template name).

  • name (str) – Workflow name.

Inputs:
  • source_file – DWI file used as naming reference.

  • dwi_preproc – Preprocessed DWI image.

  • dwi_ref – Reference volume from preprocessed DWI.

  • dwi_mask – Brain mask in output space.

  • out_bvec – Motion-corrected b-vectors.

  • out_bval – b-values file.

dmriprep.workflows.dwi.outputs.init_reportlets_wf(output_dir, sdc_report=False, name='reportlets_wf')View on GitHub

Set up a battery of datasinks to store reports in the right location.