habit.habitat_features: quantify habitats

Built-in habitat feature extractors and their registry.

User guide: Habitat Guide Volume and fractions · Multiregional spatial interaction (MSI) · Intratumoral heterogeneity (ITH) · Habitat domain API. Component names: Habitat Spec component catalog.

Volume, MSI, ITH, graph, non-radiomics, and optional PyRadiomics families.

Classes

HabitatFeatureExtractor

Compute habitat-level features for one subject.

HabitatVolumeFeatures

Voxel counts and volume fractions of every habitat for one subject.

IthHabitatFeatures

ITH score for one subject's habitat map.

MsiHabitatFeatures

Multiregional spatial interaction features of one subject's habitat map.

GraphHabitatFeatures

Graph-topology features of one subject's habitat map.

NonRadiomicsHabitatFeatures

Basic spatial features of one subject's habitat map.

EachHabitatRadiomicsFeatures

PyRadiomics features of the raw image(s) within each habitat label.

WholeHabitatRadiomicsFeatures

PyRadiomics features of the habitat map treated as the image itself.

TraditionalRadiomicsHabitatFeatures

PyRadiomics features of the raw image(s) within the whole ROI.

HabitatFeaturePanel

Long table of one value per subject x habitat x feature.

HabitatFeatureComparison

Descriptive and (when n>=2) inferential habitat-vs-habitat contrast.

HabitatFeatureTree

Evaluate a habitat-level feature tree into one FeatureTable.

HabitatFeatureExtractorRegistry

Name-to-implementation registry for habitat feature extractors.

Functions

to_habitat_feature_panel

Melt a wide each_habitat table, or wrap an already-long frame.

compare_habitat_features

Contrast features across habitats for one subject or a cohort.

build_habitat_extractor

Build one habitat-level node: a leaf extractor or a combiner tree.