Fixed issue where ambiguous taxa names got the same internal ID
commit99dca5e1603b650f3eb738050b53d00f181bc64f
authorFlorent Angly <florent.angly@gmail.com>
Thu, 27 Jun 2013 05:41:12 +0000 (27 15:41 +1000)
committerChris Fields <cjfields@bioperl.org>
Fri, 12 Jul 2013 02:19:17 +0000 (11 21:19 -0500)
tree73810fa45c94a2b675112b0250d2a45b52e1a7fa
parent0c5f6d0dd7f9cfc7cf2c4e4eab29050d9a1d2cbe
Fixed issue where ambiguous taxa names got the same internal ID

Change Bio::DB::Taxonomy::_handle_internal_id() so that it first looks up taxa
by taxon ID, and then, if unsuccessful and required by the user, by name and rank.
This allows to disambiguate taxa that have the same scientific name, but are
really different taxa (different taxon ID and internal ID).
Bio/DB/Taxonomy.pm
t/RemoteDB/Taxonomy.t