vcf-annotator
БесплатноЗапускает вложенные скриптыНе проверенAnnotate VCF variants with Ensembl VEP, ClinVar, and gnomAD. Ranks variants by impact (HIGH/MODERATE/LOW/MODIFIER) and generates a reproducible report.
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🧬 VCF Annotator
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.
Trigger
Fire this skill when the user says any of:
- "annotate my VCF file"
- "annotate variants in X"
- "what variants are pathogenic"
- "look up ClinVar significance"
- "get gnomAD frequencies"
- "run VEP on my VCF"
- "variant annotation"
- "which variants are HIGH impact"
- "rank my variants by impact"
Do NOT fire when:
- The user wants pharmacogenomic drug recommendations (route to
pharmgx-reporter) - The user wants population PCA (route to
ancestry-pca) - The user wants literature search (route to
lit-synthesizer)
Why This Exists
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.
Core Capabilities
- VCF parsing: Reads VCFv4.x files, handles SNVs and indels
- Ensembl VEP: Consequence prediction (missense, stop_gained, frameshift, etc.)
- ClinVar lookup: Pathogenicity classification per variant
- gnomAD frequency: Global and population-specific allele frequencies
- Impact ranking: Sorts variants HIGH → MODERATE → LOW → MODIFIER
- Reproducibility bundle: Exports
commands.sh,environment.yml, SHA-256 checksums
Scope
This 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.
Input Formats
| 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)
Workflow
- Parse VCF: Read variants, extract CHROM/POS/REF/ALT/rsID
- VEP annotation: Query Ensembl REST API for consequence and gene
- ClinVar lookup: Query NCBI E-utilities for pathogenicity classification
- gnomAD frequency: Query gnomAD GraphQL API for allele frequencies
- Impact ranking: Sort by HIGH → MODERATE → LOW → MODIFIER
- Report: Write
report.mdwith variant table, detailed annotations, and reproducibility bundle
CLI Reference
# 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
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.
Algorithm / Methodology
- VCF parsing: Validate the tab-delimited column header and every record before annotation; extract CHROM/POS/REF/ALT/rsID using cyvcf2 when available or stdlib.
- VEP:
GET https://rest.ensembl.org/vep/human/hgvs/{hgvs}— returns gene symbol, consequence terms, impact, SIFT, PolyPhen - ClinVar:
esearchonclinvardatabase with rsID term - gnomAD: GraphQL query to
https://gnomad.broadinstitute.org/apiwith variant ID format{chrom}-{pos}-{ref}-{alt} - Ranking:
HIGH=1, MODERATE=2, LOW=3, MODIFIER=4, UNKNOWN=5
Key thresholds:
- gnomAD AF < 0.01 = rare variant
- gnomAD AF > 0.05 = common variant (less likely causal for rare disease)
- ClinVar "Pathogenic" or "Likely pathogenic" = flag for review
Example Queries
- "Annotate the variants in my_sample.vcf
Установить vcf-annotator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vcf-annotator?
Annotate VCF variants with Ensembl VEP, ClinVar, and gnomAD. Ranks variants by impact (HIGH/MODERATE/LOW/MODIFIER) and generates a reproducible report.
Как установить скилл vcf-annotator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vcf-annotator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic