genomics-variant-annotation
FreeNo executable scriptsNot checkedLoad when summarising functional impact of an annotated variant CSV — per-IMPACT counts (HIGH / MODERATE / LOW / MODIFIER), top consequences, gene-affected…
by mdbabumiamssm★ 36 GitHub starsAbout this skill
genomics-variant-annotation
When to use
The user has a CSV containing per-variant annotations (lowercase
columns chrom, pos, ref, alt, consequence, impact,
gene, optionally cadd_phred) — typically the output of running
VEP, snpEff, or ANNOVAR upstream and exporting the resulting VCF
to CSV (e.g. via bcftools +split-vep). This skill computes
per-IMPACT counts, top consequences, and the count of distinct
genes affected.
The script does NOT run VEP / snpEff / ANNOVAR, and does NOT
parse a raw VCF — it only reads CSV. For raw calling use
genomics-variant-calling; for VCF filtering use
genomics-vcf-operations.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Annotated CSV | .csv with lowercase columns chrom, pos, ref, alt, consequence, impact, gene (and optionally cadd_phred) |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| Annotated table | tables/annotated_variants.csv |
per-variant copy of the input CSV |
| Impact distribution | tables/impact_distribution.csv |
counts per IMPACT class |
| Report | report.md + result.json |
result.json["data"]["top_consequences"] mirrors top-N consequence counts |
Flow
- Load CSV (
--input <annotated.csv>) or generate a demo annotated CSV atoutput_dir/demo_annotated_variants.csvwith--n-variantsrecords (variant_annotation.py:227). - Read columns directly via
pd.read_csv(variant_annotation.py:356) — no VCF / VEP / snpEff parser exists in this skill. - Aggregate per-IMPACT counts (
variant_annotation.py:240); pick top-N consequences (:241); count distinct genes touched (:252). - Write
tables/annotated_variants.csv(variant_annotation.py:366) +tables/impact_distribution.csv(:377) +report.md+result.json(:383).
Gotchas
- CSV-only — no VCF parser exists.
variant_annotation.py:356ispd.read_csv(input_path); passing a.vcfraisesValueError("Could not parse input file: ...")atvariant_annotation.py:358. Convert VCFs to CSV first withbcftools +split-vep -d -f '%CHROM,%POS,%REF,%ALT,%CSQ\n'and post-process to the required column names. - Required CSV columns are LOWERCASE. Code reads
df["impact"](:240),df["consequence"](:241),df["gene"](:252), and optionallydf["cadd_phred"](:271). A CSV withIMPACT/Consequence/GeneraisesKeyError. --inputREQUIRED unless--demo.variant_annotation.py:348raisesValueError("--input required when not using --demo"); non-existent paths raiseFileNotFoundErrorat:351.- No annotator is invoked. This skill consumes an already-annotated CSV — it does NOT run VEP / snpEff / ANNOVAR. Run an annotator upstream and convert its output to CSV.
- CADD scoring is optional. When
cadd_phredis absent the report omits the CADD section; do NOT add a placeholder NaN column or the value-counts will mis-render. - Demo CSV uses fixed IMPACT proportions (~10% HIGH, 30% MODERATE, 50% LOW, 10% MODIFIER). Useful for orchestrator smoke tests; not biologically meaningful.
Key CLI
# Demo
python omicsclaw.py run genomics-variant-annotation --demo --output /tmp/anno_demo
# Real annotated CSV (lowercase columns)
python omicsclaw.py run genomics-variant-annotation \
--input my_annotations.csv --output results/
See also
references/parameters.md— every CLI flagreferences/methodology.md— VEP / snpEff / ANNOVAR field semantics, IMPACT taxonomyreferences/output_contract.md—tables/annotated_variants.csv+ impact distribution- Adjacent skills:
genomics-variant-calling(upstream — produces raw VCF),genomics-vcf-operations(upstream — filtering / normalisation before annotation),genomics-sv-detection(parallel — structural variants),genomics-phasing(parallel — phasing analysis)
Install genomics-variant-annotation in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the genomics-variant-annotation skill do?
Load when summarising functional impact of an annotated variant CSV — per-IMPACT counts (HIGH / MODERATE / LOW / MODIFIER), top consequences, gene-affected count. Skip when input is a raw VCF (convert with `bcftools +split-vep` first), when calling raw variants (use `genomics-variant-calling`), or filtering VCFs (use `genomics-vcf-operations`).
How do I install the genomics-variant-annotation skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the genomics-variant-annotation skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic