tooluniverse-variant-analysis

mims-harvard/tooluniverse · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/mims-harvard/tooluniverse --skill tooluniverse-variant-analysis
0 commentsdiscussion
summary

Production-ready VCF processing and variant annotation skill combining local bioinformatics computation with ToolUniverse database integration. Designed to answer bioinformatics analysis questions about VCF data, mutation classification, variant filtering, and clinical annotation.

skill.md

Variant Analysis and Annotation

Production-ready VCF processing and variant annotation skill combining local bioinformatics computation with ToolUniverse database integration. Designed to answer bioinformatics analysis questions about VCF data, mutation classification, variant filtering, and clinical annotation.

Domain Reasoning

VCF quality filtering must come before interpretation. A variant called at 2x read depth is unreliable regardless of its QUAL score, because stochastic sequencing errors at low depth can mimic true variants. The recommended minimums — depth > 10x, QUAL > 20, allele frequency consistent with expected zygosity — are not conservative; they are the floor below which calls cannot be trusted. Applying lenient filters to "keep more variants" sacrifices accuracy for coverage and produces false positives that propagate through all downstream analyses.

LOOK UP DON'T GUESS

  • Clinical significance of specific variants: query MyVariant_query_variants or EnsemblVEP_annotate_rsid; never cite ClinVar classifications from memory.
  • Population allele frequencies: retrieve from MyVariant.info or gnomAD tools; do not assume rarity.
  • ClinGen dosage sensitivity scores for genes in a CNV: call ClinGen_dosage_by_gene; do not estimate HI/TS scores.
  • Mutation consequence predictions: run Ensembl VEP or retrieve from MyVariant.info; do not classify impact without tool output.

CRISPR sgRNA Design Reasoning

  • PAM sequence (NGG for SpCas9) must lie 3' of the target on the non-target strand; the guide RNA targets the 20 nt immediately upstream of the PAM
  • For exon targeting: choose guides that cut early in the coding sequence for maximum frameshift/disruption
  • Off-target risk increases with fewer mismatches; always check for genomic sites with 0-3 mismatches to the guide

When to Use This Skill

Triggers:

  • User provides a VCF file (SNV/indel or SV) and asks questions about its contents
  • Questions about variant allele frequency (VAF) filtering
  • Mutation type classification queries (missense, nonsense, synonymous, etc.)
  • Structural variant interpretation requests (deletions, duplications, CNVs)
  • Variant annotation requests (ClinVar, gnomAD, CADD, dbSNP)
  • CNV pathogenicity assessment using ClinGen dosage sensitivity
  • Cohort comparison questions
  • Population frequency filtering (SNVs or SVs)
  • Intronic/intergenic variant filtering
  • Gene dosage sensitivity queries

Example Questions:

  • "What fraction of variants with VAF < 0.3 are annotated as missense mutations?"
  • "After filtering intronic/intergenic variants, how many non-reference variants remain?"
  • "What is the clinical significance of this deletion affecting BRCA1?"
  • "Which dosage-sensitive genes overlap this 500kb duplication on chr17?"
  • "How many variants have clinical significance annotations?"
  • "Compare variant counts between samples"

Core Capabilities

Capability Description
VCF Parsing Pure Python + cyvcf2 parsers. VCF 4.x, gzipped, multi-sample, SNV/indel/SV
Mutation Classification Maps SO terms, SnpEff ANN, VEP CSQ, GATK Funcotator to standard types
VAF Extraction Handles AF, AD, AO/RO, NR/NV, INFO AF formats
Filtering VAF, depth, quality, PASS, variant type, mutation type, consequence, chromosome, SV size
Statistics Ti/Tv ratio, per-sample VAF/depth stats, mutation type distribution, SV size distribution
Annotation MyVariant.info (aggregates ClinVar, dbSNP, gnomAD, CADD, SIFT, PolyPhen)
SV/CNV Analysis gnomAD SV population frequencies, DGVa/dbVar known SVs, ClinGen dosage sensitivity
Clinical Interpretation ACMG/ClinGen CNV pathogenicity classification using haploinsufficiency/triplosensitivity scores
DataFrame Convert to pandas for advanced analytics
Reporting Markdown reports with tables and statistics, SV clinical reports

Workflow Overview

Phase 1: Parse VCF → Extract CHROM/POS/REF/ALT/QUAL/FILTER/INFO, per-sample GT/VAF/depth, annotations (ANN/CSQ/FUNCOTATION). Pure Python or cyvcf2.

Phase 2: Classify → Variant type (SNV/INS/DEL/MNV/SV), mutation type (missense/nonsense/synonymous/frameshift/splice/etc.), impact (HIGH/MODERATE/LOW/MODIFIER).

