Skip to main content
Harpy logo

Single-cell spatial omics analysis that makes you happy.

PyPI Release Status Build Status Test Status pre-commit.ci status documentation badge codecov Downloads License DOI Paper scverse ecosystem

Documentation · Quick Start · Tutorials · spatiato · harpy-vitessce

💫 If you find Harpy useful, please give us a ⭐! It helps others discover the project and supports continued development.

Why Harpy?

Harpy is a spatial omics analysis library for spatial transcriptomics and proteomics, and part of the scverse ecosystem. It bridges SpatialData and downstream analysis tools such as AnnData, Scanpy, and Squidpy. It provides scalable, image- and geometry-aware computation to transform raw spatial data into analysis-ready representations, with a strong emphasis on interoperability and large-scale workflows.

In practice, Harpy offers fast, out-of-core image preprocessing, tiled segmentation, along with efficient aggregation workflows to generate AnnData tables and compute per-cell features from images, segmentation masks, and transcript coordinates. It also supports deep feature extraction, pixel- and cell-level clustering, and the construction of single-cell representations from highly multiplexed images.

  • Multi-platform support for spatial transcriptomics and proteomics data.
  • Interoperable outputs built on SpatialData.
  • SpatialData and AnnData ergonomics: read single tables and write only the components that changed (obs, obsm, uns, …) to a backed Zarr store with harpy.tb.io; add images, labels, shapes and points with harpy.im, harpy.sh and harpy.pt.
  • Scales to (very) large images: tiled workflows with Dask; optional GPU acceleration with CuPy and PyTorch.
  • Scalable computational building blocks for segmentation, feature extraction, clustering, and spatial analysis.

Development and support

Harpy is actively developed and maintained by the Saeys Lab and VIB Spatial Catalyst, part of VIB Technologies. VIB funds a dedicated development team, so Harpy gets long-term maintenance and continued development.

Installation

pip install harpy-analysis

Optional extras:

Extra Installs
[extra] Segmentation (cellpose, instanseg-torch), OpenCV (opencv-python-headless), Vitessce (harpy-vitessce) and notebook tools (marimo, ipywidgets, tqdm, …)
[spatiato] spatiato, the spatial omics interface for napari
pip install "harpy-analysis[extra]"

For the developer setup and more details, see the installation guide.

Quickstart

See the short, runnable guide.

Ecosystem

  • spatiato: a spatial omics interface for napari, built on SpatialData and Harpy, for interactive exploration and analysis of SpatialData stores.
  • harpy-vitessce: interactive visualization of Harpy outputs with Vitessce.
  • Spatial multi-omics training: course notebooks on SpatialData objects, targeted transcriptomics and spatial proteomics with Harpy and spatiato.

Computational benchmark

Explore the benchmark performance of Harpy on a large MACSima tonsil proteomics dataset. 👉 Results

Contributing

See the contribution guide for info on how to contribute to Harpy.

Citation

If you use Harpy in your work, please cite:

Benjamin Rombaut, Arne Defauw, Frank Vernaillen, Julien Mortier, Evelien Van Hamme, Sofie Van Gassen, Ruth Seurinck, Yvan Saeys. Scalable analysis of whole slide spatial proteomics with Harpy. Bioinformatics (2026), btag122. https://doi.org/10.1093/bioinformatics/btag122

If you use Harpy for spatial transcriptomics analysis, please cite:

Lotte Pollaris, Bavo Vanneste, Benjamin Rombaut, Arne Defauw, Frank Vernaillen, Julien Mortier, Wout Vanhenden, Liesbet Martens, Tinne Thone, Jean-Francois Hastir, Anna Bujko, Wouter Saelens, Jean-Christophe Marine, Hilde Nelissen, Evelien Van Hamme, Ruth Seurinck, Charlotte L. Scott, Martin Guilliams, Yvan Saeys. SPArrOW: a flexible, interactive and scalable pipeline for spatial transcriptomics analysis. https://doi.org/10.1101/2024.07.04.601829

BibTeX
@article{rombaut2026harpy,
  title   = {Scalable analysis of whole slide spatial proteomics with Harpy},
  author  = {Rombaut, Benjamin and Defauw, Arne and Vernaillen, Frank and Mortier, Julien and Van Hamme, Evelien and Van Gassen, Sofie and Seurinck, Ruth and Saeys, Yvan},
  journal = {Bioinformatics},
  volume  = {42},
  number  = {3},
  pages   = {btag122},
  year    = {2026},
  doi     = {10.1093/bioinformatics/btag122}
}

@article{pollaris2024sparrow,
  title   = {SPArrOW: a flexible, interactive and scalable pipeline for spatial transcriptomics analysis},
  author  = {Pollaris, Lotte and Vanneste, Bavo and Rombaut, Benjamin and Defauw, Arne and Vernaillen, Frank and Mortier, Julien and Vanhenden, Wout and Martens, Liesbet and Thon{\'e}, Tinne and Hastir, Jean-Francois and Bujko, Anna and Saelens, Wouter and Marine, Jean-Christophe and Nelissen, Hilde and Van Hamme, Evelien and Seurinck, Ruth and Scott, Charlotte L. and Guilliams, Martin and Saeys, Yvan},
  journal = {bioRxiv},
  year    = {2024},
  doi     = {10.1101/2024.07.04.601829}
}

License

Harpy is licensed under the BSD 3-Clause License.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for harpy-analysis 0.5.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 harpy-analysis 0.5.4
File Size Uploaded Provenance Actions
harpy_analysis-0.5.4.tar.gz 21.8 MB With provenance Details for harpy_analysis-0.5.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harpy-analysis 0.5.4
File Interpreter ABI Platform Actions
harpy_analysis-0.5.4-py3-none-any.whl Python 3 none any Details for harpy_analysis-0.5.4-py3-none-any.whl

Total release size: 22.8 MB

Release files / harpy_analysis-0.5.4.tar.gz

Download URL harpy_analysis-0.5.4.tar.gz
Size 21.8 MB
Tags Source
SHA-256 checksum
How to use checksums
81ab0055f1291d6483896b98b4ec75ab12219be7decd4fc65e7b1f9ae269627b
BLAKE2b-256 checksum
How to use checksums
aed63ac5117fb8a33059f0d9f895270f5625f34d0aeb541a35cd9f0b01820e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / harpy_analysis-0.5.4-py3-none-any.whl

Download URL harpy_analysis-0.5.4-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
48b1aeeb1b9cfa91a4429ddb4451bf3242d7a178485f52abccc8018d6b4fdc12
BLAKE2b-256 checksum
How to use checksums
918001d7575bb2629d16002167a883316655b5ea6989929f1249dcc6ca469c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for harpy-analysis 0.5.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harpy_analysis-0.5.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

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