Habitat Analysis: Biomedical Imaging Toolkit (HABIT)
Tumor habitat analysis and intratumoral heterogeneity quantification for clinical and radiomics research. Workflows are driven by YAML configs: preprocessing, habitat segmentation, feature extraction, and optional machine learning.
Documentation
Online docs: https://lichao312214129.github.io/HABIT
Local build: cd docs && make html → docs/build/html/index.html
Suggested learning path
| Step | Topic | Link |
|---|---|---|
| 1 | Install HABIT | Installation |
| 2 | Demo workflow | Quickstart |
| 3 | Web GUI (under development) | Web GUI |
| 4 | Step-by-step how-to | How-to index |
| 5 | YAML parameters | Configuration |
Workflow chapters
| Step | Link |
|---|---|
| Prepare data | Prepare data |
| Preprocessing | Preprocess |
| Habitat segmentation | Segment habitat |
| Feature extraction | Extract features |
| Machine learning | Train model |
| Model comparison | Compare models |
| FAQ | FAQ |
Tools & more
| Topic | Link |
|---|---|
| CLI overview | CLI reference |
| Contributing | Contributing |
Bundled config templates
After cloning or unpacking the repo, use the config/ folder at the project root (sibling to the habit/ Python package). See config/README_CONFIG.md and Configuration reference.
Install & demo data
Two supported install methods (full steps: Installation). Python 3.10–3.14 (numpy 1.26 and 2.x).
- (A) pip (Miniconda / venv / etc.)
pip install habitat-analysis habit --version # import name remains: import habit
- (B) from Git source
git clone https://github.com/lichao312214129/HABIT.git cd HABIT pip install . # editable: pip install -e .
PyRadiomics is not a default dependency. When you need radiomics features:
pip install "habitat-analysis[radiomics]"
python -m habit.install_radiomics
python -c "import radiomics; print(radiomics.__version__)"
On Windows this installs the matching prebuilt wheel from the HABIT GitHub Release (avoids the broken PyPI sdist). On macOS / Linux it installs pyradiomics from PyPI. Other extras: pip install "habitat-analysis[ml,analysis,registration]".
- Source: GitHub
- Demo data: Quickstart
Support & citation
- Issues: GitHub Issues
- Citation: see CITATION.cff
- License: Apache License 2.0. Free for academic and commercial use; the only obligation is to retain the copyright and license notices and to ship NOTICE with redistributions. When HABIT supports scientific work, the authors request -- but do not require as a license condition -- that you cite it
Release files for habitat-analysis 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| habitat_analysis-1.0.3.tar.gz | 971.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| habitat_analysis-1.0.3-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details |
Total release size: 2.4 MB
Release files / habitat_analysis-1.0.3.tar.gz
| Download URL | habitat_analysis-1.0.3.tar.gz |
|---|---|
| Size | 971.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
967ffdb838f8086d03d99dd81ddc1c7b99472fe251dff9c561a45219282327ac
|
|
BLAKE2b-256 checksum How to use checksums |
e13d3acc66de196fc6de00865e6a6d63ef76a95d2ed1d90e159b609c08897c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.16
|
Release files / habitat_analysis-1.0.3-cp310-cp310-win_amd64.whl
| Download URL | habitat_analysis-1.0.3-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f55f416872e68befd57fe63c63904592a77fc0ba2cad1654b06b8d3a341534c5
|
|
BLAKE2b-256 checksum How to use checksums |
69b8d6af1aa46c09c746dff54e8059f0a76a4b51522fd6fab5ffc25b6a194060
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.16
|