Some SNP XML document not available via an eutils query
1
0
Entering edit mode
6.1 years ago
longoka ▴ 40

Why are some XML documents available using a SNP query, and others are not?

For the first time today, I came across a SNP eutils search that did not return an XML:

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=snp&id=13422&report=XML

Whereas other searches return XMLs just fine:

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=snp&id=3000&report=XML

SNP xml eutils • 1.3k views
ADD COMMENT
0
Entering edit mode

' looks like a bug

ADD REPLY
0
Entering edit mode

I submitted a bug report to NCBI; I'll update this post when I get an answer.

FYI, I also tried executing this in R using the 'rentrez' package and the function 'entrez_fetch'; perhaps unsurprisingly, same result (see below).

entrez_fetch(db="snp", id = 13422, web_history = NULL, rettype = "FASTA", retmode = "XML",parsed = FALSE, config = NULL)

[1] "\n<ExchangeSet xmlns:xsi="\"&lt;a" href="https://www.w3.org/2001/XMLSchema-instance" rel="nofollow">https://www.w3.org/2001/XMLSchema-instance\" xmlns=\"https://www.ncbi.nlm.nih.gov/SNP/docsum\" xsi:schemaLocation=\"https://www.ncbi.nlm.nih.gov/SNP/docsum ftp://ftp.ncbi.nlm.nih.gov/snp/specs/docsum_eutils.xsd\" >\n</ExchangeSet>"
ADD REPLY
1
Entering edit mode

The reply from the NBCI help esk:

Thanks for reporting this to us.

I did reproduce this, but I am not quite sure the underlying cost. Given that the SNP database is in a transitioning phase (both in workflow and web presentation), I am not quite sure how the API support through EUtils is to be carried over. I will need to get some clarification from the group.

You can take a look at the new web presentation and the API link there to see the API provided json blobs: https://www.ncbi.nlm.nih.gov/snp/rs13422

You can use the Feedback button to provide your comments/input to the group directly.

ADD REPLY
0
Entering edit mode
6.1 years ago
longoka ▴ 40

I did not notice previously the 'API' link in the new dbSNP view:

https://www.ncbi.nlm.nih.gov/snp/rs13422

When you click on this link, it give the new API form:

https://api.ncbi.nlm.nih.gov/variation/v0/beta/refsnp/13422

This returns information on the SNP as a JSON blob.

It is unclear to me if it is a long-term plan for dbSNP to transition-away from making its data accessible via efetch and eutils, but they are supplying this alternative API, and it's quite nice.

ADD COMMENT

Login before adding your answer.

Traffic: 2291 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