Panoptic Segmentation and WSI Spatial Analysis
Project description
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}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file histolytics-0.2.4.tar.gz.
File metadata
- Download URL: histolytics-0.2.4.tar.gz
- Upload date:
- Size: 39.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4eb86286f93c6ed50b2574c4e8432026a809ec8ca48d55e898740ce2ade2407
|
|
| MD5 |
5793628e2eeaf840e74b359d46f54722
|
|
| BLAKE2b-256 |
051181f03e757d9488f6cbb866aaeacaae48fb6a5ebeb3637cfecdfcbf816488
|
File details
Details for the file histolytics-0.2.4-py3-none-any.whl.
File metadata
- Download URL: histolytics-0.2.4-py3-none-any.whl
- Upload date:
- Size: 38.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e3c47d6aa8cd682f60b9639d5a3ceecfd275a648bb722ae4b16c4804a79d58
|
|
| MD5 |
041393a4a39e62141cbe397c3cc0df92
|
|
| BLAKE2b-256 |
2f709f5d28472e16952581458b5d8f1dba8ec376f26767f7e066d0bfa764c39b
|