aslprep.workflows.asl.outputs module

Workflows for writing out derivative files.

init_asl_derivatives_wf(bids_root, metadata, output_dir, spaces, output_confounds=True, scorescrub=False, basil=False, name='asl_derivatives_wf')[source]

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

Parameters:
  • bids_root (str) – Original BIDS dataset path.

  • metadata (dict) – Metadata dictionary associated to the ASL run.

  • output_dir (str) – Where derivatives should be written out to.

  • spaces (SpatialReferences) – A container for storing, organizing, and parsing spatial normalizations. Composed of Reference objects representing spatial references. Each Reference contains a space, which is a string of either TemplateFlow template IDs (e.g., MNI152Lin, MNI152NLin6Asym, MNIPediatricAsym), nonstandard references (e.g., T1w or anat, sbref, run, etc.), or a custom template located in the TemplateFlow root directory. Each Reference may also contain a spec, which is a dictionary with template specifications (e.g., a specification of {'resolution': 2} would lead to resampling on a 2mm resolution of the space).

  • name (str) – This workflow’s identifier (default: func_derivatives_wf).