Skip to content

saeyslab/harpy

Repository files navigation

Harpy: single-cell spatial proteomics analysis that makes you happy

PyPI Downloads Build Status documentation badge Test Status codecov License GitHub repo size uv Ruff

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

Installation

Recommended for end-users.

uv venv --python=3.12 # set python version
source .venv/bin/activate # activate the virtual environment
uv pip install "git+https://github.com/saeyslab/harpy.git#egg=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]' # use uv to pip install dependencies
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.

🧭 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


  • 🧩 Pixel and Cell Clustering

    Learn how to perform unsupervised pixel- and cell-level clustering using Harpy together with FlowSOM. 👉 Tutorial


  • 🔬 Cell Segmentation

    Explore segmentation workflows in Harpy using different tools:

    💡 Want us to add support for another segmentation method? 👉 Open an issue and let us know!


  • 🧠 Deep Feature Extraction

    Discover how Harpy enables 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



  • 🌐 Multiple samples and coordinate systems

    Learn how to work with multiple samples, instrinsic and micron coordinates. 👉 Tutorial


📚 For a complete list of tutorials, visit the Harpy documentation.

Usage

Learn how Harpy can be integrated into your workflow.

Contributing

See here for info on how to contribute to Harpy.

References

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.

Packages

No packages published

Contributors 8

Languages