Skip to main content

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)

Source distribution for clusterde-py 0.1.0
File Size Uploaded
clusterde_py-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clusterde-py 0.1.0
File Interpreter ABI Platform
clusterde_py-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page