Skip to main content
delnx

PyPI version Tests Codecov pre-commit.ci status Documentation Status

🌸 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.

🚀 Installation

PyPI

pip install delnx

Development version

pip install git+https://github.com/joschif/delnx.git@main

⚡ Quickstart

Negative binomial DE (count data)

import delnx as dx

# Fit negative binomial GLMs with quasi-likelihood dispersion shrinkage
fit = dx.tl.nb_fit(adata, condition_key="treatment", reference="control")

# Test for differential expression
results = dx.tl.nb_test(adata, fit, contrast="treatment[T.drugA]")

General-purpose DE (log-normalized / binary data)

# Logistic regression with likelihood ratio test
results = dx.tl.de(
    adata,
    condition_key="treatment",
    reference="control",
    contrast="treatment[T.drugA]",
)

# Formula-based design with covariates
results = dx.tl.de(
    adata,
    formula="~ treatment + batch",
    contrast="treatment[T.drugA]",
    method="anova",
)

Per-group DE with grouped wrapper

results = dx.tl.grouped(
    dx.tl.de, adata,
    group_key="cell_type",
    condition_key="treatment",
    reference="control",
    contrast="treatment[T.drugA]",
)

Fast rank-based markers

results = dx.tl.rank_de(adata, condition_key="cell_type")

💎 Features

  • Negative binomial GLMs: GPU-accelerated glmGamPoi-style fitting with quasi-likelihood dispersion shrinkage for count data.
  • General-purpose DE: Logistic regression, ANOVA, and binomial GLM for log-normalized, scaled, or binary data.
  • Formula interface: R-style formulas (~ treatment + batch) parsed by patsy, with treatment coding and reference levels.
  • Rank-based markers: Fast AUROC-based one-vs-all marker detection with Numba-optimized ranking.
  • Pseudobulking: Perform DE on large multi-sample datasets by using pseudobulk aggregation.
  • Effect sizes: Log2 fold change and AUROC computation for pairwise condition comparisons.
  • GPU acceleration: Core methods are implemented in JAX, enabling GPU acceleration for scalable DE analysis on large datasets.

📖 Documentation

For more information, check out the documentation and the API reference.

Metadata

Release files for delnx 0.3.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 delnx 0.3.0
File Size Uploaded
delnx-0.3.0.tar.gz 5.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for delnx 0.3.0
File Interpreter ABI Platform
delnx-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 MB

Release files / delnx-0.3.0.tar.gz

Download URL delnx-0.3.0.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fdbbc56ef70086ddffcb0a4670d622286570a06f144fddde5a141db9af57a6c2
BLAKE2b-256 checksum
How to use checksums
e999399c1046a51adba3d3e2a0966c21c23fc233fd84c8ebe5446b0a63997571
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 23, 2026.

Transparency log

Release files / delnx-0.3.0-py3-none-any.whl

Download URL delnx-0.3.0-py3-none-any.whl
Size 86.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
288b28ca52655b72caf60643df442e628d287853c17adafdfdad4aafb60928b6
BLAKE2b-256 checksum
How to use checksums
a59d0ab697961f145707e3875f7d76bd0813a570c12227d67f11ea734ee01a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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