discover_habitat_map_paths

Note

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

discover_habitat_map_paths(habitats_map_folder: str | Path, habitat_pattern: str = '*_habitats.nrrd') → Dict[str, Path][source]

Discover habitat map files and map them to subject ids.

Subject ids are derived by stripping the non-wildcard portion of habitat_pattern from the filename, matching the former v0.1 directory-discovery convention.

Parameters:
  • habitats_map_folder – Directory containing *_habitats.nrrd files.

  • habitat_pattern – Glob pattern for habitat map filenames.

Returns:

Mapping of subject id to absolute habitat map path.