Minimal implementation of the ClusterDE Algorithm for marker gene analysis vs. a synthetic null
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clusterde_py-0.1.0.tar.gz
(6.9 kB
view details)
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 clusterde_py-0.1.0.tar.gz.
File metadata
- Download URL: clusterde_py-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5c6cba9d8dfe973c1e7e2fea23314e9ac964ae128b26933f3e6ea9f6e9cc538
|
|
| MD5 |
4ad8880df795fbdfde5e6a212e4a8846
|
|
| BLAKE2b-256 |
9ba6e6dd20f18aaf693913b5506339d5ec12def68173e88466fd28355938294a
|
File details
Details for the file clusterde_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clusterde_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a10617dbb8b1c44c1e806677af83014dc72f2e6fde0aef0bbf390e01d962a80
|
|
| MD5 |
2f61ac764da911de2d5856a6a990c46f
|
|
| BLAKE2b-256 |
9cb2cbe66c2a76e49e7f61d9b7b5341731ecc05b199992f3c6686e18e66aa7e3
|