Closed tadeu95 closed 4 years ago
thanks for your question @tadeu95 !
First, what you're doing is not what you think you're doing.
There is no parameter fish
in the function bold_seqspec()
. So if we do
bold_seqspec(fish=groups, format = "tsv", marker="COI-5P", verbose = TRUE)
We can see that the actual request is
http://v4.boldsystems.org/index.php/API_Public/combined?marker=COI-5P&combined_download=tsv
Without any of your taxon names.
Second, if you do use the taxon = group
parameter the query is too large and the BOLD server returns an error but they don't do it correctly so the function can't return that information to the user. I know it's not ideal, but if you can use bold_specimens
and/or bold_seq
those seem to work fine on most of your taxa, maybe for the bigger one Actinopterygii you can break that up into smaller taxonomic groups that will work - to get smaller groups you can try e.g., downstream("Actinopterygii", db = "ncbi", downto = "class")
where downto
is the rank you want to get, so put some rank in there you want to get
So I corrected the script, it was a mistake, it's really "taxon=groups", I automatically replaced the word fish and forgot it was there. I didn't have the parameter "verbose" before and it worked well. What does verbose do? The thing is I've ran this function many times with those taxonomic groups and it worked perfectly, until yesterday when it started giving me these problems. And I've also tried it with smaller groups and it's still not working. I discovered that the BOLD API in the BOLD website isn't working well, do you think that could be the reason? Thank you for the answer
verbose is one of many curl options you can pass in to the http request call. see ?curl::curl_options
I've ran this function many times with those taxonomic groups and it worked perfectly, until yesterday when it started giving me these problems.
that probably means BOLD website is having problems - and at some point it will be fine again - of course this is out of our control unforunately
Ok, thank you for the answers, I'm sure it will be up again soon
I'm not being able to run the function because it returns a data frame with only 7 observations and 1 variable. The thing is I've ran the function times and times again and it worked fine. The function I used was this:
My session info:
Thank you so much in advance for any response