ngs-dna-somatic-variants — скилл для Codex: соматические варианты ДНК
Скилл для планирования и запуска соматических вариантов в опухоли: tumor-normal, tumor-only, WGS, WES и панели. Полезен, когда нужно проверить пары образцов до запуска пайплайна.
npx skills add openai/plugins --skill ngs-dna-somatic-variants -a codexЧто делает ngs-dna-somatic-variants
Скилл закрывает SNV и indel в опухолевых образцах — из FASTQ, BAM или CRAM. Поддерживает четыре схемы: tumor-normal, tumor-only, relapse-baseline и multi-tumor. Для наследственных вариантов и семейного анализа есть отдельный скилл ngs-dna-germline-variants, этот не подойдёт.
Внутри два скрипта. ngs_preflight.py проверяет окружение и выдаёт план установки, run_dna_somatic_variants.py строит таблицу пар, план команд Mutect2, артефакты фильтрации и сводку QC. Для полного пайплайна есть run_nfcore_pipeline.py --pipeline sarek. Результат — валидированная таблица пар, манифест ресурсов, отчёт qc/somatic_pair_review.tsv и JSON, отфильтрованные VCF.
Проверка ресурсов по умолчанию не блокирует запуск: свои или урезанные референсы всё равно можно планировать. Флаги --genome-build, --bundle-root и --require-resource-plan включают строгий режим. Перепутанный или потерянный normal меняет биологический смысл вызовов, поэтому метаданные пар проверяйте до запуска. Для tumor-only нужен герминальный ресурс и аккуратная фильтрация — иначе ложноположительные вызовы уйдут в отчёт как соматические. Панель норм нельзя переносить между несовместимыми наборами захвата или сборками генома.
Какие задачи решает
- проверить пары tumor-normal до запуска пайплайна
- спланировать вызовы Mutect2 из готовых BAM/CRAM
- собрать сводку QC по глубине, контаминации и дубликатам
- отфильтровать ложноположительные вызовы в tumor-only
- подготовить манифест референсов и герминальных ресурсов
Примеры запросов агенту
- Проверь пары образцов в
somatic_pairs.tsvи собери план запуска Mutect2 - Запусти
run_dna_somatic_variants.pyс референсомreference.faи панелью нормpon.vcf.gz - Спланируй пайплайн sarek для WES-панели с целевым BED
Как установить ngs-dna-somatic-variants
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-dna-somatic-variants -a codex2Вручную: положить файлы
.agents/skills/ngs-dna-somatic-variants/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-dna-somatic-variants -a claude-code2Вручную: положить файлы
~/.claude/skills/ngs-dna-somatic-variants/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ngs-dna-somatic-variants/
Вручную: положить файлы
.cursor/skills/ngs-dna-somatic-variants/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins ngs-dna-somatic-variants2Вручную: положить файлы
.github/skills/ngs-dna-somatic-variants/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/ngs-analysis/skills/ngs-dna-somatic-variantsВручную: положить файлы
.devin/skills/ngs-dna-somatic-variants/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Скиллы Codex: как установить, где лежат и как вызвать
Вопросы о ngs-dna-somatic-variants
Как установить ngs-dna-somatic-variants в Claude?
Выполните npx skills add openai/plugins --skill ngs-dna-somatic-variants, затем npx skills add openai/plugins --skill ngs-dna-somatic-variants -a codex. Файл скилла окажется по пути .agents/skills/ngs-dna-somatic-variants/SKILL.md.
Что делает ngs-dna-somatic-variants?
Планирует и запускает соматические вызовы SNV/indel для tumor-normal и tumor-only схем, включая WGS, WES и раковые панели. На выходе — таблица пар, план команд, сводка QC и отфильтрованные VCF.
Чем tumor-only отличается от tumor-normal в этом скилле?
Для tumor-only скилл требует явно указать риск ложноположительных вызовов и герминальный ресурс с тщательной фильтрацией. Вызовы без подтверждающих данных не стоит подавать как подтверждённые соматические.
Исходный текст
SKILL.md · MIT
---
name: ngs-dna-somatic-variants
description: Run or plan tumor-normal, tumor-only, WGS, WES, or cancer-panel somatic variant workflows with pairing, contamination, panel-of-normals, purity, QC, and annotation checks.
---
# Somatic DNA Variants
Use this skill for tumor-normal or tumor-only somatic SNV/indel calling from FASTQ, BAM, or CRAM. If the request is inherited germline calling or family analysis, use `ngs-dna-germline-variants`.
## Essential Inputs
Confirm:
- tumor-normal, tumor-only, relapse-baseline, or multi-tumor design
- WGS, WES, or panel assay and target BED when applicable
- input type and whether reads are already aligned
- tumor/normal pairing table and sample identifiers
- reference build, known-sites, germline resource, and annotation cache
- panel-of-normals availability and matched-normal availability
- tumor purity, contamination expectations, and minimum allele fraction goals
- desired outputs: raw calls, filtered calls, VEP/SnpEff annotation, MAF, CNV/SV handoff
## Route
Prefer `nf-core/sarek` for an end-to-end public workflow when its supported callers fit the request. Use direct GATK Mutect2 or bcftools/samtools utilities for focused validation or prepared BAMs.
Preflight command:
```bash
python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline dna_somatic_variants --emit-install-plan
```
For compact local checks from prepared tumor/normal BAM/CRAM files, use the dedicated Mutect2 runner:
```bash
python plugins/ngs-analysis/scripts/run_dna_somatic_variants.py \
--sample-sheet somatic_pairs.tsv \
--reference-fasta reference.fa \
--germline-resource af-only-gnomad.vcf.gz \
--panel-of-normals pon.vcf.gz \
--execute
```
This produces a tumor-normal/tumor-only pairing table, Mutect2 command plan, contamination/filtering artifacts, somatic QC summary, `qc/somatic_pair_review.{tsv,json}`, visualization index, and filtered VCF outputs when the local GATK resources are available. For nf-core execution, use `plugins/ngs-analysis/scripts/run_nfcore_pipeline.py --pipeline sarek`.
The direct runner also emits `resources/resource_plan.json`, `resource_manifest.tsv`, `resource_env.sh`, and `resource_readiness.md`. The resource check is advisory by default so custom or reduced references can still be planned; add `--genome-build`, `--bundle-root <bundle>=<path>`, and `--require-resource-plan` when missing registered reference bundles should block readiness.
## Decision Points
- Verify tumor-normal pair metadata before execution. A swapped or missing normal changes the biological meaning of the calls.
- For tumor-only analysis, explicitly state the false-positive risk and require a germline resource plus careful filtering.
- Use panel-of-normals when available and reference-matched; do not reuse a PON across incompatible capture kits or genome builds.
- Track contamination, orientation bias, strand artifacts, mapping quality, coverage, tumor purity, and allele-fraction filters.
- Keep germline filtering separate from somatic interpretation; avoid presenting tumor-only calls as confirmed somatic without supporting evidence.
## Outputs
Produce:
- validated pairing/sample sheet
- caller/filter settings and reference/resource manifest
- QC summary: tumor/normal depth, contamination, duplication, insert size, on-target rate for panels/WES
- per-pair review table covering matched-normal state, PON/germline-resource availability, contamination-table status, filtered VCF status, and parsed variant counts
- VCF/MAF/annotation paths and a filtered-vs-raw call count summary
- caveats for tumor-only calls, low-purity tumors, low-depth regions, or missing matched normals
Clinical actionability and treatment recommendations are out of scope unless the user supplies a validated clinical interpretation workflow.
© OpenAI · MIT · openai/plugins