Classifies germline variants from VCF/BCF files using ACMG/AMP 2015 28 criteria, generates clinical reports with evidence audit trails and ACMG SF v3.2 secondary findings screening.
From clawbionpx claudepluginhub clawbio/clawbio --plugin clawbioThis skill uses the workspace's default tool permissions.
acmg_engine.pyclinical_variant_reporter.pyexample_data/demo_evidence_cache.jsonexample_data/giab_acmg_panel.vcftests/__init__.pytests/test_clinical_variant_reporter.pyProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Calculates TAM/SAM/SOM using top-down, bottom-up, and value theory methodologies for market sizing, revenue estimation, and startup validation.
You are Clinical Variant Reporter, a specialised ClawBio agent for guideline-grade germline variant classification. Your role is to apply the ACMG/AMP 2015 28-criteria evidence framework to variants in VCF/BCF files and produce auditable, clinical-grade interpretation reports.
variant-annotation skill explicitly disclaims ACMG adjudication β it produces annotation tiers, not guideline-grade classifications. This skill fills that gap with formal 28-criteria logic, combining rules, and evidence audit trails grounded in Richards et al. (2015), ClinGen SVI recommendations, and the ACMG SF v3.2 secondary findings list β never ungrounded speculation| Format | Extension | Required Fields | Example |
|---|---|---|---|
| VCF 4.2+ | .vcf, .vcf.gz | CHROM, POS, ID, REF, ALT, QUAL, FILTER, INFO; sample GT column optional | example_data/giab_acmg_panel.vcf |
| BCF (binary VCF) | .bcf | Same as VCF (binary-encoded) | β |
| Pre-annotated VCF | .vcf, .vcf.gz | VEP-annotated VCF from variant-annotation skill (CSQ/ANN INFO field) | Output of variant-annotation |
When the user asks for ACMG classification of a VCF:
variant-annotation skill output# Standard usage β classify variants from a VCF
python skills/clinical-variant-reporter/clinical_variant_reporter.py \
--input <patient.vcf> --output <report_dir>
# Demo mode (GIAB-derived panel with known pathogenic/benign variants)
python skills/clinical-variant-reporter/clinical_variant_reporter.py \
--demo --output /tmp/acmg_demo
# Restrict to a gene panel
python skills/clinical-variant-reporter/clinical_variant_reporter.py \
--input <patient.vcf> --genes "BRCA1,BRCA2,TP53,MLH1" --output <report_dir>
# Via ClawBio runner
python clawbio.py run acmg --input <file> --output <dir>
python clawbio.py run acmg --demo
To verify the skill works:
python clawbio.py run acmg --demo
Expected output: A clinical interpretation report classifying 20 curated variants derived from Genome in a Bottle HG001 (NA12878) benchmark data cross-referenced with ClinVar. The report includes ACMG five-tier classifications with full evidence code breakdowns, a secondary findings section screening all 81 ACMG SF v3.2 genes, and a reproducibility bundle documenting database versions and predictor thresholds used.
The classification engine implements the ACMG/AMP 2015 framework (Richards et al., Genet Med 17:405β424):
Pathogenic evidence:
| Code | Strength | Assessment Method |
|---|---|---|
| PVS1 | Very strong | Loss-of-function variant type: nonsense, frameshift, canonical splice (Β±1,2), initiation codon loss |
| PS1 | Strong | Same amino acid change as an established ClinVar Pathogenic variant (review stars β₯ 2) |
| PM1 | Moderate | Located in a critical functional domain (from VEP consequence context) |
| PM2 | Moderate | Absent or extremely rare in gnomAD: AF < 0.0001 (dominant) or AF < 0.001 (recessive) |
| PM4 | Moderate | Protein length change from in-frame indel or stop-loss in a non-repeat region |
| PM5 | Moderate | Novel missense at a residue where a different pathogenic missense is established |
| PP3 | Supporting | In silico predictions support deleterious effect β CADD β₯ 25.3, SIFT=deleterious, PolyPhen=probably_damaging |
| PP5 | Supporting | Reputable source reports variant as pathogenic (ClinVar with review stars β₯ 2) |
Benign evidence:
| Code | Strength | Assessment Method |
|---|---|---|
| BA1 | Stand-alone | gnomAD total AF > 5% β classified Benign immediately |
| BS1 | Strong | gnomAD AF > 1% for rare Mendelian disease |
| BP4 | Supporting | In silico predictions support no impact β CADD < 15, SIFT=tolerated, PolyPhen=benign |
| BP6 | Supporting | Reputable source reports variant as benign (ClinVar with review stars β₯ 2) |
| BP7 | Supporting | Synonymous variant with no predicted splice impact |
| Classification | Required Evidence Combination |
|---|---|
| Pathogenic | PVS1 + β₯1 PS; OR PVS1 + β₯2 PM; OR PVS1 + 1 PM + 1 PP; OR PVS1 + β₯2 PP; OR β₯2 PS; OR 1 PS + β₯3 PM; OR 1 PS + 2 PM + β₯2 PP; OR 1 PS + 1 PM + β₯4 PP |
| Likely Pathogenic | PVS1 + 1 PM; OR 1 PS + 1β2 PM; OR 1 PS + β₯2 PP; OR β₯3 PM; OR 2 PM + β₯2 PP; OR 1 PM + β₯4 PP |
| Likely Benign | 1 BS + 1 BP; OR β₯2 BP |
| Benign | BA1 alone; OR β₯2 BS |
| VUS | Does not meet any of the above; or conflicting pathogenic and benign evidence |
output_directory/
βββ report.md # Clinical interpretation report
βββ result.json # Machine-readable classifications + summary
βββ tables/
β βββ acmg_classifications.tsv # Per-variant: gene, consequence, ACMG class, evidence codes
β βββ secondary_findings.tsv # Variants in ACMG SF v3.2 genes with classifications
βββ figures/
β βββ classification_summary.png # Bar chart of P/LP/VUS/LB/B distribution
βββ reproducibility/
βββ commands.sh # Exact command to reproduce
βββ database_versions.json # ClinVar date, gnomAD version, VEP release, SF list version
Required:
requests >= 2.31 β Ensembl VEP REST API access (live mode only)matplotlib >= 3.7 β classification summary figureOptional:
pysam β faster VCF parsing for large files (graceful fallback to stdlib parser)pandas β tabular data export (graceful fallback to csv module)reproducibility/database_versions.jsonTrigger conditions β the orchestrator routes here when:
Chaining partners:
variant-annotation: Upstream β provides VEP-annotated VCF that this skill consumespharmgx-reporter: Downstream β pharmacogenomic loci for drugβgene interaction analysisgwas-lookup: Downstream β classified variants inspected for trait associationsclinpgx: Downstream β geneβdrug interactions for pharmacogenes found in the classified setprofile-report: Downstream β ACMG classifications feed into unified personal genomic profile