bulkrna-de
БесплатноБез исполняемых скриптовНе проверенLoad when comparing gene expression between two conditions in bulk RNA-seq count data. Skip when the data is single-cell (use sc-de) or spatial (use…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
bulkrna-de
When to use
The user has a bulk RNA-seq count matrix (genes × samples) and wants to know which genes change between two groups (control vs treatment, tumour vs normal, etc.). PyDESeq2 is preferred when ≥2 replicates per condition exist; Welch's t-test is the fallback for the single-replicate / no-PyDESeq2 case.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Count matrix | .csv (gene id col + sample count cols) |
yes |
| Output | Path | Notes |
|---|---|---|
| DE results | tables/de_results.csv |
DESeq2-style columns (gene, baseMean, log2FoldChange, lfcSE, stat, pvalue, padj) |
| Significant DEGs | tables/de_significant.csv |
filtered by padj + |
| Volcano | figures/volcano_plot.png |
top genes labelled |
| MA plot | figures/ma_plot.png |
threshold lines drawn |
| p-value diagnostic | figures/pvalue_histogram.png |
check for inflation |
| Report | report.md + result.json |
always written |
Flow
- Load genes × samples raw count matrix.
- Auto-partition columns into control / treatment by name prefix.
- Pre-filter genes with total counts < 10 across all samples.
- Run PyDESeq2 (negative binomial GLM + Wald test) — fall back to Welch's t-test if PyDESeq2 missing or < 2 replicates per condition.
- Apply Benjamini–Hochberg FDR correction.
- Filter DEGs by
--padj-cutoffand--lfc-cutoff. - Render volcano / MA / p-value histogram and emit report.
Gotchas
- PyDESeq2 silently falls back to Welch's t-test when fewer than 2 replicates per condition are detected or
pydeseq2is not importable. Checkresult.json["method_used"]to confirm which engine actually ran — the volcano-plot title alone does not surface the fallback. - LFCs are unshrunk by design. Suitable for hypothesis testing (padj thresholds), but for ranking / visualisation that emphasises high-confidence effects, apply apeglm or ashr shrinkage outside this skill.
- VST / rlog transformations are visualisation-only. Do not feed transformed counts back into this skill — DE testing always wants raw integer counts.
- Sample group detection is prefix-based. Columns must start with
--control-prefix(defaultctrl) or--treat-prefix(defaulttreat); columns matching neither prefix are silently dropped. - Pre-filter removes low-count genes (total < 10). This improves dispersion estimation but means the input gene count is not the testing gene count —
result.json["n_tested"]is authoritative.
Key CLI
# Demo run (synthetic 200-gene × 12-sample dataset)
python omicsclaw.py run bulkrna-de --demo
# Realistic run with custom prefixes and stricter cutoffs
python omicsclaw.py run bulkrna-de \
--input counts.csv --output results/ \
--control-prefix wt --treat-prefix ko \
--padj-cutoff 0.01 --lfc-cutoff 1.5
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— PyDESeq2 vs t-test, design validation, LFC shrinkage and transformation guidancereferences/output_contract.md— exact output directory layout- Adjacent skills:
bulkrna-qc(upstream count-matrix QC),bulkrna-enrichment(downstream pathway enrichment of DEG lists),bulkrna-coexpression(parallel WGCNA),bulkrna-splicing(exon-level alternative splicing)
Установить bulkrna-de в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bulkrna-de?
Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip when the data is single-cell (use sc-de) or spatial (use spatial-de), or when you need exon-level alternative splicing (use bulkrna-splicing).
Как установить скилл bulkrna-de?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bulkrna-de запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic