RepositoryJupyter Notebook
sanderlab

sanderlab/scPerturb

scPerturb: A resource and a python/R tool for single-cell perturbation data

195stars
13forks
14issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: scrna-seq

#1 Repository of the week

1
TINIX TRENDING·Topic: perturbation

#1 Repository of the week

1
TINIX TRENDING·Topic: cite-seq

#1 Repository of the week

Website GitHub issues GitHub last commit

scPerturb: A resource and a python tool for single-cell perturbation data

For the publication see: Peidli, S., Green, T.D., et al. Nature Methods (2024).

Where to find the data

The datasets are available to download on scperturb.org (where you can also find an interactive table of all included datasets). The latest versions are available in full on Zenodo, depending on the modality you are interested in:

Most datasets are also downloadable via pertpy or Lamin.

scperturb for python (integrates with scanpy)

PyPI - Downloads

A python package to compute E-distances in single-cell perturbation data and perform E-tests.

Please note that maintenance on the scperturb Python package is relatively slow. We have recreated Python functionality in pertpy which has a larger base of support and also includes fast calculation of alternative distance metrics and tests.

Install

Just install via pip:

pip install scperturb

Usage example

Check out this notebook for a tutorial. Basic usage is:

# E-distances
estats = edist(adata, obs_key='perturbation')
# E-distances to a specific group (e.g. 'control')
estats_control = estats.loc['control']
# E-test for difference to control
df = etest(adata, obs_key='perturbation', obsm_key='X_pca', dist='sqeuclidean', control='control', alpha=0.05, runs=100)

scperturbR for R (integrates with Seurat)

R-CMD-check

We wrote an R version of scperturb that works with Seurat objects. You can find it as scperturbR on CRAN. A basic usage vignette is WIP. Install using:

install.packages('scperturbR')

Reproducibility

Instructions to run the code to reproduce the figures and tables in the paper and supplement:

  • install conda if necessary (also check out mamba, it's way faster)
  • run "conda env create -f sc_env.yaml" to create a new conda environment with all the necessary packages to run the code (you will need this)
  • activate the environment with "conda activate sc_env"
  • download all the datasets from scperturb.org
  • in "config.yaml", change paths, especially the one to the directory where the data was downloaded to
  • run the notebooks in "notebooks" to produce the figures and tables found in the paper / supplement and the website (each saved to a different folder)

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
scverse/muon

muon is a multimodal omics Python framework

279
Nov 17, 2026
RepositoryPython
NygenAnalytics/CyteArc

Fast, out-of-core single-cell analysis in Python for RNA, ATAC, protein, and multi-omic data, scaling to 100M+ cells. Mount remote datasets, work within a memory budget, and trace every result through built-in provenance. Preprint: https://www.biorxiv.org/content/10.64898/2026.11.24.768888v1

51
Nov 27, 2026
RepositoryJupyter Notebook
microsoft/ML-For-Beginners

12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all

92.5k
Nov 7, 2026
RepositoryPython
scikit-learn/scikit-learn

scikit-learn: machine learning in Python

68.4k
Dec 1, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026
RepositoryJupyter Notebook
theislab/scarches

Reference mapping for single-cell genomics

416
Jun 26, 2026
RepositoryJupyter Notebook
pinellolab/STREAM

STREAM: Single-cell Trajectories Reconstruction, Exploration And Mapping of single-cell data

184
Dec 18, 2021
RepositoryJupyter Notebook
theislab/chemCPA

Code for "Predicting Cellular Responses to Novel Drug Perturbations at a Single-Cell Resolution", NeurIPS 2022.

164
Feb 6, 2025
RepositoryJupyter Notebook
changwn/scFEA

single cell Flux Estimation Analysis (scFEA)

159
Nov 10, 2023