sciagent-skill-creator
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md with valid frontmatter, appends…
Annotate and filter VCF variants with SnpEff and SnpSift. SnpEff predicts functional effects (HIGH/MODERATE/LOW/MODIFIER), genes, transcripts, AA changes, HGVS; SnpSift filters and adds ClinVar/dbSNP. Java CLI with Python subprocess integration. Use ANNOVAR for multi-database
$ npx -y skills add jaechang-hits/SciAgent-Skills --skill snpeff-variant-annotation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/snpeff-variant-annotationContext preview
The summary Claude sees to decide when to auto-load this skill.
Annotate and filter VCF variants with SnpEff and SnpSift. SnpEff predicts functional effects (HIGH/MODERATE/LOW/MODIFIER), genes, transcripts, AA changes, HGVS; SnpSift filters and adds ClinVar/dbSNP. Java CLI with Python subprocess integration. Use ANNOVAR for multi-database
name: "snpeff-variant-annotation" description: "Annotate and filter VCF variants with SnpEff and SnpSift. SnpEff predicts functional effects (HIGH/MODERATE/LOW/MODIFIER), genes, transcripts, AA changes, HGVS; SnpSift filters and adds ClinVar/dbSNP. Java CLI with Python subprocess integration. Use ANNOVAR for multi-database annotation; Ensembl VEP for REST API; SnpEff for fast CLI with pre-built genomes." license: "MIT"
SnpEff annotates variants in VCF files by predicting their functional consequences: impact level (HIGH, MODERATE, LOW, MODIFIER), affected gene and transcript, amino acid change, and HGVS notation. SnpSift is the companion tool for filtering, sorting, and enriching annotated VCFs with external databases such as ClinVar and dbSNP. Together they form a fast, self-contained pipeline for going from raw variant calls to biologically interpretable, filtered variant sets. Both tools are Java-based and are invoked from the command line or Python subprocess; pre-built genome databases (hg38, GRCh37, mm10, and 100+ others) are downloaded with a single command.
> **Check before installing**: The tool may already be available in the current environment (e.g., inside a `pixi` / `conda` env). Run `command -v snpEff` first and skip the install commands below if it returns a path. When running inside a pixi project, invoke the tool via `pixi run snpEff` rather than bare `snpEff`.
# Download SnpEff JAR wget https://snpeff.blob.core.windows.net/versions/snpEff_latest_core.zip unzip snpEff_latest_core.zip # JAR is at snpEff/snpEff.jar and snpEff/SnpSift.jar # Or via conda (recommended for reproducibility) conda install -c bioconda snpeff # Verify java -jar snpEff/snpEff.jar -version # SnpEff 5.2a (build 2024-02-06) # Install Python packages for downstream parsing pip install cyvcf2 pandas matplotlib seaborn
# 1. Download the hg38 genome database (one-time setup, ~1 GB)
java -jar snpEff/snpEff.jar download hg38
# 2. Annotate variants
java -jar snpEff/snpEff.jar \
-v hg38 \
input.vcf.gz \
> annotated.vcf
# 3. Filter to HIGH-impact variants
java -jar snpEff/SnpSift.jar filter \
"ANN[*].IMPACT = 'HIGH'" \
annotated.vcf \
> high_impact.vcf
echo "Done. Check snpEff_summary.html and snpEff_genes.txt for QC stats."Download and verify the pre-built genome database for your target assembly. Databases include transcript models from Ensembl or UCSC and are built into SnpEff's local cache directory (`~/.snpEff/data/` or `snpEff/data/`).
# List all available databases (grep for your assembly) java -jar snpEff/snpEff.jar databases | grep -i "GRCh38\|hg38" # Download hg38 (Homo sapiens, GRCh38) java -jar snpEff/snpEff.jar download hg38 # Download GRCh37 (older assemblies still widely used in clinical pipelines) java -jar snpEff/snpEff.jar download GRCh37.75 # Download mouse mm10 java -jar snpEff/snpEff.jar download mm10 # List installed databases ls ~/.snpEff/data/
Run SnpEff annotation to add `ANN` INFO fields to each variant. The `ANN` field encodes pipe-separated annotations per transcript: `Allele|Effect|Impact|Gene|GeneID|Feature|FeatureID|BioType|Rank|HGVS.c|HGVS.p|cDNA_pos|CDS_pos|Protein_pos|Distance|Errors`.
# Annotate a gzipped VCF (outputs to stdout, pipe or redirect)
java -Xmx8g -jar snpEff/snpEff.jar \
-v \
-stats snpeff_summary.html \
hg38 \
input.vcf.gz \
> annotated.vcf
# Compress and index the output for downstream tools
bgzip annotated.vcf
tabix -p vcf annotated.vcf.gz
echo "Annotated variants in annotated.vcf.gz"
echo "QC report: snpeff_summary.html"
echo "Gene table: snpEff_genes.txt"SnpSift `filter` evaluates boolean expressions over INFO and FORMAT fields. The `ANN[*]` syntax iterates over all transcript annotations for each variant — any matching transcript qualifies the variant.
# Filter for HIGH-impact variants only (stop-gain, frameshift, splice-site)
java -jar snpEff/SnpSift.jar filter \
"ANN[*].IMPACT = 'HIGH'" \
annotated.vcf.gz \
> high_impact.vcf
# Filter HIGH or MODERATE impact and allele frequency < 1%
# (requires AF in INFO field, e.g., from GATK or gnomAD annotation)
java -jar snpEff/SnpSift.jar filter \
"(ANN[*].ITurn your AI coding agent into a life sciences expert — 199 bioinformatics skills for Claude Code covering RNA-seq, single-cell analysis, genomics, proteomics, drug discovery, and more. Boosted BixBench from 65% to 92%. Open source.
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md with valid frontmatter, appends…
Bayesian modeling with PyMC 5: priors, likelihood, NUTS/ADVI sampling, diagnostics (R-hat, ESS), LOO/WAIC comparison, prediction. Hierarchical, logistic, GP…
Time-to-event modeling with scikit-survival: Cox PH (elastic net), Random Survival Forests, Boosting, SVMs for censored data. C-index, Brier, time-dependent…
Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions, or format results for…
Python statistical modeling: regression (OLS, WLS, GLM), discrete (Logit, Poisson, NegBin), time series (ARIMA, SARIMAX, VAR), with rigorous inference,…
DL cell/nucleus segmentation for fluorescence and brightfield microscopy. Pre-trained models (cyto3, nuclei, tissuenet) and a generalist flow-based algorithm…