AgentSkillsCN

snpeff

运行 SnpEff——一款用于基因组变异注释与效应预测的工具。当用户希望对 VCF 文件进行注释、构建基因组数据库,或使用 SnpEff 的各类实用程序时,可选用此工具。

SKILL.md
--- frontmatter
name: snpeff
description: Run SnpEff, a variant annotation and effect prediction tool for genomic variants. Use when the user wants to annotate VCF files, build genome databases, or use SnpEff utilities.
allowed-tools: Bash, Read, Grep, Glob

SnpEff

SnpEff is a variant annotation and effect prediction tool. It analyzes VCF files and predicts the functional effects of genetic variants (such as amino acid changes) on known genes.

Full documentation: https://pcingola.github.io/SnpEff/

Running

Use the wrapper script at .claude/skills/snpeff/snpeff.sh. It handles JVM memory defaults and argument passthrough. The JAR file is expected at $HOME/snpEff/snpEff.jar.

IMPORTANT: SnpEff output is typically very large (thousands to millions of lines). ALWAYS redirect output to a file. NEVER let output print to stdout, as it will fill the context window and make the conversation unusable.

bash
# Correct: redirect to file
.claude/skills/snpeff/snpeff.sh <command> [options] [arguments] > output.vcf 2> snpeff.log

# WRONG: never do this
.claude/skills/snpeff/snpeff.sh <command> [options] [arguments]

Commands

CommandDescriptionDocs
ann / effAnnotate variants (default command)commandline, running, input/output
buildBuild a SnpEff database from reference genome filesbuild_db, build_db_gff_gtf
buildNextProtBuild NextProt database from XML filescommands
cdsCompare CDS sequences (database check)commands
closestAnnotate closest genomic regioncommands
countCount reads/bases overlapping genomic intervalscommands
databasesList available databasescommands
downloadDownload a pre-built databasecommands
dumpDump database contents (BED/TXT)commands
genes2bedCreate BED file from gene listcommands
lenCalculate genomic length per marker typecommands
pdbBuild interaction database from PDB/AlphaFold databuild_pdb
proteinCompare protein sequences (database check)commands
seqTranslate DNA sequence to proteincommands
showShow gene/transcript text representationcommands
translocReportCreate translocation report with SVGcommands

Additional Documentation

TopicFile
Introductionintroduction
Additional annotationsadditionalann
Building regulation databasesbuild_reg
Cancer samplescansersamples
FAQfaq
Human genomeshuman_genomes
Integration (GATK, Galaxy)integration
Output summaryoutputsummary
Troubleshootingtroubleshooting
Download & Installdownload
Examplesexamples
Helphelp