Skip to main content

Logo

A Python library for scalable panoptic spatial analysis of histological WSIs

Github Test License Python - Version Package - Version Model Checkpoints

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 🧪

Installation 🛠️

pip install histolytics

Models 🤖

Contributing

We welcome contributions! To get started:

  1. Fork the repository and create your branch from main.
  2. Make your changes with clear commit messages.
  3. Ensure all tests pass and add new tests as needed.
  4. 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}
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

histolytics-0.2.5.tar.gz (39.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

histolytics-0.2.5-py3-none-any.whl (38.7 MB view details)

Uploaded Python 3

File details

Details for the file histolytics-0.2.5.tar.gz.

File metadata

  • Download URL: histolytics-0.2.5.tar.gz
  • Upload date:
  • Size: 39.0 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for histolytics-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cd45e843ffe71300082e66df60d8dcf9c8bf7aa9d726e4f8bf9d956dfb48401d
MD5 309cf74b951db80a03f0f58a54cad9c4
BLAKE2b-256 716a48ce982f411b74a64707eafc497de62dd09eabb4920f325f34beb6ab3cc0

See more details on using hashes here.

File details

Details for the file histolytics-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: histolytics-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 38.7 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for histolytics-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 51446f0d503f599982bd62551905635c883ba833ef998fdf5c4849c95095917f
MD5 d88b9a32801cc1f614cbe110b0c0938b
BLAKE2b-256 3a4bf84d287d9ab6f631d14075c9e6882340a2c72f6b53942fbe82f5ff636271

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

1 file

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page