deg-threshold-and-false-discovery-audit

deg-threshold-and-false-discovery-audit is a skill for Claude Code from GGbond-bo/MemOmics-Agent. It costs 143 tokens per session (5,451 once invoked), scanned A, original, MIT.

A research guide for auditing effect-size cutoffs and false discoveries in differential gene expression (DEG) analysis, which finds genes that differ between biological groups. It traces software defaults, statistical methods, and published sources.

In plain words
What is it for?
Use it to check Seurat and MAST settings, compare cell-level and sample-level analyses, investigate unexpectedly many significant genes, and document threshold choices in a methods section.
Why use it?
It helps explain why a chosen log-fold-change cutoff is defensible and why an unusually large list of significant genes may be misleading. It also prevents attributing a cutoff to a paper that never used it.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to check Seurat and MAST settings, compare cell-level and sample-level analyses, investigate unexpectedly many significant genes, and document threshold choices in a methods section.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit
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 GGbond-bo/MemOmics-Agent --skill deg-threshold-and-false-discovery-audit
Clone the repo
git clone --depth 1 https://github.com/GGbond-bo/MemOmics-Agent

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 deg-threshold-and-false-discovery-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit/github.svg)](https://agentmods.dev/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit)
Your own site
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit/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 deg-threshold-and-false-discovery-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/deg-threshold-and-false-discovery-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,451 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.
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.00143 $0.05451
Opus 5.5 $0.00057 $0.02180
Sonnet 5.5 $0.00029 $0.01090
Haiku 4.5 $0.00014 $0.00545

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

Security

Grade A, and why

deg-threshold-and-false-discovery-audit 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/extract_methods_sentences.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.

memomics_home/skills/bioinformatics/deg-threshold-and-false-discovery-audit/SKILL.md · 192 lines

How it starts

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

DEG 阈值与假发现审计

配套详证(源码 formals 原文、文献原句、PMID/DOI、Europe PMC 全文抽取配方)见 references/parameter-provenance-and-mast-thresholds.md; 阈值敏感性网格(FDR × 效应量)完整配方与措辞红线见 references/threshold-sensitivity-grid-recipe.md。

触发场景

  • 「阈值取 0.2 还是 0.25?」
  • 「别人做 DEG 的时候要筛选阈值吗?他们怎么做?」
  • 「为什么我的显著基因有 5–6 万个?」「新方法比老方法多几十倍,是不是更好?」
  • 写 DEG 的 methods 段,需要给阈值找依据。
  • 任何 fdr<0.05 命中率异常高 / 上下调方向比失衡的情况。
  • 「做阈值敏感性」/「换个阈值结论还稳吗」/「不要重跑模型,基于上游全量表重计数」。
  • 接手一张来历不明的「已过滤 / formatted / CLEAN」结果表,要确认其真实过滤口径时。

🔴 铁律 1:阈值必须能追到具体出处,否则明说「无出处」

写 methods 或汇报时,|logFC| 阈值只能有三种写法:

写法 何时可用 例子
✅ 上游工具默认值 首选,最可追溯 「沿用 Seurat v4 FindMarkers 默认 logfc.threshold = 0.25」
✅ 明标自定的最小生物学意义效应 无先例时 「自定最小效应标准 |log2FC| > 0.25(≈1.19 倍变化),非引用文献值」
⛔ 「参考某某文献」 禁止 —— 除非真的逐字查到那篇写了这个数 —

实测教训:曾把 0.25 挂到某篇猴脑图谱论文名下,逐段核对全文后确认那是该文 ATAC sDARE 的判据(P<0.05 且 log2FC>0.25),而该文 RNA DEG 段用的是 MAST + 样本随机效应、代码里没有任何效应量阈值 —— 属张冠李戴,审稿人一查即破。参数溯源必须逐段核原文,不能凭印象或摘要。 完整更正记录见 references/parameter-provenance-and-mast-thresholds.md。

已交付表的「情况反查」——集合等式法(2026-10-23 实测新增):接手来历不明的「已过滤」表(formatted / CLEAN / 筛选版)时,不要凭文件名或注释推断口径:

  1. 粗定位:对 fdr/fdr_D × coef/coef_D × 阈值网格做组合扫描,找行数最接近的判据组合;
  2. 铁证 = 双向集合等式:交付表键集合 F 与候选判据集合 C 比对,要求 C−F=0 且 F−C=0(跨全部 sheet/对比逐一验证)——单看行数接近不算证据;
  3. 实测案例(五对比示例组织):文件名 ..._coef025 的表实际口径是 |coef|≥0.25("coef025"= 0.25,不是 0.025);5 对比全部双向差集=0、数值 join max diff=0 才落槌;
  4. 笔误修复必须全量重导出:口径注释常散落在图内注、工作簿说明 sheet、结论文档、脚本 docstring 多处——逐处排查修正并重出全部产物,只改文档不算修完。

🔴 铁律 2:Seurat FindMarkers 默认值随版本变 —— 必须显式写死

Seurat 版本 默认 logfc.threshold 默认 min.pct 证据
v3 / v4 0.25 0.1 论文 methods 实证(Seurat (v4) … logfc.threshold = 0.25)
v5 0.1 0.01 本机实测 5.5.0 FindMarkers.default 的 formals
  • ⚠️ 脚本里不显式写 → v4 得 0.25、v5 得 0.1,同一份数据换版本结论就变(隐蔽的可复现性坑)。
  • ⚠️ 「用 MAST 的论文」绝大多数不是直接调 MAST,而是 FindMarkers(test.use="MAST") —— 阈值实际来自 Seurat 默认值,不是 MAST。
  • 单细胞领域流传的 0.25 的真实血统 = Seurat v3/v4 出厂默认值,这是它站得住的正确理由。

Read the full file on GitHub · 192 lines

Files

What ships with it

4 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 · +51 lines · +32 tokens per session 36e3cc021c0d
  2. 1mo ago First seen · 141 lines · 111 tokens per session scan A 54a560d87f31

Subscribe to this mod's changes

deg-threshold-and-false-discovery-audit is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 143 tokens to every session and 5,451 once invoked, about $0.0006 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-10-14.

Related

deg-threshold-and-false-discovery-audit compared with skills from other repositories

deg-threshold-and-false-discovery-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deg-threshold-and-false-discovery-auditGGbond-bo/MemOmics-AgentSkill3314d agoMITA143Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37k4d agoApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill34ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9ktodayApache-2.0A205Claude Code