xcp_d.workflows.base module

The primary workflows for xcp_d.

xcp_d.workflows.base.clean_datasinks(workflow)[source]

Clean DerivativesDataSinks in a workflow.

xcp_d.workflows.base.init_single_subject_wf(subject_id: str, anat_session: str, func_sessions: list[str])[source]

Organize the postprocessing pipeline for a single subject.

It collects and reports information about the subject, and prepares sub-workflows to perform anatomical and functional postprocessing.

Workflow Graph

(Source code)

Parameters:
  • subject_id (str) – Subject label for this single-subject workflow.

  • anat_session (str) – Anatomical session label for this single-subject workflow. If “”, then the anatomical data is at the subject level (e.g., fMRIPrep’s default).

  • func_sessions (list of str) – Functional session labels for this single-subject workflow.

xcp_d.workflows.base.init_xcpd_wf()[source]

Build XCP-D’s pipeline.

This workflow organizes the execution of XCP-D, with a sub-workflow for each subject.

Workflow Graph
../_images/xcp_d-workflows-base-2.png

(Source code, png, svg, pdf)