ropensci / bold

Interface to the Bold Systems barcode webservice
https://docs.ropensci.org/bold
Other
17 stars 11 forks source link

Can't manually specify "COX1" as database #97

Closed ryandkuster closed 1 year ago

ryandkuster commented 1 year ago

COX1 is the default database and works if no db is specified, but when manually specifying the db as "COX1" as follows:

bold_identify(sequences = df$seqs, db="COX1")

this error returns:

Error: 'cox1' is not a valid db
Choices are 'COX1', 'COX1_SPECIES', 'COX1_SPECIES_PUBLIC' or 'COX1_L640bp'

I think the "b_get_db" function in utils_assert.R returns "COX1" as lowercase, which then fails in the "b_validate" check.

Using the other database arguments appears to work correctly with no errors.

Thanks!

salix-d commented 1 year ago

Thanks for spotting that! Should be fixed now.