bulkrna-deconvolution
БесплатноБез исполняемых скриптовНе проверенLoad when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or signature-matrix reference. Skip if the data is already single-cell…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
bulkrna-deconvolution
When to use
Run on a bulk RNA-seq cohort when you have a reference (single-cell profile or signature matrix) and want per-sample cell-type proportions. Built-in NNLS solver is the only backend currently implemented; the wrapper does not call CIBERSORTx or MuSiC.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Bulk count matrix | .csv (gene × sample) |
yes (or --demo) |
| Reference | --reference CSV (signature matrix) or .h5ad (sc reference) |
yes (or --demo) |
| Output | Path | Notes |
|---|---|---|
| Proportions | tables/proportions.csv |
sample × cell_type, rows sum to 1 |
| Dominant types | tables/dominant_types.csv |
per-sample top cell type |
| Stacked-bar plot | figures/proportions_stacked.png |
per-sample composition |
| Heatmap | figures/proportions_heatmap.png |
sample × cell_type intensity |
| Report | report.md + result.json |
always |
Flow
- Load bulk matrix (
bulkrna_deconvolution.py:368raisesValueErrorif--inputmissing without--demo). - Load reference (
:370raisesValueErrorif--referencemissing without--demo;:76raisesFileNotFoundErrorif path doesn't exist). - Align gene namespaces between bulk and reference (
:131raisesValueErrorif no overlap). - Run
scipy.optimize.nnlsper sample to estimate per-cell-type weights, then row-normalise to proportions. - Render stacked-bar + heatmap; emit
tables/proportions.csv+tables/dominant_types.csv.
Gotchas
--referenceis REQUIRED for non-demo runs. Unlike most bulkrna skills, this one needs two inputs.bulkrna_deconvolution.py:370raises with"--reference is required when not using --demo"if you forget; no silent fallback.- Gene-namespace mismatch is fatal.
:131raisesValueErrorwhen bulk and reference share zero gene IDs (typical cause: bulk uses Ensembl, reference uses HGNC symbols). Pre-runbulkrna-geneid-mappingto harmonise. - NNLS is the only backend; there is no
--methodflag. Despite the skill catalog historically advertising CIBERSORTx and MuSiC bridges, the script (bulkrna_deconvolution.py:347-358argparser) accepts only--input,--output,--demo,--reference. The summary dict (:163-172) recordsn_genes_shared,n_samples,n_cell_types,cell_types,proportions_df,dominant_types,mean_proportions,residuals— no method field, because there is no choice. - Negative residuals are not surfaced as a warning. NNLS by definition produces non-negative weights, but the per-sample reconstruction
residuals(saved inresult.json["residuals"]) measure how well the linear combination explains the bulk profile. Sanity-check that residuals are small relative to library size; large residuals indicate the reference is missing a major cell type from the bulk.
Key CLI
python omicsclaw.py run bulkrna-deconvolution --demo
python omicsclaw.py run bulkrna-deconvolution \
--input counts.csv --reference signature.csv --output results/
python omicsclaw.py run bulkrna-deconvolution \
--input counts.csv --reference scref.h5ad --output results/
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— NNLS solver, gene-overlap requirement, residual interpretationreferences/output_contract.md— exact output directory layout- Adjacent skills:
bulkrna-geneid-mapping(run upstream to harmonise gene IDs),bulkrna-trajblend(parallel: per-sample pseudotime placement using the same NNLS proportions plus nearest-neighbour mapping),spatial-deconv(spatial-side sibling: spot-level proportions with multiple methods)
Установить bulkrna-deconvolution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bulkrna-deconvolution?
Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or signature-matrix reference. Skip if the data is already single-cell (no deconvolution needed) or for spatial deconvolution (use spatial-deconv).
Как установить скилл bulkrna-deconvolution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bulkrna-deconvolution запускает скрипты?
Нет, скилл состоит только из инструкций (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