Skip to main content

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.

Language / 语言:English | 简体中文


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 and is not pulled by HABIT extras — install it separately when you need radiomics features:

  • Windows: install the matching prebuilt wheel from Release v1.0.2 (do not use bare pip install pyradiomics — the PyPI sdist fails to build). Example for Python 3.10:
    pip install https://github.com/lichao312214129/HABIT/releases/download/v1.0.2/pyradiomics-3.1.0-cp310-cp310-win_amd64.whl
    
  • macOS / Linux: pip install "pyradiomics>=3.0.1,<3.2", or conda install -c conda-forge pyradiomics

Full wheel table: Installation. Other extras: pip install "habitat-analysis[ml,analysis,registration]".


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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for habitat-analysis 1.0.4
File Size Uploaded
habitat_analysis-1.0.4.tar.gz 970.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for habitat-analysis 1.0.4
File Interpreter ABI Platform
habitat_analysis-1.0.4-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.4.tar.gz

Download URL habitat_analysis-1.0.4.tar.gz
Size 970.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f7e957839a0019755700ff875e3579a1a01b6e7542c715e2041e1bf8948bd297
BLAKE2b-256 checksum
How to use checksums
0aaf184290ce10906ee302be93edb46aa30dfe279b507e1190044fc13b6a5bd4
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.4-cp310-cp310-win_amd64.whl

Download URL habitat_analysis-1.0.4-cp310-cp310-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
39d9e6baf8f70783808977a5fda54eedca66e39af998829ff87d440d4fbb6426
BLAKE2b-256 checksum
How to use checksums
56f8f9920d79985d0f0dca9b2b907da3a5ea2cc390d696ae3d15a21205e6a901
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.16

Release history Release notifications | RSS feed

3.0.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

6 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page