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
1 answer
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.
Log in to answer this question.
' looks like a bug
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).
The reply from the NBCI help esk: