Skip to main content

CI docs License: MIT PyPI DOI

Introduction

This is a collection of utilities to perform various operations on genomic count datasets involving determining differential expression.

Documentation

Documentation is at:

See a live example report generated from the public airway RNA-seq dataset — self-contained HTML produced by detk-report generate.

Installing

From pypi

pip install de_toolkit

Installing R and packages

Certain functions in detk, particularly the de, enrich, and transform modules, interface with R and Bioconductor packages. You must have a version of R installed along with the following packages to use the corresponding submodule functions:

The packages can be installed from within R with:

install.packages("BiocManager")
BiocManager::install(c("DESeq2", "fgsea"))
install.packages(c("logistf", "jsonlite"))

Development

detk requires Python 3.11 or newer. First fork and/or clone this repo:

git clone https://github.com/BU-Neuromics/de_toolkit.git

The project is managed with uv:

cd de_toolkit
uv sync        # create .venv with the package and dev tools
uv run pytest  # run the test suite

If you don't use uv, a plain virtualenv works too: pip install -e '.[test]', then pytest. Lint and format with uv run ruff check . and uv run ruff format .; docs preview with uv run --group docs mkdocs serve.

Tests that require R (DESeq2, fgsea, logistf) are skipped automatically when R is not available, or when R lacks a package the test needs; the skip reason names it (uv run pytest -rs lists them). A new test that runs R skips with tests/r_packages.py (skip_without_r("DESeq2"), or the needs_r("DESeq2") marker) rather than its own check.

A test run that leaves a new untracked file in the repository fails (tests/conftest.py); write test output under tmp_path.

To add a command, a subcommand or an option, see docs/dev/cli.md: the parsers are argparse, and their help is part of the 1.0 promise.

Agent skills

detk ships an agent skill that lets a coding agent (Claude Code, Codex, Cursor and others) run a detk analysis from a counts matrix and sample table through filter, norm, de and enrich to a detk report. Install it into your project with:

npx skills add BU-Neuromics/de_toolkit

See Agent skills in the documentation.

Metadata

Release files for de-toolkit 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for de-toolkit 1.0.1
File Size Uploaded Provenance Actions
de_toolkit-1.0.1.tar.gz 2.9 MB With provenance Details for de_toolkit-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for de-toolkit 1.0.1
File Interpreter ABI Platform Actions
de_toolkit-1.0.1-py3-none-any.whl Python 3 none any Details for de_toolkit-1.0.1-py3-none-any.whl

Total release size: 3.4 MB

Release files / de_toolkit-1.0.1.tar.gz

Download URL de_toolkit-1.0.1.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
b90c94cc6aa044600e8b4847dca4fb0b201b8787b6b52c5dedfbaf6e21c824c3
BLAKE2b-256 checksum
How to use checksums
078fe182dbecc57f56f4bcdf47f69e87380141b5d38998b85d7b5b0fd2d9073c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / de_toolkit-1.0.1-py3-none-any.whl

Download URL de_toolkit-1.0.1-py3-none-any.whl
Size 439.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acec20582d14958e067a13dd6f527561cd9660010a461793dd56207d603de3db
BLAKE2b-256 checksum
How to use checksums
8c738de5f81762fb98f8b4bfb259dd03854b64fb829a464fd1d772f2a6f7fe95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for de-toolkit 1.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for de_toolkit-1.0.1.tar.gz

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 Nov 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

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