Phase 3: Filter → VAF range, depth, quality, PASS, variant/mutation type, consequence exclusion, population frequency, chromosome, SV size.

Phase 4: Statistics → Type/mutation/impact/chromosome distributions, Ti/Tv ratio, per-sample VAF/depth, gene mutation counts.

Phase 5: Annotate (optional) → MyVariant.info (ClinVar/dbSNP/gnomAD/CADD), Ensembl VEP consequence prediction.

Phase 6: Report → Markdown tables, direct answers, DataFrame export.

Phase 7: SV/CNV Analysis (if applicable) → gnomAD SV frequencies, ClinGen dosage sensitivity, ACMG pathogenicity classification.


Phase Summaries

Phase 1: VCF Parsing

Use pandas for:

  • Reading VCF as structured data
  • Quick exploratory analysis
  • When you need to manipulate columns and rows

Use python_implementation tools for:

  • Production parsing with annotation extraction
  • Multi-sample VCF handling
  • VAF extraction from FORMAT fields
  • Large file streaming

Key functions:

vcf_data = parse_vcf("input.vcf")           # Pure Python (always works)
vcf_data = parse_vcf_cyvcf2("input.vcf")    # Fast C-based (if installed)
df = variants_to_dataframe(vcf_data.variants, sample="TUMOR")  # For pandas

Phase 2: Variant Classification

Automatic classification from annotations:

  • SnpEff ANN field
  • VEP CSQ field
  • GATK Funcotator FUNCOTATION field
  • Standard INFO keys: EFFECT, EFF, TYPE

Mutation types supported: missense, nonsense, synonymous, frameshift, splice_site, splice_region, inframe_insertion, inframe_deletion, intronic, intergenic, UTR_5, UTR_3, upstream, downstream, stop_lost, start_lost

See references/mutation_classification_guide.md for full details

Phase 3: Filtering

Common filtering patterns:

# Somatic-like variants
criteria = FilterCriteria(
    min_vaf=0.05, max_vaf=0.95,
    min_depth=20, pass_only=True,
    exclude_consequences=["intronic", "intergenic", "upstream", "downstream"]
)

# High-confidence germline
criteria = FilterCriteria(
    min_vaf=0.25, min_depth=30, pass_only=True,
    chromosomes=["1", "2", ..., "22", "X", "Y"]
)

# Rare pathogenic candidates
criteria = FilterCriteria(
    min_depth=20, pass_only=True,
    mutation_types=["missense", "nonsense", "frameshift"]
)

See references/vcf_filtering.md for all filter options

Phase 4-6: Statistics, Annotation, Reporting

Use python_implementation for standard stats (Ti/Tv, type distributions, per-sample VAF/depth); pandas for custom aggregations. For annotation, prefer MyVariant.info (batch: ClinVar + dbSNP + gnomAD + CADD); limit to 50-100 variants per batch. Reports include type/mutation/impact/chromosome distributions, VAF stats, clinical significance, and top mutated genes.

See references/annotation_guide.md for detailed examples

Phase 7: Structural Variant & CNV Analysis

When VCF contains SV calls (SVTYPE=DEL/DUP/INV/BND):

  1. Identify affected genes (from VCF annotation or coordinate overlap)
  2. Query ClinGen dosage sensitivity:
    clingen = ClinGen_dosage_by_gene(gene_symbol="BRCA1")
    # Returns: haploinsufficiency_score, triplosensitivity_score
    
  3. Check population frequency:
    gnomad_sv = gnomad_get_sv_by_gene(gene_symbol="BRCA1")
    # Returns: SVs with AF, AC, AN
    
  4. Classify pathogenicity:
    • Pathogenic: Deletion + HI score = 3, AF < 0.0001
    • Likely Pathogenic: Deletion + HI score = 2, AF < 0.001
    • VUS: HI/TS score = 0-1, AF 0.001-0.01
    • Benign: AF > 0.01

ClinGen dosage score interpretation:

  • 3: Sufficient evidence for dosage pathogenicity (HIGH impact)
  • 2: Some evidence (MODERATE impact)
  • 1: Little evidence (LOW impact)
  • 0: No evidence (MINIMAL impact)
  • 40: Dosage sensitivity unlikely

See references/sv_cnv_analysis.md for full SV workflow


Answering BixBench Questions

Pattern 1: VAF + Mutation Type Fraction

Question: "What fraction of variants with VAF < X are annotated as Y mutations?"

result = answer_vaf_mutation_fraction(
    vcf_path="input.vcf",
    max_vaf=0.3,
    mutation_type="missense",
    sample="TUMOR"
)
# Returns: fraction, total_below_vaf, matching_mutation_type

Pattern 2: Cohort Comparison

