Harpy#
Single-cell spatial omics analysis that makes you happy.
💫 If you find Harpy useful, please give us a ⭐ on GitHub! 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, and 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 withharpy.tb.io; add images, labels, shapes and points withharpy.im,harpy.shandharpy.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.
For interactive exploration and analysis of SpatialData stores, see the spatiato package, a spatial omics interface for napari, built on SpatialData and Harpy.
For interactive visualization of Harpy outputs using Vitessce, see the harpy_vitessce package.
Note for users upgrading to Harpy
0.4.0: parameters that refer toSpatialDataelements now use the*_nameconvention instead of the older*_layernaming to stay aligned with scverse naming conventions. For example,img_layerbecomesimage_name,labels_layerbecomeslabels_name, andtable_layerbecomestable_name.
Explore how to use Harpy with these step-by-step notebooks:
🎓 Spatial multi-omics training
Work through course notebooks on
SpatialDataobjects, targeted transcriptomics and spatial proteomics with Harpy and spatiato. 👉 Training
Learn how to install Harpy.
Run a short, end-to-end example.
Tutorials to help you get up to speed with Harpy.
Learn which technologies Harpy supports.
Find a detailed documentation of Harpy.
Explore Harpy’s benchmark performance.
Learn how to run Harpy in a High-Performance Computing (HPC) environment.
Learn how to contribute to Harpy.
If you use Harpy for spatial proteomics analysis, 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