Variant annotation

From XuShuwenn/RedAct · View interactive version

Variant annotation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Annotate VCF variants with their type (SNP, MNP, INS, DEL) based on REF and ALT allele differences.

How to use this skill

Skill file

VCF Variant Annotation

When to Use

Input

Minimal Workflow

Minimal Workflow

  1. Read /root/input.vcf and extract CHROM, POS, REF, and ALT from each non-header record.
  2. Classify each ALT allele directly from the REF/ALT values using the length-based rules in this skill; do not infer type from INFO when REF/ALT already determine it.
  3. Write /root/output.txt in the exact format CHR:POS TYPE REF>ALT, with one output line per ALT allele.
  4. After writing the file, read it back and confirm every line matches the required format.

Variant Type Rules

Based on REF vs ALT:

Classify each REF/ALT pair by direct length comparison:

Output Format

To /root/output.txt:

chr1:100 SNP A>G
chr2:200 INS T>TA

Format: CHR:POS TYPE REF>ALT

VCF Parsing

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.