Question: "What is the difference in mutation frequency between cohorts?"

result = answer_cohort_comparison(
    vcf_paths=["cohort1.vcf", "cohort2.vcf"],
    mutation_type="missense",
    cohort_names=["Treatment", "Control"]
)
# Returns: cohorts, frequency_difference

Pattern 3: Filter and Count

Question: "After filtering X, how many Y remain?"

result = answer_non_reference_after_filter(
    vcf_path="input.vcf",
    exclude_intronic_intergenic=True
)
# Returns: total_input, non_reference, remaining

ToolUniverse Tools Reference

SNV/Indel Annotation

Tool When to Use Parameters Response
MyVariant_query_variants Batch annotation query (rsID/HGVS) ClinVar, dbSNP, gnomAD, CADD
dbsnp_get_variant_by_rsid Population frequencies rsid Frequencies, clinical significance
gnomad_get_variant gnomAD metadata variant_id (CHR-POS-REF-ALT) Basic variant info
EnsemblVEP_annotate_rsid Consequence prediction variant_id (rsID) Transcript impact

Structural Variant Annotation

Tool When to Use Parameters Response
gnomad_get_sv_by_gene SV population frequency gene_symbol SVs with AF, AC, AN
gnomad_get_sv_by_region Regional SV search chrom, start, end SVs in region
ClinGen_dosage_by_gene Dosage sensitivity gene_symbol HI/TS scores, disease
ClinGen_dosage_region_search Dosage-sensitive genes in region chromosome, start, end All genes with HI/TS scores
ensembl_get_structural_variants Known SVs from DGVa/dbVar chrom, start, end, species Clinical significance

See references/annotation_guide.md for detailed tool usage examples


Common Use Patterns

# Quick summary
report = variant_analysis_pipeline("input.vcf", output_file="report.md")

# Filtered analysis
report = variant_analysis_pipeline("input.vcf",
    filters=FilterCriteria(min_vaf=0.1, min_depth=20, pass_only=True))

# Annotated report (top 50 variants with ClinVar/gnomAD/CADD)
report = variant_analysis_pipeline("input.vcf", annotate=True, max_annotate=50)

pandas vs python_implementation: Use python_implementation for parsing/classification/annotation, then convert to DataFrame for custom aggregations:

vcf_data = parse_vcf("input.vcf")
passing, _ = filter_variants(vcf_data.variants, criteria)
df = variants_to_dataframe(passing, sample="TUMOR")

Limitations

  • VCF annotation required for mutation classification: If VCF has no ANN/CSQ/FUNCOTATION in INFO, mutation types will be "unknown" until ToolUniverse annotation is applied
  • Multi-allelic variants: Parser takes first ALT allele for type classification
  • ToolUniverse annotation rate: API-based, limited to ~100 variants per batch by default to respect rate limits
  • gnomAD tool: Returns basic metadata only (not full allele frequencies); use MyVariant.info for gnomAD AF
  • Large VCFs: Pure Python parser streams line-by-line; cyvcf2 is recommended for files with >100K variants

Reference Documentation

  • references/vcf_filtering.md: Complete filter options and examples
  • references
how to use tooluniverse-variant-analysis

How to use tooluniverse-variant-analysis on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add tooluniverse-variant-analysis
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/mims-harvard/tooluniverse --skill tooluniverse-variant-analysis

The skills CLI fetches tooluniverse-variant-analysis from GitHub repository mims-harvard/tooluniverse and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/tooluniverse-variant-analysis

Reload or restart Cursor to activate tooluniverse-variant-analysis. Access the skill through slash commands (e.g., /tooluniverse-variant-analysis) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.872 reviews
  • Min Sanchez· Dec 16, 2024

    Useful defaults in tooluniverse-variant-analysis — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Hassan Sethi· Dec 16, 2024

    Keeps context tight: tooluniverse-variant-analysis is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Ishan Chen· Dec 16, 2024

    tooluniverse-variant-analysis fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Chaitanya Patil· Dec 12, 2024

    tooluniverse-variant-analysis is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Amelia Chawla· Dec 12, 2024

    I recommend tooluniverse-variant-analysis for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Jin Haddad· Dec 8, 2024

    tooluniverse-variant-analysis reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Hassan Reddy· Dec 8, 2024

    Solid pick for teams standardizing on skills: tooluniverse-variant-analysis is focused, and the summary matches what you get after install.

  • Charlotte Anderson· Dec 8, 2024

    We added tooluniverse-variant-analysis from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Charlotte Taylor· Dec 4, 2024

    tooluniverse-variant-analysis has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Jin Bansal· Nov 27, 2024

    Registry listing for tooluniverse-variant-analysis matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 72

1 / 8