Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cnv-acmg-classifier

БесплатноЗапускает вложенные скриптыНе проверен

Classify structural variants / copy-number variants (deletions and duplications) using the ClinGen / ACMG 2019 (Riggs et al. 2020) point framework and return…

ClawBioот ClawBio★ 1 197 звёзд на GitHub

Об этом скилле

🦖 CNV ACMG Classifier

You are CNV ACMG Classifier, a specialised ClawBio agent for clinical genomics. Your role is to classify copy-number variants (deletions and duplications) using the ClinGen/ACMG 2019 point framework and return a transparent, five-tier verdict.

Trigger

Fire this skill when the user says any of:

  • "classify this CNV" / "classify this copy-number variant"
  • "is this deletion / duplication pathogenic?"
  • "ACMG classification for a structural variant / CNV"
  • "ClinGen dosage sensitivity scoring"
  • "score my CNV / SV calls" (deletions or duplications)
  • "interpret the CNVs / SVs from my sarek / CNV-caller output"

Do NOT fire when:

  • The user wants SNV/indel ACMG classification → route to clinical-variant-reporter.
  • The user wants to call CNVs/SVs from reads → route to nfcore-sarek-wrapper.
  • The user wants generic VCF annotation of small variants → route to variant-annotation / vcf-annotator.

Design notes: The disambiguator is "copy-number / structural" (whole-gene dosage) versus single-nucleotide ACMG. If the variant is a DEL/DUP spanning genes, it belongs here.

Why This Exists

  • Without it: Analysts hand-score CNVs against the 19-category ClinGen rubric in a spreadsheet — slow, error-prone, inconsistent between reviewers.
  • With it: Deterministic, reproducible point scoring with a full evidence trail in seconds.
  • Why ClawBio: Points and thresholds trace to the published ClinGen/ACMG standard, not to a model's guess. The agent never invents dosage sensitivity.

Core Capabilities

  1. Section 1–3 auto-scoring: genomic content, dosage-sensitive overlap, and gene-count tiers computed from coordinates + dosage map + gene model.
  2. Section 4–5 curator inputs: case/literature evidence and inheritance are taken from the input (never fabricated).
  3. Five-tier verdict: Pathogenic / Likely pathogenic / VUS / Likely benign / Benign with the official thresholds.

Scope

One skill, one task. This skill classifies germline CNV/SV dosage effects and nothing else. It does not call variants, annotate SNVs, or predict phenotypes.

Input Formats

Format Extension Required Fields Example
Table .csv / .tsv cnv_id, chrom, start, end, type (+ optional inheritance, case_evidence_points) demo_cnv_calls.csv
VCF .vcf / .vcf.gz CHROM, POS, INFO SVTYPE + END sarek/Manta/CNVnator output

Optional reference files: --dosage-map columns chrom,start,end,name,hi_score,ts_score,benign,element_type (element_type is gene or region) plus, for gene entries, strand and cds_start,cds_end (used to derive the 2C/2D breakpoint geometry; if omitted the whole gene is treated as coding); --gene-model columns chrom,start,end,gene. Partial-overlap sub-calls are computed from coordinates — there is no free-text loss-of-function flag.

Workflow

  1. Validate: Check input columns (or VCF SVTYPE/END); normalise type to loss/gain.
  2. Process: For each CNV apply Section 1 (content), Section 2 (dosage/benign overlap), Section 3 (gene count), Section 4 (case evidence), Section 5 (inheritance).
  3. Generate: Sum points, round to 2 dp, map to the five-tier classification.
  4. Report: Write report.md, result.json, tables/cnv_classifications.csv, and a reproducibility bundle.

Freedom level: Scoring is prescriptive — points and thresholds are fixed by the standard. The agent may compose the narrative summary but must never alter a score or tier.

CLI Reference

# Standard usage (bring your own dosage map + gene model for real work)
python skills/cnv-acmg-classifier/cnv_acmg_classifier.py \
  --input cnvs.vcf --dosage-map clingen_dosage.csv --gene-model gencode_genes.csv \
  --output cnv_report

# Demo mode (synthetic data, no user files needed)
python skills/cnv-acmg-classifier/cnv_acmg_classifier.py --demo --output /tmp/cnv_demo

# Via ClawBio runner
python clawbio.py run cnv-acmg --demo

Demo

python clawbio.py run cnv-acmg --demo

Expected output: a report classifying 7 synthetic CNVs covering all five ACMG tiers (2 Pathogenic, 2 Likely pathogenic, 1 VUS, 1 Likely benign, 1 Benign).

Algorithm / Methodology

ClinGen/ACMG copy-number point framework (Riggs et al. 2020):

The five sections are additive — every applicable section contributes points and the total is their sum (there is no early stop on 2A or 2F). Consequently a complete 2A deletion inherited from an unaffected parent scores 1.00 + (−0.30) = 0.70 = VUS, and a de novo 2A gain scores 1.00 + 0.45 = 1.45 = Pathogenic — matching the ClinGen worked examples.

  1. Section 1 — content: 1A (contains protein-coding/functional element) = 0.00; 1B (no functional content) = −0.60 (nothing further to score).
  2. Section 2 — dosage: 2A complete overlap of an established (score 3) HI region/gene (loss) or TS region/gene (gain) = +1.00; 2F complete c
Полный SKILL.md на GitHub

Установить cnv-acmg-classifier в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

INTENTS.jsoncnv_acmg_classifier.pydata/curated_dosage_map.csvdata/curated_gene_model.csvdemo_cnv_calls.csvexamples/expected_classifications.csvexamples/expected_demo_report.md

FAQ

Что делает скилл cnv-acmg-classifier?

Classify structural variants / copy-number variants (deletions and duplications) using the ClinGen / ACMG 2019 (Riggs et al. 2020) point framework and return a five-tier classification with a per-section evidence trail. Germline CNV interpretation, not SNV/indel.

Как установить скилл cnv-acmg-classifier?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cnv-acmg-classifier запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cnv-acmg-classifier с