refsnp API has different positions for SNPs in same reference
1
0
Entering edit mode
3.8 years ago
Lauren ▴ 70

For example here's a specific rsid: https://www.ncbi.nlm.nih.gov/snp/rs62123481

On the ncbi SNP website, the position in GRCh38.p12 is reported as 38384432. In the hgvs, it also has 38384432. Same in the VCF. But in the chr19 json file I downloaded from refsnp, it gives 38384431 as the position. I checked the reference and it looks like it's indeed at 38384432.

The refsnp API, which I assume is using the same json file, also gives the incorrect position https://api.ncbi.nlm.nih.gov/variation/v0/refsnp/62123481

Every example I have found seems to be off by one in the position field, but the hgvs field is correct. I know that SPDI is 0-based, but for SNVs it gives the wrong coordinates.

Any idea what's going on there? Has anyone seen the same thing? Scratching my head.

dbsnp rsid json refsnp api • 825 views
ADD COMMENT
1
Entering edit mode
3.8 years ago
Lauren ▴ 70

edit: I think this answers my question -- I'll leave it up in case someone has the same question later on: https://ncbiinsights.ncbi.nlm.nih.gov/2017/02/09/new-web-services-for-comparing-and-grouping-sequence-variants

ADD COMMENT

Login before adding your answer.

Traffic: 2937 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6