Skip to main content

Perturbation Analysis in the scverse ecosystem.

Project description

Build codecov License PyPI Python Version Read the Docs Test PyPI

pertpy - Perturbation Analysis in Python

Pertpy is a scverse ecosystem framework for analyzing large-scale single-cell perturbation experiments. It provides tools for harmonizing perturbation datasets, automating metadata annotation, calculating perturbation distances, and efficiently analyzing how cells respond to various stimuli like genetic modifications, drug treatments, and environmental changes.

Please read our associated manuscript "Pertpy: an end-to-end framework for perturbation analysis".

fig1

Documentation

Please read the documentation for installation instructions, tutorials, use cases, and more.

Installation

We recommend installing and running pertpy on a recent version of Linux (e.g. Ubuntu 24.04 LTS). No particular hardware beyond a standard laptop is required.

You can install pertpy in less than a minute via pip from PyPI:

pip install pertpy

or conda-forge:

conda install -c conda-forge pertpy

Differential gene expression

If you want to use the differential gene expression interface, please install pertpy by running:

pip install 'pertpy[de]'

tascCODA

if you want to use tascCODA, please install pertpy as follows:

pip install 'pertpy[tcoda]'

milo

milo requires either the "de" extra for the "pydeseq2" solver:

pip install 'pertpy[de]'

or, edger, statmod, and rpy2 for the "edger" solver:

BiocManager::install("edgeR")
BiocManager::install("statmod")
pip install rpy2

Citation

@article{Heumos2025,
  author    = {Heumos, Lukas and Ji, Yuge and May, Lilly and Green, Tessa D. and Peidli, Stefan and Zhang, Xinyue and Wu, Xichen and Ostner, Johannes and Schumacher, Antonia and Hrovatin, Karin and Müller, Michaela and Chong, Faye and Sturm, Gregor and Tejada, Alejandro and Dann, Emma and Dong, Mingze and Pinto, Gonçalo and Bahrami, Mojtaba and Gold, Ilan and Rybakov, Sergei and Namsaraeva, Altana and Moinfar, Amir Ali and Zheng, Zihe and Roellin, Eljas and Mekki, Isra and Sander, Chris and Lotfollahi, Mohammad and Schiller, Herbert B. and Theis, Fabian J.},
  title     = {Pertpy: an end-to-end framework for perturbation analysis},
  journal   = {Nature Methods},
  year      = {2025},
  publisher = {Springer Nature},
  doi       = {10.1038/s41592-025-02909-7},
  url       = {https://doi.org/10.1038/s41592-025-02909-7},
  issn      = {1548-7105}
}

pertpy is part of the scverse® project (website, governance) and is fiscally sponsored by NumFOCUS. If you like scverse® and want to support our mission, please consider making a tax-deductible donation to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pertpy-1.1.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pertpy-1.1.1-py3-none-any.whl (249.5 kB view details)

Uploaded Python 3

File details

Details for the file pertpy-1.1.1.tar.gz.

File metadata

  • Download URL: pertpy-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pertpy-1.1.1.tar.gz
Algorithm Hash digest
SHA256 11e30946f10abfc42722edaf00b06edd15d16465af502dd706538bac59f99924
MD5 97717443d2ea57cc9f6ada6437734788
BLAKE2b-256 a1ec7625d0e7811d9407dc5ac135c390c60ae9666d0e07e255882fff1c37f213

See more details on using hashes here.

Provenance

The following attestation bundles were made for pertpy-1.1.1.tar.gz:

Publisher: release.yml on scverse/pertpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pertpy-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pertpy-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 249.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pertpy-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be1135b6aae5707090890509a81caf8140940a10e8ae21dd26497e80d76b9b18
MD5 60abe5345453c00112c3554d4f60c1ba
BLAKE2b-256 d39d6abe7c30edf97d2ddfabbf64523df61e2b80090bf4e038c7effc79286481

See more details on using hashes here.

Provenance

The following attestation bundles were made for pertpy-1.1.1-py3-none-any.whl:

Publisher: release.yml on scverse/pertpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page