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

how many entries can be queried in UniprotkbClient.fetch_many(entry_list) at once. #39

Open
Huilin-Li opened this issue Sep 8, 2024 · 1 comment

Comments

@Huilin-Li
Copy link

Huilin-Li commented Sep 8, 2024

I am curious to know how many entries I can query in UniprotkbClient.fetch_many(entry_list) at once. Thanks!

In my test, I can query 1000 entries in UniprotkbClient.fetch_many(entry_list) # len(entry_list)=1000 is fine. But 2000 will give this error:
image

@Huilin-Li Huilin-Li changed the title how many entries can be queries in UniprotkbClient.fetch_many(list) at once. how many entries can be queried in UniprotkbClient.fetch_many(entry_list) at once. Sep 8, 2024
@multimeric
Copy link
Owner

I don't actually know the limit, it's not formalised anywhere in the docs. Although it could be based on the number of accessions, it's also possible that it's just rejecting requests that are too long. A URL containing 2000 accessions seems like it would exceed the typical 8kb GET request limit that some web servers enforce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants