ITH Score
Output
ith_scores.csv
Definition
Topological intra-tumor heterogeneity (ITH) score computed on the habitat label map. Each habitat label contributes connected-component statistics; the score increases when labels are fragmented into many small regions.
Formula
\(S_{\mathrm{total}}\) = tumor voxel count; \(S_{i,\max}\) = largest connected component of label i; \(n_i\) = number of connected components of label i.
Connected components use SimpleITK ConnectedComponent (default 6-connectivity in 3D, same as non_radiomics).
Output columns
Column |
Description |
|---|---|
|
ITH score (higher = more fragmented; not clamped to [0, 1]) |
|
Number of distinct habitat labels (> 0) in the map |
|
\(n_i\) (component count for label i; i = actual label value) |
|
\(S_{i,\max}\) |
|
\(S_{i,\max} / n_i\) |
|
\(S_{\mathrm{total}}\) |
Notes
HABIT applies the ITHscore topology step to an existing habitat map (*_habitats.nrrd). It does not repeat the pixel-level radiomics clustering from the original ITHscore pipeline.
Implementation
habit/core/habitat_analysis/habitat_features/ith_features.py