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.
npx skills add GGbond-bo/MemOmics-Agent --skill overlapping-gene-read-assignmentgit clone --depth 1 https://github.com/GGbond-bo/MemOmics-AgentWrote 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.
[](https://agentmods.dev/skills/ggbond-bo/memomics-agent/overlapping-gene-read-assignment)<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/overlapping-gene-read-assignment"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/overlapping-gene-read-assignment/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.
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/overlapping-gene-read-assignment"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/overlapping-gene-read-assignment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00168 | $0.02646 |
| Opus 5.5 | $0.00067 | $0.01058 |
| Sonnet 5.5 | $0.00034 | $0.00529 |
| Haiku 4.5 | $0.00017 | $0.00265 |
Grade A, and why
overlapping-gene-read-assignment 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.
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.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
重叠基因的 read 归属判定
合作者看到两个基因的 start-end 区间相交就会问「overlapping region 里你怎么区分 A 和 B」。
这是一个可以当场用 GTF 关掉的质疑 —— 因为 UMI 计数根本不看 gene span。
何时用
- 合作者/审稿人/自己问:「reads 映射到哪?落在重叠区怎么区分 A vs B?」
- 反义 lncRNA(
gene_type "lncRNA",与正义基因反向)的定量结果被质疑受污染 - 需要判断某个 DEG 结论是否可能是 read 归属串扰产生的假信号
- 要给合作者/审稿人的回信里提供坐标级证据
Step 0:先分清对方在问什么(这条排在技术之前)
| 用户的问法 | 你要做的 | 禁止 |
|---|---|---|
| 「他这句话是什么意思?」 | 逐句解读 + 把其中涉及的生物学/方法学事实核实后解释 | ❌ 顺势开跑图 / 量化 / 辩论 / 改图长链 |
| 「我们要给他展示 GTF 还是去做 ATAC?」 | 直接给判断:GTF 够 / ATAC 答不了这个问题 | ❌ 两个都做一遍 |
| 「帮我把这条整理成回他的英文」 | 出可直接发送的英文稿,数字全部已核实 | ❌ 只复述不产出 |
2026-10-01 实测教训:用户问「合作方说的是什么意思」,我转去把另一张图做了十几轮(补丁→重跑→像素审计→辩论→量化), 被直接打断「关桑基图什么事情?」。解读类问题 = 只解读 + 核实事实,交付完再问下一步。
术语对齐:对方说的 "overlapping region" 几乎总是指 gene span 重叠(GTF 里两行 start/end 相交),
而这不是 UMI 计数看到的重叠 —— 抓住这个错位,问题就解决了一半。
Step 1:量化重叠 —— span 级 vs exon 级(决定性一步)
UMI 流程只在外显子上计数(内含子/基因间不产生计数)。所以要把重叠拆成两层:
span_overlap = intersect(merged_span(A), merged_span(B)) # 基因跨度相交(对方看到的那段)
exon_overlap = intersect(merged_exons(A), merged_exons(B)) # 真正能被计数的重叠
pct = sum(exon_overlap) / sum(span_overlap) * 100
可直接复跑(读 GENCODE 风格 GTF,输出上面三行 + 每基因 span/合并外显子):
python scripts/overlap_decomposition.py gencode.v32.primary_assembly.annotation.gtf.gz MEF2C MEF2C-AS1
实测(MEF2C / MEF2C-AS1,GENCODE v32,GRCh38):span 重叠 20,930 bp → exon 级只剩 422 bp / 3 小段(2.02%),其余 20,508 bp 全在内含子/基因间。 这一段数字就是回信的核心。
Step 2:链方向(辅助论据,不要当唯一论据)
- 两基因反向(head-to-head,5′ 端相向)时,反义读段在链特异性建库下不属于正义基因。
- ⚠️ 不要把「10x 是链特异性的」当唯一论据:追问下去会落到具体版本 Cell Ranger 对 ambiguous UMI 的处理规则, 需要查官方文档实证(用户规矩:函数/工具行为必须看原文,禁止凭记忆描述)。
- 优先用不依赖任何建库假设的两条:Step 1 的 exon 级重叠 + Step 3 的数据反证。
Step 3:最强证据 —— 自身数据的交叉一致性反证(常被忽略)
不需要额外测任何数据。如果两个基因的 read 真的混在一起,它们的 counts 会被同一批 UMI 共同拉高 → DEG 结果应当同向同幅度。
# 在自己已有的 DEG 表里直接搜两个基因(一轮只读查询,秒级)
hit = df[df[gene_col].str.upper().isin(["MEF2C", "MEF2C-AS1"])][["gene","celltype","coef","fdr","direction"]]
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.
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.
- 1mo ago First seen · 122 lines · 168 tokens per session scan A a53e16ae7176
overlapping-gene-read-assignment is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 168 tokens to every session and 2,646 once invoked, about $0.0007 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-25.
overlapping-gene-read-assignment compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| overlapping-gene-read-assignmentGGbond-bo/MemOmics-Agent | Skill | 33 | 14d ago | MIT | A | 168 | Claude Code |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 37k | 4d ago | Apache-2.0 | A | 123 | Claude Code |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 44 | Claude Code |
| exploratory-data-analysisK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 83 | Claude Code |
| phylogeneticsK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 71 | Claude Code, Codex |
| research-engineerdavila7/claude-code-templates | Skill | 34k | today | MIT | A | 43 | Claude Code, Codex |
| mapping-to-snomedmaziyarpanahi/openmed | Skill | 5.9k | today | Apache-2.0 | A | 205 | Claude Code |