Closed VGalata closed 6 years ago
thanks for your question @VGalata
Get an NCBI API key at xxx
Then store an environment variable with the name ENTREZ_KEY
. Can do that in your current session like Sys.setenv(ENTREZ_KEY = "yourkey")
, or permanently across all R sessions (the preferred way) by putting an entry like ENTREZ_KEY=yourkey
in your .Renviron
file or similar file like .bash_profile
or .zshrc
(not sure what the file is called on windows, see ?Startup
for more info)
Thanks for the report. It should work without a key as well, but I just checked and it is not for some reason. It might be we are making two back-to-back requests using different services without the 0.3 sec pause somewhere. Perhaps in the code I recently changed in taxize? I will look into it.
@sckott Thank you very much for the advice! Settings the environment variable (in my case in the .bashrc
file) solved the issue.
@zachary-foster Thanks for looking into it!
I use
taxa::extract_tax_data
to retrieve the taxonomy of BLAST search hits from the NCBI database. It worked great until last week. However, it stopped working for me saying that I need to provide an ENTREZ API key. Unfortunately, I could not find any matching parameter for an API key intaxa::extract_tax_data
.Code:
Output:
Used version
taxa_0.2.0.9113
Thank you in advance!