Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pagination #2

Closed
maxogden opened this Issue Jun 20, 2014 · 2 comments

Comments

2 participants
@maxogden
Copy link
Contributor

maxogden commented Jun 20, 2014

for e.g. http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?&retmode=json&version=2.0&db=gds&term=GSE48968&field=ACCN&usehistory=y which has 2428 results but we can only do 1000 at a time we should implement a batched fetcher that basically paginates through all of the result ids

@bmpvieira

This comment has been minimized.

Copy link
Member

bmpvieira commented Jun 20, 2014

I'm not sure I get the issue, if I do:

bionode-ncbi search gds GSE48968 | wc

I get 2427 12786 1677177

I might be missing one result, need to check, but otherwise it fetches everything.

@bmpvieira

This comment has been minimized.

Copy link
Member

bmpvieira commented Apr 4, 2015

I've done bionode-ncbi search gds GSE48968 | json -ga0 uid > list1.txt and checked against the IDs in http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?&retmode=json&retmax=2428&version=2.0&db=gds&term=GSE48968&field=ACCN&usehistory=y and got exactly the same 2428 IDs. I'm still not sure why piping directly to wc gives 2427 instead of 2428, but at least pagination is working so I'm closing this.

@bmpvieira bmpvieira closed this Apr 4, 2015

@bmpvieira bmpvieira removed the ready label Apr 4, 2015

@bmpvieira bmpvieira self-assigned this Apr 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.