Differential expression analysis for single-cell genomics
Project description
🌳 delnx
delnx ("de-lo-nix" | /dɪˈlɒnɪks/) is a python package for differential expression analysis of (single-cell) genomics data. It enables scalable analyses of atlas-level datasets through GPU-accelerated regression models and statistical tests implemented in JAX. It also provides a consistent interface to perform DE analysis with other methods, such as statsmodels and PyDESeq2.
🚀 Installation
PyPI
pip install delnx
Development version
pip install git+https://github.com/joschif/delnx.git@main
⚡ Quickstart
import delnx as dx
# Compute size factors
adata = dx.pp.size_factors(adata, method="ratio")
# Estimate dispersion parameters
adata = dx.pp.dispersion(adata, size_factor_key="size_factor", method="deseq2")
# Run differential expression analysis
results = dx.tl.de(
adata,
condition_key="condition",
group_key="cell_type",
mode="all_vs_ref",
reference="control",
method="negbinom",
size_factor_key="size_factor",
dispersion_key="dispersion",
)
💎 Features
- Pseudobulking: Perform DE on large multi-sample datasets by using pseudobulk aggregation.
- Size factor estimation: Compute size factors for normalization and DE analysis.
- Dispersion estimation: Estimate dispersion parameters for negative binomial models.
- Differential expression analysis: Consistent interface to perform DE analysis using various methods, including:
- Negative binomial regression with dispersion estimates.
- Logistic regression with a likelihood ratio test.
- ANOVA tests based on linear models.
- DESeq2 through PyDESeq2, a widely used method for DE analysis of RNA-seq data.
- GPU acceleration: Most methods are implemented in JAX, enabling GPU acceleration for scalable DE-analysis on large datasets.
⚙️ Backends
delnx implements DE tests using regression models and statistical tests from various backends:
🗺️ Roadmap
- Provide a common interface to standard GLM-based DE tests (inspired by Seurat::FindMarkers)
- Logistic regression and likelihood ratio test
- statsmodels
- JAX
- cuML
- Negative binomial regression
- statsmodels
- JAX
- ANOVA
- statsmodels
- JAX
- Binomial regression for binary data
- statsmodels
- JAX
- Logistic regression and likelihood ratio test
- Implement DESeq2 wrapper using PyDESeq2
- Implement size factor estimation methods
- Add dispersion estimation methods
- Basic gene-wise dispersion estimation
- DESeq2 and edgeR-inspired dispersion estimation with shrinkage
- Take design and covariates into account for dispersion estimation
- Plotting functions to visualize DE results
- Gene set enrichment analysis for DE results
📖 Documentation
For more information, check out the documentation and the API reference.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delnx-0.2.1.tar.gz.
File metadata
- Download URL: delnx-0.2.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e3e385591a697992bcb96bbf4c01c1aa5da8b545fee2c92823308c5e47f9e83
|
|
| MD5 |
759440b23eead44890564975a7061c3f
|
|
| BLAKE2b-256 |
e04dddef65cde7070e0db5376085457b5d127f7d06c308af3278d12095b8348c
|
Provenance
The following attestation bundles were made for delnx-0.2.1.tar.gz:
Publisher:
release.yaml on joschif/delnx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
delnx-0.2.1.tar.gz -
Subject digest:
4e3e385591a697992bcb96bbf4c01c1aa5da8b545fee2c92823308c5e47f9e83 - Sigstore transparency entry: 244813176
- Sigstore integration time:
-
Permalink:
joschif/delnx@b91b15a1e8f50cfcd21b681364074b2c13a4faf9 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/joschif
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b91b15a1e8f50cfcd21b681364074b2c13a4faf9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file delnx-0.2.1-py3-none-any.whl.
File metadata
- Download URL: delnx-0.2.1-py3-none-any.whl
- Upload date:
- Size: 70.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
016ce72551bf6a534f9157a6901f6d673c1f239c7edec39cd4b648813da82fe2
|
|
| MD5 |
3aa32b9579732f0a8202f58da3b2cce5
|
|
| BLAKE2b-256 |
e1117d6b3746853323fc2102f10cd7cc2f162444d3d6b4c85b15ac7642595ef0
|
Provenance
The following attestation bundles were made for delnx-0.2.1-py3-none-any.whl:
Publisher:
release.yaml on joschif/delnx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
delnx-0.2.1-py3-none-any.whl -
Subject digest:
016ce72551bf6a534f9157a6901f6d673c1f239c7edec39cd4b648813da82fe2 - Sigstore transparency entry: 244813181
- Sigstore integration time:
-
Permalink:
joschif/delnx@b91b15a1e8f50cfcd21b681364074b2c13a4faf9 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/joschif
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b91b15a1e8f50cfcd21b681364074b2c13a4faf9 -
Trigger Event:
release
-
Statement type: