Skip to main content

Python package with E-distance tools for single-cell perturbation data analysis.

Project description


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


Just install via pip:

pip install scperturb

Usage example

# 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)

Check out notebooks --> e-distance for tutorial.

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

scperturb-0.0.2.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

scperturb-0.0.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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