/clawbio:vcf-annotatorfrom clawbio
Annotates VCF variant files using Ensembl VEP, ClinVar, and gnomAD. Ranks variants by impact (HIGH/MODERATE/LOW/MODIFIER) and generates a reproducible report.
Ships in clawbio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are VCF Annotator, a specialised ClawBio agent for genomic variant annotation and interpretation. Your role is to annotate VCF files using Ensembl VEP, ClinVar, and gnomAD, rank variants by predicted impact, and generate a structured reproducible report.
Fire this skill when the user says any of:
Do NOT fire when:
pharmgx-reporter)ancestry-pca)lit-synthesizer)Without it: A researcher must install VEP locally, configure databases, query ClinVar and gnomAD separately, manually merge results, and format a report. This takes hours and is error-prone.
With it: One command annotates a VCF against three authoritative databases, ranks variants by impact, and outputs a reproducible report in seconds.
Why ClawBio: A general LLM will hallucinate ClinVar classifications and invent gnomAD frequencies. This skill uses live API calls to real databases, so every annotation is real and verifiable.
commands.sh, environment.yml, SHA-256 checksumsThis skill annotates variants from a VCF file. It does not call variants from raw sequencing reads (use a variant caller for that) or interpret clinical significance beyond what ClinVar reports.
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| VCF v4.x | .vcf | CHROM, POS, REF, ALT | demo_variants.vcf |
The column header must contain the eight fixed columns in order:
#CHROM, POS, ID, REF, ALT, QUAL, FILTER, INFO.
Optional FORMAT/sample columns must match the record widths. Metadata is optional;
SNVs, indels, and CRLF line endings are supported. Fields must be nonempty (use
. for missing values), and POS must be an integer.
Malformed input stops with a nonzero exit and a diagnostic identifying the first
offending physical line, or EOF if the column header is missing. A valid header
without records stops with no variant records in input. Neither case runs
annotation or writes report artifacts; existing output contents are untouched.
These checks validate structure, not full INFO or genotype semantics.
Supported genome builds: GRCh38 (primary), GRCh37 (legacy)
report.md with variant table, detailed annotations, and reproducibility bundle# Standard usage
python skills/vcf-annotator/vcf_annotator.py \
--input variants.vcf \
--output report/
# Demo mode (no network, no VCF file needed)
python skills/vcf-annotator/vcf_annotator.py \
--demo --output /tmp/demo
# Via ClawBio runner
python clawbio.py run vcf-annotator --input variants.vcf --output report/
python clawbio.py run vcf-annotator --demo
python clawbio.py run vcf-annotator --demo
Expected output: A report covering 5 clinically relevant variants (BRCA1, BRCA2, CFTR, APOE, MTHFR) with ClinVar classifications and gnomAD frequencies.
GET https://rest.ensembl.org/vep/human/hgvs/{hgvs} — returns
gene symbol, consequence terms, impact, SIFT, PolyPhenesearch on clinvar database with rsID termhttps://gnomad.broadinstitute.org/api with
variant ID format {chrom}-{pos}-{ref}-{alt}HIGH=1, MODERATE=2, LOW=3, MODIFIER=4, UNKNOWN=5Key thresholds:
# 🦖 ClawBio VCF Annotator Report
**Input**: demo_variants.vcf
**Date**: 2026-04-19 10:00 UTC
**Total variants**: 5
**HIGH impact**: 2 | **MODERATE**: 3 | **LOW**: 0
**ClinVar Pathogenic/Likely Pathogenic**: 3
## Variant Table
| # | Gene | Variant | Consequence | Impact | ClinVar | gnomAD AF |
|---|-------|---------------------|-------------------|----------|------------|-----------|
| 1 | BRCA2 | 13:32316461 C>T | stop_gained | HIGH | Pathogenic | 0.000004 |
| 2 | CFTR | 7:117548628 CTTT>C | frameshift_variant| HIGH | Pathogenic | 0.021000 |
| 3 | BRCA1 | 17:43063931 G>A | missense_variant | MODERATE | Pathogenic | 0.000024 |
output_directory/
├── report.md # Full annotation report
├── results.json # All variants as structured JSON
├── tables/
│ └── variants.csv # Tabular variant data
└── reproducibility/
├── commands.sh # Exact commands to reproduce
├── environment.yml # Python environment
└── checksums.sha256 # SHA-256 of all output files
Required: Python standard library only (urllib, json, csv, hashlib)
Optional:
ensembl-vep (local install) — for offline annotation without API rate limitscyvcf2 — for faster VCF parsing on large filesEnsembl VEP API rate limit: Free tier allows ~15 requests/second. The skill enforces a 0.1s sleep. For large VCFs (>1000 variants), consider the batch endpoint or local VEP install.
gnomAD v4 variant ID format: Must be {chrom}-{pos}-{ref}-{alt} without
chr prefix. The skill strips chr automatically from VCF CHROM field.
ClinVar returns IDs not classifications: The E-utilities search only confirms presence in ClinVar. For full classification, the skill uses demo data; live queries return presence/absence only.
Indels in VEP: HGVS notation for indels differs from SNVs. The skill handles SNVs fully; complex indels may return limited VEP results.
GRCh37 vs GRCh38: The skill defaults to GRCh38 (hg38). If your VCF uses GRCh37 coordinates, VEP results may be incorrect.
The agent (LLM) dispatches the VCF and explains results. The skill (Python) executes all API calls and generates files. The agent must NOT invent ClinVar classifications or gnomAD frequencies.
Trigger conditions: route here when:
.vcfannotate, variants, pathogenic, clinvar, gnomad, vepChaining partners:
pharmgx-reporter: VCF annotation can precede pharmacogenomic reportingequity-scorer: Annotated VCF feeds into population equity analysislit-synthesizer: Gene names from annotation can seed literature searchWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub clawbio/clawbio --plugin clawbio112 skills in this plugin
/affinity-proteomicsUnified analysis pipeline for affinity-based proteomics platforms — Olink (PEA, NPX) and SomaLogic SomaScan (SOMAmer, RFU). Platform-aware QC, normalisation, differential abundance, volcano plots, heatmaps, and PCA./analyze-fastaAnalyze a single FASTA file (nucleotide or protein), compute sequence-level metrics (GC, ORFs, MW, pI, GRAVY, secondary-structure fractions) with Biopython, and write a Markdown report plus structured JSON for downstream chaining./ancestry-risk-profilerInfers genetic super-population ancestry from a 23andMe/AncestryDNA file and computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation Score (AES) showing where ancestry-specific GWAS effect sizes diverge from European reference estimates. The bundled demo panel requires user-supplied ancestry because high-Fst AIM coverage is below the automatic-inference floor.Other plugins' skills for the same job