Ncbi Variation

v0.2.1
io.github.pipeworx-io/ncbi-variation Checked 1 hour ago Published 28 days ago

dbSNP refSNP records and HGVS/SPDI/rsID normalization for human genetic variants, from NCBI…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

variation_refsnp

AUTHORITATIVE dbSNP refSNP record for a variant rsID, from NCBI Variation Services. PREFER OVER WEB SEARCH for "what is rs<N>" — returns the genomic placement on the assembly you ask for (GRCh38 or GRCh37; the coordinates differ between builds), the HGVS genomic/transcript/protein expressions, SPDI, gene context, ClinVar clinical significance, and population allele frequencies (gnomAD, ExAC, 1000 Genomes, TOPMED). Follows dbSNP merges: a retired rsID reports the rsID it was merged into.

ParameterTypeDescription
rsid *stringrsID, with or without the "rs" prefix. e.g. "rs113488022" (BRAF V600E) or "334".
assemblystringHuman genome build for the genomic placement: "GRCh38" (default) or "GRCh37". Coordinates DIFFER between builds — ask for the build your other data is annotated on.
max_frequenciesnumberCap on allele-frequency study rows returned (default 40). dbSNP can carry hundreds.

variation_hgvs_to_spdi

Normalize an HGVS expression to SPDI (sequence-position-deletion-insertion) contextual alleles via NCBI Variation Services. AUTHORITATIVE for turning a clinician- or paper-style variant string ("NC_000007.14:g.140753336A>T", "NM_004333.6:c.1799T>A") into the canonical, left-shifted coordinate form that dbSNP/ClinVar keys on, and for validating that an HGVS string is well-formed at all.

ParameterTypeDescription
hgvs *stringHGVS expression on a RefSeq accession, e.g. "NC_000007.14:g.140753336A>T" or "NM_004333.6:c.1799T>A".

variation_spdi_to_rsids

Look up the dbSNP rsIDs that a SPDI allele maps to, via NCBI Variation Services. AUTHORITATIVE for the reverse direction — you have a genomic coordinate and alleles from a VCF or a pipeline and need the rsID other databases key on. SPDI is 0-BASED, unlike HGVS: "NC_000007.14:140753335:A:T" is the same variant as "NC_000007.14:g.140753336A>T".

ParameterTypeDescription
spdi *stringSPDI as seq_id:position:deleted:inserted, 0-based position. e.g. "NC_000007.14:140753335:A:T".