Vcf variant typing

From XuShuwenn/RedAct · View interactive version

Vcf variant typing is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Classify VCF records as SNP, MNP, INS, or DEL from REF/ALT lengths and emit CHR:POS TYPE REF>ALT lines.

How to use this skill

Skill file

VCF Variant Typing from REF/ALT Lengths

This skill annotates VCF variants by type using only REF and ALT allele lengths and produces lines of the form:

CHR:POS TYPE REF>ALT

Types:

When to Use

Core Workflow

  1. Read the input VCF text.
  2. Skip header/meta lines starting with '#'.
  3. Parse columns: CHROM (1), POS (2), REF (4), ALT (5). Split ALT on commas to handle multi-allelic records; each ALT produces its own output line.
  4. Classify each REF/ALT pair by length:
  1. Emit "CHR:POS TYPE REF>ALT" exactly, preserving input CHROM, POS, REF, and ALT text for the output tokens.
  2. Preserve input order; produce one line per ALT allele.

Decision Rules and Edge Handling

Verification

Common Pitfalls

Success Criteria

Optional Script Usage

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.