single-cell spatial omics analysis that makes you happy
Project description
Single-cell spatial omics analysis that makes you happy.
Documentation · Quick Start · Tutorials · Harpy Vitessce
💫 If you find Harpy useful, please give us a ⭐! It helps others discover the project and supports continued development.
Why Harpy?
- Multi-platform support for spatial transcriptomics and proteomics data.
- Interoperable outputs built on SpatialData.
- Scales to (very) large images: tiled workflows with Dask; optional GPU acceleration with CuPy and PyTorch.
- End-to-end workflows for segmentation, feature extraction, clustering, and spatial analysis.
Installation
Recommended for end-users (Python >=3.11).
uv venv --python=3.12 # set python version
source .venv/bin/activate # activate the virtual environment
uv pip install "harpy-analysis[extra]" # use uv to pip install dependencies
python -c 'import harpy; print(harpy.__version__)' # check if the package is installed
Only for developers. Clone this repository locally, install the .[dev] instead of the [extra] dependencies and read the contribution guide.
# Clone repository from GitHub
uv venv --python=3.12 # set python version
source .venv/bin/activate # activate the virtual environment
uv pip install -e '.[dev]' # editable install with dev tooling
python -c 'import harpy; print(harpy.__version__)' # check if the package is installed
# make changes
python -m pytest # run the tests
Checkout the docs for installation instructions using conda.
Quickstart
See the short, runnable guide.
🧭 Tutorials and Guides
Explore how to use Harpy for segmentation, shallow and deep feature extraction, clustering, and spatial analysis of gigapixel-scale multiplexed data with these step-by-step notebooks:
-
🚀 Basic Usage of Harpy
Learn how to read in data, perform tiled segmentation using Cellpose and Dask-CUDA, extract features, and carry out clustering. 👉 Tutorial
-
🔧 Technology-specific advice
Learn which technologies Harpy supports. 👉 Notebook
-
🧩 Pixel and Cell Clustering
Learn how to perform unsupervised pixel- and cell-level clustering using
Harpytogether with FlowSOM. 👉 Tutorial -
✂️ Cell Segmentation
Explore segmentation workflows in
Harpyusing different tools:💡 Want us to add support for another segmentation method? 👉 Open an issue and let us know!
-
🧪 Single-cell representations from highly multiplexed images and downstream use with PyTorch
Learn how single-cell representations can be generated from highly multiplexed images. These representations can then be used downstream to train classifiers in PyTorch. 👉 Tutorial
-
🧠 Deep Feature Extraction
Discover how
Harpyenables fast, scalable extraction of deep, cell-level features from multiplex imaging data with the KRONOS foundation model for proteomics. 👉 Tutorial💡 Want us to add support for another deep feature extraction method? 👉 Open an issue and let us know!
-
🔬 Shallow Feature Extraction
Learn to extract shallow features—such as mean, median, and standard deviation of intensities—from multiplex imaging data with
Harpy. 👉 Tutorial -
🧬 Spatial Transcriptomics
Learn how to analyze spatial transcriptomics data with
Harpy. For detailed information, refer to the SPArrOW documentation.
-
🌐 Multiple samples and coordinate systems
Learn how to work with multiple samples, intrinsic and micron coordinates. 👉 Tutorial
-
📐 Rasterize and vectorize labels and shapes
Learn how to convert a segmentation mask (array) into its vectorized form, and segmentation boundaries (polygons) into their rasterized equivalents. This conversion is useful, for example, when integrating annotations (e.g., from QuPath) into downstream spatial omics analysis.👉 Tutorial
📚 For a complete list of tutorials, visit the Harpy documentation.
Computational benchmark
Explore the benchmark performance of Harpy on a large MACSima tonsil proteomics dataset. 👉 Results
Contributing
See here 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
License
Check the license. Harpy is free for academic usage. For commercial usage, please contact Saeyslab.
Issues
If you encounter any problems, please file an issue along with a detailed description.
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 harpy_analysis-0.3.3.tar.gz.
File metadata
- Download URL: harpy_analysis-0.3.3.tar.gz
- Upload date:
- Size: 102.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92e697eaf7ac88c06815a0cc6cf57678f1afba9e67cb85bc1b7e52710b53581a
|
|
| MD5 |
fe0c714cda35b9a91bddf0eddcd8e946
|
|
| BLAKE2b-256 |
00623a647516351c92b3004ad493005434b9f663ab767767e5e3255fdacb25c7
|
Provenance
The following attestation bundles were made for harpy_analysis-0.3.3.tar.gz:
Publisher:
release.yaml on saeyslab/harpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harpy_analysis-0.3.3.tar.gz -
Subject digest:
92e697eaf7ac88c06815a0cc6cf57678f1afba9e67cb85bc1b7e52710b53581a - Sigstore transparency entry: 1108269730
- Sigstore integration time:
-
Permalink:
saeyslab/harpy@8dfacd557bd7141f35f011632d876a01f02a2ed0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/saeyslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8dfacd557bd7141f35f011632d876a01f02a2ed0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file harpy_analysis-0.3.3-py3-none-any.whl.
File metadata
- Download URL: harpy_analysis-0.3.3-py3-none-any.whl
- Upload date:
- Size: 462.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eadabca0f96c2e07ca117bd26a704c07a1c0160a23c4d1dd54ed0b325271937a
|
|
| MD5 |
3d05071987242f7accdee4cf1d969e50
|
|
| BLAKE2b-256 |
ff2e918485df347f0bba2ec20903eb1a05355881ecb7bc815f7ee1a5b66e0889
|
Provenance
The following attestation bundles were made for harpy_analysis-0.3.3-py3-none-any.whl:
Publisher:
release.yaml on saeyslab/harpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harpy_analysis-0.3.3-py3-none-any.whl -
Subject digest:
eadabca0f96c2e07ca117bd26a704c07a1c0160a23c4d1dd54ed0b325271937a - Sigstore transparency entry: 1108269732
- Sigstore integration time:
-
Permalink:
saeyslab/harpy@8dfacd557bd7141f35f011632d876a01f02a2ed0 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/saeyslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8dfacd557bd7141f35f011632d876a01f02a2ed0 -
Trigger Event:
release
-
Statement type: