Skill: genome-variant-annotation
Use When
- User wants to annotate variants with gene and transcript impact predictions.
- User needs to predict functional consequences (missense, nonsense, splice-site, etc.).
- User wants to add population allele frequencies (gnomAD, 1000 Genomes).
- User wants to add clinical annotations (ClinVar significance).
- User needs to compare annotation engines (SnpEff vs VEP).
Inputs
- Required:
- Filtered VCF file (
.vcf.gz).
- Filtered VCF file (
- Optional:
- Annotator choice:
snpefforvep(default:snpeff). - Genome build (default:
GRCh38). - Cache directory for annotation databases.
- Additional VEP plugins or fields (e.g., CADD, LOFTEE).
- Output format (default: VCF).
- Annotator choice:
Workflow
- If SnpEff: run
snpEff annwith the appropriate database (e.g.,GRCh38.105), producing an annotated VCF and summary stats HTML. - If VEP: run
vepwith--cache,--mergedor--refseq, and add plugins (CADD, gnomAD, ClinVar, LOFTEE). - Add fields to each variant: gene symbol, consequence, impact tier (HIGH / MODERATE / LOW / MODIFIER), HGVS notation.
- Optionally add population allele frequencies from gnomAD.
- Generate summary statistics: variants by impact category, genes with HIGH-impact variants.
Output Contract
- Annotated VCF file (
.vcf.gz). - Annotation summary: HTML report (SnpEff) or stats file (VEP).
- Variant impact distribution (HIGH, MODERATE, LOW, MODIFIER counts).
Limits
- SnpEff and VEP annotation databases must be pre-downloaded to the cache directory.
- VEP plugins (CADD, LOFTEE, gnomAD) require separate data file downloads.
- Annotation databases must match the reference genome build (GRCh37 vs GRCh38).
- VEP is generally slower but more configurable than SnpEff.
- Large VCFs (millions of variants) may require significant memory and runtime.
- Common failure cases:
- SnpEff database name not matching the reference build (e.g., using
hg19when VCF is onGRCh38). - VEP cache directory missing or not matching the installed VEP version.
- VEP plugin data files (CADD, LOFTEE) not downloaded or path misconfigured.
- SnpEff database name not matching the reference build (e.g., using
Scan to join WeChat group