rentrez icon indicating copy to clipboard operation
rentrez copied to clipboard

entrez_link by_id = TRUE with web_history

Open willgearty opened this issue 6 years ago • 2 comments

Right now it appears you can only use by_id = TRUE if you are supplying IDs with id, but it would be great if it also worked when a web_history object is supplied instead.

willgearty avatar Apr 03 '18 22:04 willgearty

As far as I know, this is not possible.

Getting the results organized by ID requires that we use a special format in the call, with "id" specified many times in the URL. If the IDs exist only on the NCBI's servers, then there is no way to format the call in the right way (short of downloading them with entrez_fetch... but that sort of defeats the point of using the web history in the first place)

dwinter avatar Apr 04 '18 00:04 dwinter

Ah, that makes sense. The frustrating thing I'm encountering is that the call removes duplicates upon returning the links, and I then can't figure out which link goes with which ID. I'm getting around it by just chunking through a long list of IDs, but, as you said, it defeats the whole point of having the web history functionality.

willgearty avatar Apr 04 '18 00:04 willgearty