clusterde_py
A Python implementation of the ClusterDE algorithm for differential expression analysis with synthetic null comparison.
Installation
pip install clusterde_py
Usage
from clusterde_py import find_markers
import scanpy as sc
from anndata import AnnData
# Load your data
adata = ... # AnnData object with cluster labels in adata.obs
# Find markers between two clusters
result = find_markers(
adata,
cluster_key="cell_type",
group1="cluster1",
group2="cluster2",
fdr=0.05
)
# Result contains target p-values, null p-values, contrast scores, and q-values
print(result.head())
Features
- Synthetic null generation: Uses scDesigner to create null datasets without cluster structure
- Contrast scoring: Compares real vs null p-values to identify true differential expression
- FDR control: Uses Clipper algorithm for false discovery rate control
- Flexible pipeline: Supports different contrast methods and thresholding approaches
Development
To install in development mode:
git clone https://github.com/krisrs1128/clusterde-devel.git
cd clusterde-devel
pip install -e .
License
MIT
Metadata
Release files for clusterde-py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clusterde_py-0.1.0.tar.gz | 6.9 kB | Without provenance | Details for clusterde_py-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clusterde_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for clusterde_py-0.1.0-py3-none-any.whl |
Total release size: 16.0 kB
Release files / clusterde_py-0.1.0.tar.gz
| Download URL | clusterde_py-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5c6cba9d8dfe973c1e7e2fea23314e9ac964ae128b26933f3e6ea9f6e9cc538
|
|
BLAKE2b-256 checksum How to use checksums |
9ba6e6dd20f18aaf693913b5506339d5ec12def68173e88466fd28355938294a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / clusterde_py-0.1.0-py3-none-any.whl
| Download URL | clusterde_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a10617dbb8b1c44c1e806677af83014dc72f2e6fde0aef0bbf390e01d962a80
|
|
BLAKE2b-256 checksum How to use checksums |
9cb2cbe66c2a76e49e7f61d9b7b5341731ecc05b199992f3c6686e18e66aa7e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for clusterde-py 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.