aslprep.workflows.base module

ASLprep base processing workflows.

clean_datasinks(workflow: Workflow) Workflow[source]

Overwrite out_path_base of dependency pipelines’ DataSinks.

get_estimator(layout, fname)[source]

Get estimator.

init_aslprep_wf()[source]

Build ASLPrep’s pipeline.

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

If FreeSurfer’s recon-all is to be run, a corresponding folder is created and populated with any needed template subjects under the derivatives folder.

Workflow Graph
../_images/aslprep-workflows-base-1.png

(Source code, png, svg, pdf)

init_single_subject_wf(subject_id: str)[source]

Organize the preprocessing pipeline for a single subject.

It collects and reports information about the subject, and prepares sub-workflows to perform anatomical and functional preprocessing. Anatomical preprocessing is performed in a single workflow, regardless of the number of sessions. Functional preprocessing is performed using a separate workflow for each individual ASL series.

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

(Source code, png, svg, pdf)

Parameters:

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

Inputs:

subjects_dir (str) – FreeSurfer’s $SUBJECTS_DIR.

map_fieldmap_estimation(layout: BIDSLayout, subject_id: str, bold_data: list[list[str]], ignore_fieldmaps: bool, use_syn: bool | str, force_syn: bool, filters: dict | None) tuple[list, dict][source]

Identify field maps to use, if any.