Skip to content

vimalinx/bio-agent / .claude/skills/snp2hgvs

snp2hgvs

Verified

Use when converting NCBI dbSNP docsum XML into HGVS-oriented XML records for downstream variant normalization or annotation pipelines.

snp2hgvs

Small bash wrapper over xtract and transmute. It reads dbSNP DocumentSummarySet XML, selects matching DocumentSummary records, and emits structured HGVS XML with one or more <Variant> blocks per rsID.

Quick Start

  • Command: efetch -db snp -id <rsid> -format docsum | snp2hgvs
  • Local executable: /home/vimalinx/miniforge3/envs/bio/bin/snp2hgvs
  • Expected input: dbSNP docsum XML from Entrez Direct

When To Use This Tool

  • Converting dbSNP docsum XML into HGVS-centered XML for one or more rsIDs
  • Bridging from efetch -db snp -format docsum into later HGVS/SPDI conversion steps
  • Extracting multiple genomic, coding, or protein HGVS representations from the same SNP record
  • Feeding rsID-derived HGVS records into hgvs2spdi, spdi2prod, or custom XML processing

Common Patterns

# Convert one rsID into HGVS XML
efetch -db snp -id 104894914 -format docsum | snp2hgvs
# Convert multiple dbSNP docsum records, then continue into SPDI
efetch -db snp -id 104894914,104894915 -format docsum | snp2hgvs | hgvs2spdi
# Full chain hinted by the wrapper source
efetch -db snp -id 104894914 -format docsum | snp2hgvs | hgvs2spdi | spdi2prod

Recommended Workflow

  1. Fetch SNP records from Entrez Direct in -format docsum, not an unrelated XML flavor.
  2. Pipe the docsum XML directly into snp2hgvs.
  3. Inspect the resulting <HGVS> document if you care about class/type distinctions across genomic, coding, or protein variants.
  4. Chain into hgvs2spdi or other downstream normalizers only after confirming the wrapper emitted the variant forms you need.

Guardrails

  • There is no safe standalone help/version path: both -h and --version fell through to xtract and failed with No data supplied to xtract from stdin or file.
  • The wrapper depends on both xtract and transmute being available on PATH.
  • Source inspection shows it expects DocumentSummarySet / DocumentSummary XML with SNP_ID; it is not a generic rsID-to-HGVS web client.
  • In live testing on rs104894914, the wrapper emitted <HGVS> XML containing multiple <Variant> records, including genomic (NC_000023.11:g.154191716T>C) and coding (NM_000513.2:c.607T>C) forms.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 319kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall