decoupler

decoupler is a skill for Claude Code, Codex from scverse/decoupler. It costs 192 tokens per session (2,595 once invoked), scanned A, original, BSD-3-Clause.

A biology analysis tool that estimates the activity of transcription factors, pathways, and gene groups from omics data such as gene measurements. Omics data records biological measurements across cells, samples, or locations.

In plain words
What is it for?
It helps analyze bulk, single-cell, and spatial data using AnnData, pandas tables, or raw matrices.
Why use it?
It turns feature measurements into scores for biological programs, so researchers can compare activity without calculating each program separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps analyze bulk, single-cell, and spatial data using AnnData, pandas tables, or raw matrices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scverse/decoupler/data
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 scverse/decoupler --skill data
Clone the repo
git clone --depth 1 https://github.com/scverse/decoupler

Made for: Claude Code, Codex.

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 decoupler

README.md
[![agentmods](https://agentmods.dev/badge/skills/scverse/decoupler/data/github.svg)](https://agentmods.dev/skills/scverse/decoupler/data)
Your own site
<a href="https://agentmods.dev/skills/scverse/decoupler/data"><img src="https://agentmods.dev/badge/skills/scverse/decoupler/data/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 decoupler

Your own site · 80×15
<a href="https://agentmods.dev/skills/scverse/decoupler/data"><img src="https://agentmods.dev/badge/skills/scverse/decoupler/data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 192 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,595 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
  • 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.00192 $0.02595
Opus 5.5 $0.00077 $0.01038
Sonnet 5.5 $0.00038 $0.00519
Haiku 4.5 $0.00019 $0.00260

Measured 17d ago against content hash 55ccf998bb60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

decoupler 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 17d ago.

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.

src/decoupler/_skills/data/SKILL.md · 145 lines

How it starts

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

decoupler 2.x

decoupler scores “sources” (TFs, pathways, gene sets) from a long-format net DataFrame with columns source, target, and optionally weight. The 2.x API is dc.pp (preprocess), dc.op (download networks from OmniPath), dc.mt (scoring methods), dc.tl (ranking), dc.pl (plots), dc.ds (example datasets). The 1.x functions (run_ulm, get_progeny, get_acts) no longer exist.

Core mechanics (not guessable)

  • Scoring on AnnData writes in place, returns None. dc.mt.ulm(data=adata, net=net) stores adata.obsm["score_ulm"] and adata.obsm["padj_ulm"]. Every method uses score_<method> and padj_<method>, so a second ulm call with another network overwrites the first. Extract before re-running: score = dc.pp.get_obsm(adata, key="score_ulm") returns a new AnnData whose .X is the score matrix (obs = cells, var = sources) and keeps .obs and .obsm.
  • Scoring on a DataFrame (obs × genes) returns a tuple (scores, padj) of DataFrames.
  • Default method is ulm. Use it unless the user names another. mt.decouple runs many methods and mt.consensus averages them; do not use them as a substitute for ulm.
  • Input scale matters. Methods assume roughly normal values: use log-normalized expression (sc.pp.normalize_total + sc.pp.log1p) or a contrast-level test statistic (the PyDESeq2 Wald stat column or a t-value). Never score log2FoldChange (LFC): it lacks the confidence weighting and changes the ranking. Never run on raw integer counts. Do not normalize twice: an adata.X.max() far above 50 means raw counts; a max around 5–12 with non-integer values means already log-normalized.
  • Bundled datasets (dc.ds.*) come ready to use. When a task names a decoupler example dataset, load it with dc.ds.<name>(); do not substitute another package's copy. The single-cell and spatial ones are already log-normalized and annotated (obs celltype and similar): do not run sc.pp.normalize_total or sc.pp.log1p again, and use the existing annotation column instead of re-clustering or hand-annotating. The bulk and pseudobulk ones hold raw counts for the contrast recipe. List in references/resources.md.
  • Load networks with defaults. dc.op.collectri(organism=...) for TFs, dc.op.progeny(organism=...) for pathways, dc.op.hallmark(organism=...) for MSigDB hallmarks. In 2.x progeny already defaults to all significant targets (top=inf); do not pass top=500 (a 1.x habit) unless the user asks. CollecTRI is the documented TF network; use DoRothEA only when the user names it.
  • Ranking helpers return sorted DataFrames. dc.tl.rankby_group(adata=score, groupby=col, reference="rest", method="t-test_overestim_var") gives columns group, reference, name, stat, meanchange, pval, padj, sorted by stat descending within each group. "Most active in group G" = df[df.group == G] top rows by stat (positive = higher in G). dc.tl.rankby_order(adata=score, order=col) ranks sources by association with a continuous ordering (default stat="dcor", distance correlation, sorted descending). Keep the defaults unless asked otherwise.
  • Pass the score AnnData (not the expression AnnData) to the ranking helpers.

Read the full file on GitHub · 145 lines

Files

What ships with it

2 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. 17d ago Changed · -1 lines 55ccf998bb60
  2. 1mo ago Changed · +1 lines 87e92e797f69
  3. 1mo ago Changed · +59 lines · -28 tokens per session 7bc1fbc62242
  4. 3mo ago First seen · 86 lines · 220 tokens per session scan A adcc7f625de2

Subscribe to this mod's changes

decoupler is a skill published in the GitHub repository scverse/decoupler (302 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 192 tokens to every session and 2,595 once invoked, about $0.0008 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-08-30.

Related

decoupler compared with skills from other repositories

decoupler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
decouplerscverse/decouplerSkill3025d agoBSD-3-ClauseA192Claude Code, Codex
alterlab-anndataAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA133Claude Code
alterlab-rdkitAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA130Claude Code
alterlab-scikit-learnAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA79Claude Code
alterlab-sympyAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA86Claude Code
alterlab-aeonAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA81Claude Code
alterlab-cirqAlterLab-IEU/AlterLab-Academic-SkillsSkill8619d agoMITA158Claude Code