pydeseq2

pydeseq2 is a skill for Claude Code from K-Dense-AI/scientific-agent-skills. It costs 67 tokens per session (2,350 once invoked), scanned A, original, MIT.

A Python implementation of DESeq2 for finding genes whose activity differs between groups in bulk RNA-seq data. RNA-seq measures gene activity by counting RNA molecules, while bulk data combines many cells in one sample.

In plain words
What is it for?
Use it to compare treated and control samples, account for covariates, calculate statistical significance and false-discovery rates, shrink effect-size estimates, and visualize results.
Why use it?
It handles experimental designs with multiple factors such as treatment and batch, then corrects for the many statistical tests involved in comparing thousands of genes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to compare treated and control samples, account for covariates, calculate statistical significance and false-discovery rates, shrink effect-size estimates, and visualize results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-dense-ai/scientific-agent-skills/pydeseq2
About the project

Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.

K-Dense-AI/scientific-agent-skills · 58,946 stars · on GitHub · arxiv.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add K-Dense-AI/scientific-agent-skills --skill pydeseq2
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pydeseq2

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pydeseq2/github.svg)](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pydeseq2)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pydeseq2"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pydeseq2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pydeseq2

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pydeseq2"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pydeseq2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,350 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 21 Oct 2026
  • Snyk pass 21 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.02350
Opus 5.5 $0.00027 $0.00940
Sonnet 5.5 $0.00013 $0.00470
Haiku 4.5 $0.00007 $0.00235

Measured 1mo ago against content hash f06a9f5ece54, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pydeseq2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_deseq2_analysis.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • pydeseq2 — 100% identical, 459 lines differ
  • pydeseq2 — 91% identical, 468 lines differ
skills/pydeseq2/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PyDESeq2

Use this skill for bulk RNA-seq negative-binomial GLMs, with explicit biological replicates, covariates, and comparisons. Cells, sequencing lanes, and repeated measurements from the same donor are not independent biological replicates. Donor-level pseudobulk can be appropriate when its aggregation and design match the scientific question; this is not a single-cell per-cell testing workflow.

Current PyDESeq2 0.5.4 provides Wald tests and apeGLM-style coefficient shrinkage. Do not assume every feature or numerical result of current R DESeq2 is implemented identically. See API and tested versions for supported calls, AnnData storage, and source/runtime verification limits.

Analysis contract

  1. Establish the experimental unit, count provenance, sample exclusions, reference levels, and intended comparison before fitting. Use nonnegative integer counts in samples × genes order, with unique sample/gene IDs. TPM, FPKM, log data, VST data, and library-normalized counts are not model inputs. Integer checks alone cannot establish raw-count provenance. Approved estimated-count imports need an explicit upstream conversion and offset/length-correction policy.
  2. Require equal sample sets and reorder metadata to the count index. Resolve unmatched IDs and missing design annotations explicitly; never silently take an intersection. Determine orientation from the file schema, not its shape.
  3. Apply a prespecified gene prefilter after intentional sample exclusions. Total counts >=10 is a small example rule, not a universal biological threshold. Keep enough genes to estimate normalization and dispersion trends jointly.
  4. Build a full-rank formula design with residual degrees of freedom. Explicitly encode categories/reference levels; numeric variables are continuous. Formula term order does not decide the tested effect when a contrast is explicit.
  5. Fit size factors, gene-wise/trend/MAP dispersions, LFCs, and Cook diagnostics. Inspect warnings, convergence and normalization assumptions before interpreting results. Large size factors can reflect real library-depth differences.
  6. Test an explicit contrast with the intended alpha, preserve the full Wald table, and optionally shrink the same single positive coefficient. Export counts/model metadata separately from statistical results.

Read the full file on GitHub · 180 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -198 lines · +24 tokens per session f06a9f5ece54
  2. 2mo ago Changed · -9 lines 0d3ef5e4dfb9
  3. 2mo ago First seen · 387 lines · 43 tokens per session scan A c13e1f5db788

Subscribe to this mod's changes

pydeseq2 is a skill published in the GitHub repository K-Dense-AI/scientific-agent-skills (58,946 stars, last pushed 7d ago), licensed MIT. It adds 67 tokens to every session and 2,350 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

pydeseq2 compared with skills from other repositories

pydeseq2 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pydeseq2K-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA67Claude Code
discovery-toolboxdekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA122Claude Code
discovery-directordekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA114Claude Code
notebooksfmschulz/omics-skillsSkill11yesterdayMITA29Claude Code
bio-annotationfmschulz/omics-skillsSkill11yesterdayMITA38Claude Code, Codex
bio-viromicsfmschulz/omics-skillsSkill11yesterdayMITA79Claude Code, Codex
polars-dovmedfmschulz/omics-skillsSkill11yesterdayMITA57Claude Code, Codex