Skip to main content

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

overview

⚠️ 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!


Tests Coverage PyPI Documentation

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:

  1. Install the latest release of patpy from PyPI:
pip install patpy
  1. 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

  1. Install sphinx

You may need add path to sphinx-doc to the $PATH

  1. Install other doc section dependencies from the pyproject.toml

  2. Build the documentation pages:

cd docs
make html
  1. 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)

Source distribution for patpy 0.15.2
File Size Uploaded
patpy-0.15.2.tar.gz 14.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for patpy 0.15.2
File Interpreter ABI Platform
patpy-0.15.2-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.15.2 This release

2 release files

0.11.2

2 release files

0.9.1

2 release files

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