PreprocessingIOAdapter

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

class PreprocessingIOAdapter(*, source_root: str, destination_root: str, auto_select_first_file: bool)[source]

Bases: object

Discover legacy directory/manifest inputs and write NIfTI batch results.

__init__(*, source_root: str, destination_root: str, auto_select_first_file: bool) → None[source]
discover() → List[PreprocessingInput][source]

Build lazy Subjects from either the HABIT directory layout or a manifest.

write(subject: Subject, *, stage_name: str | None = None, modalities: Sequence[str] | None = None) → None[source]

Write processed images and same-name masks to the legacy NIfTI tree.