You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an R app that given a list of species-genus can search through different databases. In case there are no results I am using taxize to go up the taxonomic tree (genus, family, order, class, phylum, and domain).
I have a long list of species-genus pairs (692), but the process crashes at random points while iterating through the list. I’ve run the same search multiple times, and the crashes don’t appear to be consistent. In other words, it doesn’t seem to be related to a specific species-genus pair, as far as I can tell. The error I am receiving is HTTP 400, which typically indicates an issue with the query. However, I find it unlikely that the problem is on our end, as the query is quite simple and the error is not reproducible.
The code below is where we encounter an HTTP 400 error. As shown, we are simply calling the tax_name function and providing an organismName, the desired taxonomic ranks, and the database.
match <- tax_name( sci = organismName, get = c("genus", "family", "order", "class", "phylum", "domain"), db = "ncbi", messages = FALSE)
I wrapped this code in a try-catch block and printed the organismName being passed to tax_name, along with the resulting error. I also re-printed the organismName within the error handling section to confirm that it is indeed failing with that specific species.
Has this issue been encountered before? Any help would be appreciated. Thank you!
Hello,
I have an R app that given a list of species-genus can search through different databases. In case there are no results I am using taxize to go up the taxonomic tree (genus, family, order, class, phylum, and domain).
I have a long list of species-genus pairs (692), but the process crashes at random points while iterating through the list. I’ve run the same search multiple times, and the crashes don’t appear to be consistent. In other words, it doesn’t seem to be related to a specific species-genus pair, as far as I can tell. The error I am receiving is HTTP 400, which typically indicates an issue with the query. However, I find it unlikely that the problem is on our end, as the query is quite simple and the error is not reproducible.
The code below is where we encounter an HTTP 400 error. As shown, we are simply calling the tax_name function and providing an organismName, the desired taxonomic ranks, and the database.
match <- tax_name( sci = organismName, get = c("genus", "family", "order", "class", "phylum", "domain"), db = "ncbi", messages = FALSE)
I wrapped this code in a try-catch block and printed the organismName being passed to tax_name, along with the resulting error. I also re-printed the organismName within the error handling section to confirm that it is indeed failing with that specific species.
Has this issue been encountered before? Any help would be appreciated. Thank you!
Session Info
The text was updated successfully, but these errors were encountered: