ropensci / rentrez

talk with NCBI entrez using R
https://docs.ropensci.org/rentrez
Other
194 stars 38 forks source link

entrez_link returns inconsistent results #188

Open xinf2 opened 1 year ago

xinf2 commented 1 year ago

Hello,

I ran into the problem that entrez_link would return an arbitrary number of links for the same query:

all_the_links <- entrez_link(dbfrom='gene', id= 3565, db='snp') snplist = all_the_links$links$gene_snp

The snplist varies each time for the query, and sometimes no link is returned (snplist length is 0) and this happened for other genes I tried as well.

Thanks for your help!

allenbaron commented 1 year ago

I get similar results. This has happened for me in the past when using PubMed. At the time the issue was also occurring with their website. It's probably not an issue with rentrez but at NCBI itself. I suggest you reach out to NCBI and ask them about it.

If you get a helpful response please post it here for future reference.