Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pydeseq2

Skill by K-Dense-AI

Runs bulk RNA-seq differential expression analysis with PyDESeq2 in Python. Built for DESeq2-style workflows on experiments with biological replicates.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pydeseq2

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pydeseq2 ~/.claude/skills/pydeseq2

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pydeseq2 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

PyDESeq2 is an agent skill for bulk RNA-seq differential expression analysis in Python. It covers count validation, formula designs, explicit contrasts, Wald tests, FDR correction, coefficient-matched LFC shrinkage and result visualization. The skill is aimed at PyDESeq2 or Python DESeq2 workflows with biological replicates. Cells and repeated measurements from one donor are not treated as independent replicates.

It expects nonnegative integer counts in samples by genes order and checks equal sample sets, zero-count samples and contrast annotations before fitting. A bundled driver script writes results tables, an AnnData snapshot and a manifest, plus optional volcano and MA plots. The guidance also covers signed Wald ranking for enrichment and how missing p-values are reported.

Written from the project's SKILL.md and checked against it.

What it can do

  • Count validationChecks counts, sample sets and zero-count samples before fitting the model.
  • Formula designsFits full-rank designs with explicit reference levels and covariates.
  • Explicit contrastsTests a named contrast with Wald tests at a chosen alpha.
  • FDR correctionReports padj values and keeps missing values missing rather than replacing them.
  • LFC shrinkageShrinks only the single coefficient that exactly matches the tested contrast.
  • Result exportWrites results, significant gene tables, an AnnData snapshot and an analysis manifest.
  • VisualizationProduces volcano and MA plots when the --plots option is used.
  • Enrichment guidanceExplains which signed Wald statistic to use for preranked enrichment.

What you need

  • Python 3.11 or later
  • PyDESeq2 0.5.4
  • AnnData 0.13.4 for the tested stack, which requires Python 3.12 or later
  • Network access for installation and upstream example data downloads

Try asking

  • Run a PyDESeq2 analysis on my counts and metadata with a treated vs control contrast
  • Export volcano and MA plots from my DESeq2 results at alpha 0.05
  • Check my count matrix and metadata before fitting a batch-adjusted design

Good to know

  • The CLI does not expose thresholded tests or alternative normalization methods; use the Python API for those.
  • Current support covers Wald tests and apeGLM-style shrinkage, and not every R DESeq2 feature is implemented identically.
  • Installation and upstream example-data downloads need network access.
  • It is not a single-cell per-cell testing workflow.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pydeseq2/SKILL.md, skills/pydeseq2/scripts/run_deseq2_analysis.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Bash

  • SKILL.md10 KB
  • references/analysis_patterns.md5 KB
  • references/api_reference.md9 KB
  • references/core_workflow_steps.md3 KB
  • references/workflow_guide.md9 KB
Show all 6 files
  • scripts/run_deseq2_analysis.py17 KB

Alternatives to pydeseq2

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

pydeseq2: common questions

What input format does the PyDESeq2 driver expect?

By default the counts CSV is genes by samples and the metadata CSV is samples by annotations, with IDs in the first column. Use --no-transpose if the counts file is already in samples by genes order.

Can I use TPM or FPKM values as input?

No. The source says TPM, FPKM, log data, VST data and library-normalized counts are not model inputs.

Are single cells treated as biological replicates?

No. The source says cells, sequencing lanes and repeated measurements from the same donor are not independent biological replicates.

How do I install pydeseq2?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pydeseq2 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pydeseq2 safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pydeseq2?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

pydeseq2 Install

Add to stack

Loading.