Skip to main content

image PyPI version Documentation Status License: MIT

CABANA (CollAgen FiBre ANAlyzer) is a comprehensive toolkit for analyzing collagen fibre architecture in immunohistochemistry (IHC) and fluorescence microscopy images. It provides:

  • Automated detection and quantification of collagen fibres
  • Analysis of fibre orientation, length, and thickness
  • Gap analysis for inter-fibre and intra-fibre spaces
  • Interactive parameter optimization interface
  • Batch processing for large datasets
  • Tissue micro-array (TMA) preprocessing: native Olympus VSI reading, core fitting, per-core images and masks named by patient (cabana-tma)
  • Optional ROI masks that confine every measurement to a region of interest

CABANA combines advanced computer vision algorithms with an intuitive user interface, making it accessible to researchers without extensive programming experience while providing detailed quantitative data for comprehensive analysis of collagen architecture.

System Requirements

  • Processor (CPU): Intel Core i7, AMD Ryzen 7, or higher recommended
  • Memory (RAM): Minimum 16 GB, 32 GB recommended
  • GPU: NVIDIA GeForce GTX/RTX series with at least 10 GB VRAM recommended
  • Python: 3.12
  • Apple silicon: the segmentation network runs on the Apple GPU (MPS) automatically

Quick Installation

Install CABANA using pip:

pip install -U cabana

On Windows with an NVIDIA graphics card, install the CUDA build of PyTorch first (pip otherwise installs the CPU-only build and segmentation runs on the CPU). Take the command from pytorch.org/get-started/locally, for example:

pip install torch --index-url https://download.pytorch.org/whl/cu128
pip install -U cabana

or install the latest version on GitHub:

pip install git+https://github.com/Garvan-Data-Science-Platform/Cabana.git

After installation, you can launch the CABANA GUI by running:

python -m cabana        # or: cabana-gui

Tissue micro-array slides can also be cut into per-core images from the command line:

cabana-tma "APGI TMA 1 PicRed.vsi" out/TMA1 --array 1        # built-in ICGC/APGI array
cabana-tma "my slide.vsi" out/mine --map my_maps.csv           # your own map
cabana-tma map template maps/                                  # a template to type or paste a map into

Alternatively, you can import CABANA in your Python code for customized analysis (see the Python API page):

from cabana import Cabana, BatchProcessor, TMAPreprocessor

Documentation

Comprehensive documentation is available at: https://cabana.readthedocs.io/en/latest/

Tutorials

We provide an interactive Jupyter notebook tutorial to help you get started: CABANA Tutorial

Citation

If you use CABANA in your research, please cite:

License

CABANA is released under the MIT License.

Contact

For questions and support, please contact:

Metadata

Release files for cabana 0.4.2

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

Source distribution (sdist)

Source distribution for cabana 0.4.2
File Size Uploaded Provenance Actions
cabana-0.4.2.tar.gz 490.1 kB Without provenance Details for cabana-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cabana 0.4.2
File Interpreter ABI Platform Actions
cabana-0.4.2-py3-none-any.whl Python 3 none any Details for cabana-0.4.2-py3-none-any.whl

Total release size: 892.7 kB

Release files / cabana-0.4.2.tar.gz

Download URL cabana-0.4.2.tar.gz
Size 490.1 kB
Tags Source
SHA-256 checksum
How to use checksums
487c155524789e97342c135af796a19a048d7884c9f7bb74bf96d6109642deb9
BLAKE2b-256 checksum
How to use checksums
307705619f07f26664c3b1f67147ce216fce4111342675298f5efc499c2fca24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / cabana-0.4.2-py3-none-any.whl

Download URL cabana-0.4.2-py3-none-any.whl
Size 402.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec306f0f36ccea908cb58d732d0138916b50cc307d65ee07c4ee0065ab4cde48
BLAKE2b-256 checksum
How to use checksums
b103859facc69b9c721fd7f1f53f44720c8ef54e02708bfe352d91b5de2c83e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for cabana 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files No provenance

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