ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

How to deal with multiple taxon ids for one sequence id #87

Open zachary-foster opened 6 years ago

zachary-foster commented 6 years ago

Sometimes there are multiple taxon ids for one sequence id. This currently breaks lookup_tax_data. Another complication is that NCBI does not provide any info on which query goes with which output, so we can only do one id per query given that there could be multiple results per id.

So there is two options:

1) duplicate the query input for each output 2) return just the first

1 is probably the most robust, but it could be a bit more work to implement than I want to do right now. I think I will do 2 for now to get things working, but keep 1 in mind for the future.

sckott commented 6 years ago

Sounds good to me.

Maybe we'll find a better solution in the future, and/or maybe NCBI will fix it