bulkrna-qc
БесплатноБез исполняемых скриптовНе проверенLoad when checking a bulk RNA-seq count matrix for library-size outliers, gene detection rates, and sample-sample correlation before DE. Skip if data is raw…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
bulkrna-qc
When to use
Run as the first step on a bulk RNA-seq count matrix (genes × samples) before differential expression. Surfaces the four failure modes that silently bias DE results: a sample with a tiny library, a sample with suspiciously few detected genes, a low-correlation outlier vs the rest, and CPM-vs-raw comparison artefacts.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Count matrix | .csv (gene id col + sample count cols) |
yes (or --demo) |
| Output | Path | Notes |
|---|---|---|
| Library sizes | figures/library_sizes.png |
per-sample total counts |
| Gene detection | figures/gene_detection.png |
non-zero gene count per sample |
| Sample correlation | figures/sample_correlation.png |
log-CPM Pearson heatmap |
| Expression density | figures/expression_density.png |
per-sample log-CPM density curves |
| Outlier flag | result.json["outlier_samples"] |
sample names flagged below correlation threshold |
| CPM-normalised matrix | tables/cpm_normalized.csv |
per-million normalisation, useful for visualisation |
| Report | report.md + result.json |
always |
Flow
- Load the count matrix (raise on missing
--inputor non-existent file perbulkrna_qc.py:428,431). - Compute per-sample library sizes and detected-gene counts.
- Compute sample × sample correlation matrix; flag samples below the median-of-medians threshold as outliers.
- Compute CPM normalisation as a side artifact (write
tables/cpm_normalized.csv). - Render four figures and emit
report.md+result.json.
Gotchas
- Hard-fails on missing input.
bulkrna_qc.py:428raisesValueError("--input is required when not using --demo");:431raisesFileNotFoundErrorif the path doesn't exist. No silent demo fallback when--inputis given but invalid — fix the path or use--demo. - CPM is for visualisation only.
tables/cpm_normalized.csvis emitted as a downstream-friendly artefact, but DE testing must always use raw counts (PyDESeq2's negative-binomial GLM expects integer counts; feeding CPM produces meaningless dispersion estimates). Do not pipecpm_normalized.csvintobulkrna-de. - Outlier flagging is correlation-based, not biology-aware. If two biological conditions differ strongly (e.g. tumour vs normal), the cross-condition correlations are expected to be lower — the outlier flag may fire on legitimate biology. Cross-check
result.json["outlier_samples"]against the experimental design before excluding samples. - First column is treated as the gene-id column unconditionally. If the CSV has a header row but no leading id column (samples-only), the first sample column will be silently parsed as gene names and omitted from QC. Inspect
report.md's "samples seen" count vs your design before trusting the output.
Key CLI
python omicsclaw.py run bulkrna-qc --demo
python omicsclaw.py run bulkrna-qc --input counts.csv --output results/
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— library-size, gene-detection, correlation-based outlier metricsreferences/output_contract.md— exact output directory layout- Adjacent skills:
bulkrna-read-qc/bulkrna-read-alignment(upstream),bulkrna-de(downstream — raw counts only),bulkrna-batch-correction(downstream if QC reveals batch effects),sc-qc(single-cell sibling)
Установить bulkrna-qc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bulkrna-qc?
Load when checking a bulk RNA-seq count matrix for library-size outliers, gene detection rates, and sample-sample correlation before DE. Skip if data is raw FASTQ (use bulkrna-read-qc) or aligner logs (use bulkrna-read-alignment), or for single-cell counts (use sc-qc).
Как установить скилл bulkrna-qc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bulkrna-qc запускает скрипты?
Нет, скилл состоит только из инструкций (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