xcp_d.workflows.anatomical.volume module

Workflows for processing volumetric anatomical data.

xcp_d.workflows.anatomical.volume.init_postprocess_anat_wf(t1w_available, t2w_available, target_space, name='postprocess_anat_wf')[source]

Copy T1w, segmentation, and, optionally, T2w to the derivative directory.

If necessary, this workflow will also warp the images to standard space.

Workflow Graph
../_images/xcp_d-workflows-anatomical-volume-1.png

(Source code, png, svg, pdf)

Parameters:
  • t1w_available (bool) – True if a preprocessed T1w is available, False if not.

  • t2w_available (bool) – True if a preprocessed T2w is available, False if not.

  • target_space (str) – Target NIFTI template for T1w.

  • name (str, optional) – Name of the workflow. This is used for working directories and workflow graphs. Default is “postprocess_anat_wf”.

Inputs:
  • t1w (str) – Path to the preprocessed T1w file. This file may be in standard space or native T1w space.

  • t2w (str or None) – Path to the preprocessed T2w file. This file may be in standard space or native T1w space.

  • anat_to_template_xfm (str) – Path to the T1w-to-MNI transform file. May be “identity”, for testing purposes. We need to use MNI152NLin6Asym for the template.

  • template (str) – The target template.

Outputs:
  • t1w (str) – Path to the preprocessed T1w file in standard space.

  • t2w (str or None) – Path to the preprocessed T2w file in standard space.