Introduction
histolytics is a spatial analysis library for histological whole slide images (WSI). Built upon torch, geopandas and libpysal, the library provides a comprehensive and scalable framework for panoptic segmentation and interpretable panoptic spatial analysis of routine histopathology slides.
Panoptic Segmentation Features 🌟
- Fast WSI-level panoptic segmentation. See example.
- Low memory-footprint segmentation results with
__geo_interface__-specification. - Multiple vectorized segmentation output formats (geojson/feather/parquet).
- Several panoptic segmentation model architectures for histological WSIs with flexible backbone support: See example
- Pre-trained models in model-hub. See: histolytics-hub
Spatial Analysis Features 📊
- Fast Spatial Querying of WSI-scale panoptic segmentation maps. See example
- Spatial indexing/partitioning for localized spatial statistics and analysis. See example
- Graph-based neighborhood analysis for local cell neighborhoods. See example
- Plotting utilities for spatial data visualization. See example
- Spatial clustering and cluster centrography metrics. See example
- Large set of morphological, intensity, chromatin distribution, and textural features at nuclear level. See example
- Large set of collagen fiber and intensity based features to characterize stroma and ECM. See example
Example Workflows 🧪
- Immuno-oncology Profiling:
- Nuclear Pleomorphism:
- TME Characterization:
- Nuclei Neighborhoods:
Installation 🛠️
pip install histolytics
Models 🤖
- Panoptic HoVer-Net
- Panoptic Cellpose
- Panoptic Stardist
- Panoptic CellVit-SAM
- Panoptic CPP-Net
Contributing
We welcome contributions! To get started:
- Fork the repository and create your branch from
main. - Make your changes with clear commit messages.
- Ensure all tests pass and add new tests as needed.
- Submit a pull request describing your changes.
See contributing guide for detailed guidelines.
Citation
@article{2025histolytics,
title={Histolytics: A Panoptic Spatial Analysis Framework for Interpretable Histopathology},
author={Oskari Lehtonen, Niko Nordlund, Shams Salloum, Ilkka Kalliala, Anni Virtanen, Sampsa Hautaniemi},
journal={XX},
volume={XX},
number={XX},
pages={XX},
year={2025},
publisher={XX}
}
Metadata
Release files for histolytics 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| histolytics-0.2.5.tar.gz | 39.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| histolytics-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.7 MB
Release files / histolytics-0.2.5.tar.gz
| Download URL | histolytics-0.2.5.tar.gz |
|---|---|
| Size | 39.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd45e843ffe71300082e66df60d8dcf9c8bf7aa9d726e4f8bf9d956dfb48401d
|
|
BLAKE2b-256 checksum How to use checksums |
716a48ce982f411b74a64707eafc497de62dd09eabb4920f325f34beb6ab3cc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / histolytics-0.2.5-py3-none-any.whl
| Download URL | histolytics-0.2.5-py3-none-any.whl |
|---|---|
| Size | 38.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51446f0d503f599982bd62551905635c883ba833ef998fdf5c4849c95095917f
|
|
BLAKE2b-256 checksum How to use checksums |
3a4bf84d287d9ab6f631d14075c9e6882340a2c72f6b53942fbe82f5ff636271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|