bio-variant-annotation
БесплатноЗапускает вложенные скриптыНе проверенComprehensive variant annotation using bcftools annotate/csq, VEP, SnpEff, and ANNOVAR. Add database annotations, predict functional consequences, and assess…
от FridrichMethod★ 17 звёзд на GitHubОб этом скилле
Version Compatibility
Reference examples tested with: bcftools 1.19+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Variant Annotation
Tool Comparison
| Tool | Best For | Speed | Output |
|---|---|---|---|
| bcftools csq | Simple consequence prediction | Fast | VCF |
| VEP | Comprehensive with plugins | Moderate | VCF/TXT |
| SnpEff | Fast batch annotation | Fast | VCF |
| ANNOVAR | Flexible databases | Moderate | TXT |
bcftools annotate
Goal: Add or remove INFO/ID annotations from external databases using bcftools.
Approach: Match variants by position and allele against annotation VCF/BED/TAB files, copying specified columns.
"Add rsIDs to my VCF from dbSNP" → Match variant positions against a database and copy identifiers or annotation fields into the VCF.
Add Annotations from Database
bcftools annotate -a dbsnp.vcf.gz -c ID input.vcf.gz -Oz -o annotated.vcf.gz
Annotation Columns (-c)
| Option | Description |
|---|---|
ID |
Copy ID column |
INFO |
Copy all INFO fields |
INFO/TAG |
Copy specific INFO field |
+INFO/TAG |
Add to existing values |
Add rsIDs from dbSNP
bcftools annotate -a dbsnp.vcf.gz -c ID input.vcf.gz -Oz -o with_rsids.vcf.gz
Add Multiple Annotations
bcftools annotate -a database.vcf.gz -c ID,INFO/AF,INFO/CAF input.vcf.gz -Oz -o annotated.vcf.gz
Add from BED/TAB Files
# BED with 4th column as annotation
bcftools annotate -a regions.bed.gz -c CHROM,FROM,TO,INFO/REGION \
-h <(echo '##INFO=<ID=REGION,Number=1,Type=String,Description="Region name">') \
input.vcf.gz -Oz -o annotated.vcf.gz
# Tab file: CHROM POS VALUE
bcftools annotate -a annotations.tab.gz -c CHROM,POS,INFO/SCORE \
-h <(echo '##INFO=<ID=SCORE,Number=1,Type=Float,Description="Custom score">') \
input.vcf.gz -Oz -o annotated.vcf.gz
Remove Annotations
bcftools annotate -x INFO/DP,INFO/MQ input.vcf.gz -Oz -o clean.vcf.gz
bcftools annotate -x INFO input.vcf.gz -Oz -o minimal.vcf.gz # Remove all INFO
Set ID from Fields
bcftools annotate --set-id '%CHROM\_%POS\_%REF\_%ALT' input.vcf.gz -Oz -o with_ids.vcf.gz
bcftools csq
Goal: Predict functional consequences of variants using gene annotations.
Approach: Map variants to GFF3 gene models and classify as synonymous, missense, frameshift, etc.
Simple consequence prediction using GFF annotation.
bcftools csq -f reference.fa -g genes.gff3.gz input.vcf.gz -Oz -o consequences.vcf.gz
Consequence Types
| Consequence | Description |
|---|---|
synonymous |
No amino acid change |
missense |
Amino acid change |
stop_gained |
Introduces stop codon |
frameshift |
Changes reading frame |
splice_donor/acceptor |
Affects splicing |
Ensembl VEP
Goal: Annotate variants comprehensively with consequence, impact, pathogenicity scores, and population frequencies.
Approach: Run VEP with offline cache, enabling SIFT, PolyPhen, HGVS, frequency, and plugin-based predictions.
"Annotate my variants with functional consequences" → Predict coding effects, impact severity, and pathogenicity using Ensembl's Variant Effect Predictor.
Installation
conda install -c bioconda ensembl-vep
vep_install -a cf -s homo_sapiens -y GRCh38 --CONVERT
Basic Annotation
vep -i input.vcf -o output.vcf --vcf --cache --offline
Comprehensive Annotation
vep -i input.vcf -o output.vcf \
--vcf \
--cache --offline \
--species homo_sapiens \
--assembly GRCh38 \
--everything \
--fork 4
--everything Enables
--sift b- SIFT predictions--polyphen b- PolyPhen predictions--hgvs- HGVS nomenclature--symbol- Gene symbols--canonical- Canonical transcript--af- 1000 Genomes frequencies--af_gnomade/g- gnomAD frequencies--pubmed- PubMed IDs
Filter by Impact
vep -i input.vcf -o output.vcf --vcf \
--cache --offline \
--pick \
--filter "IMPACT in HIGH,MODERATE"
Plugins
# CADD scores
vep -i input.vcf -o output.vcf --vcf \
--cache --offline \
--plugin CADD,whole_genome_SNVs.tsv.gz
# dbNSFP (multiple predictors)
vep -i input.vcf -o output.vcf --vcf \
--cache --offline \
--plugin dbNSFP,dbNSFP4.3a.gz,ALL
# Multiple plugins
vep -i input.vcf -o output.vcf --vcf \
--cache --offline \
--plugin CADD,cadd.tsv.gz \
--plugin dbNSFP,dbnsfp.gz,SIFT_score,Polyphen2_HDIV_score \
--plugin SpliceAI,spliceai.vcf.gz
VEP Output Fields
Установить bio-variant-annotation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bio-variant-annotation?
Comprehensive variant annotation using bcftools annotate/csq, VEP, SnpEff, and ANNOVAR. Add database annotations, predict functional consequences, and assess clinical significance. Use when annotating variants with functional and clinical information.
Как установить скилл bio-variant-annotation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bio-variant-annotation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic