Entering edit mode
6 months ago
xonq
▴
60
NCBI recently offloaded logging in to other websites. How do we reliably set the email and API key variables to use Entrez with the API key? I have attempted my legacy NCBI login and it appears to timeout after too many queries in a script that used to work reliably.
Using BioPython, the Entrez login is done by using Bio.Entrez.email = email_str
and Bio.Entrez.api_key = api_key
There is no log in per se AFAIK. You simply provide those two strings when making a query. Have you tried to make sure that connectivity to NCBI is intact? I normally use EntrezDirect where you can simply set a system variable called
NCBI_API_KEY
that works.the question I am asking is what is the new email we should use to fill those variables because NCBI changed how they reference emails. it used to be that you login to NCBI with a specific email address linked to an API key, now NCBI uses external logins, so what is the appropriate email to use?
If you are now logging in with a separate email address then request a new API key for that address.
I am using the same email, but through a google account. Perhaps I am mistaken with my script, but it doesn't appear to be allowing me to use the API key query rate.
Hey, I don't think you need to include your account email according to the E-utility document.