patpy – sample-level analysis framework for single-cell data
patpy is a toolbox for single-cell data analysis on sample level.
It provides:
- 👨⚕️ Interface to sample representation methods (otherwise known as patient representation)
- 📈 Analysis functions to get the most of your data
- 📊 Metrics for sample representation evaluation
⚠️ Warning: Development in Progress ⚠️
This repository is currently under active development Features and functionalities may change unexpectedly, and some aspects of the project are not yet complete.
Please proceed with caution and feel free to contribute, but be aware that:
- The codebase is still evolving.
- Documentation may be incomplete.
- Some features may be unstable or subject to change.
If you have any questions or face bugs, feel free to open an issue.
Thank you for your patience and interest. Stay tuned for updates!
Getting started
Please refer to the documentation. In particular, the
Installation
You need to have Python 3.9 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.
There are several alternative options to install patpy:
- Install the latest release of
patpyfromPyPI:
pip install patpy
- Install the latest development version:
pip install git+https://github.com/lueckenlab/patpy.git@main
To install specific dependencies for some sample representation tools, use the following command:
pip install patpy[pilot]
All the available dependency groups: diffusionemd, mrvi, pilot, scpoli, wassersteintsne.
Some sample representation tools depend on packages not published on PyPI. To use them, install the extra and the upstream package from git:
# pascient
pip install patpy[pascient]
pip install git+https://github.com/genentech/pascient.git@main
# pulsar
pip install git+https://github.com/snap-stanford/PULSAR.git@main
Release notes
See the changelog.
Contact
For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.
Building docs
- Install sphinx
You may need add path to sphinx-doc to the $PATH
-
Install other
docsection dependencies from the pyproject.toml -
Build the documentation pages:
cd docs
make html
- Open
docs/_build/html/index.html
Citation
Preprint is coming soon. So far, you can refer to this repository as following:
APA
Shitov, V. (2024). patpy – sample-level analysis framework for single-cell data (Version 0.10.0) [Computer software]. https://github.com/lueckenlab/patpy/
BibTeX
@misc{shitov_patpy_2024,
author = {Shitov, Vladimir},
title = {patpy – sample-level analysis framework for single-cell data},
year = {2024},
url = {https://github.com/lueckenlab/patpy/},
note = {Version 0.15.2}
}
Metadata
Release files for patpy 0.15.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| patpy-0.15.2.tar.gz | 14.1 MB | With provenance | Details for patpy-0.15.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| patpy-0.15.2-py3-none-any.whl | Python 3 | none | any | Details for patpy-0.15.2-py3-none-any.whl |
Total release size: 14.2 MB
Release files / patpy-0.15.2.tar.gz
| Download URL | patpy-0.15.2.tar.gz |
|---|---|
| Size | 14.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd8dad9aa4d27eabcf14af75e8cd73feaa04643336f99830404a5621c23f66c1
|
|
BLAKE2b-256 checksum How to use checksums |
ac89c83a6e72140591bdaaec0dbbba0a9f1f942842bc8a01c94fd05ce6a48b31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 27, 2026.
Transparency logRelease files / patpy-0.15.2-py3-none-any.whl
| Download URL | patpy-0.15.2-py3-none-any.whl |
|---|---|
| Size | 80.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
820c8f6d5067d003f054a55dbf80bd8195fed4506e19557f8d92c2d395a8edb2
|
|
BLAKE2b-256 checksum How to use checksums |
5c3a6ab1ae4b17020be4f186bcbae68cadfb5ffbeb224de7e39d460513bc8292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 27, 2026.
Transparency logSecurity for patpy 0.15.2
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.
Attestation for patpy-0.15.2.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 Apr 27, 2026.
Transparency logA 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.