Commit 8f617231 by Eric Coissac

Patch a bug in the getTaxid function

parent 21ac43ca
......@@ -240,10 +240,9 @@ def getGenusTaxid(tax, species_name, ancestor):
def getTaxid(tax, name, ancestor):
taxid = tax.findTaxonByName(name)[0]
taxid = tax.findTaxonByName(name)[0][0]
if ancestor != None and not tax.isAncestor(ancestor, taxid) :
raise KeyError()
return taxid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment