Taxonomy: fixed a bug un parental tree iterator

This commit is contained in:
Celine Mercier
2017-11-24 17:55:17 +01:00
parent 38fef5b9d4
commit ee5d647d0d

View File

@ -214,7 +214,7 @@ cdef class Taxonomy(OBIWrapper) :
first ancestor to the root.
"""
cdef Taxon taxon
taxon = self.get_taxon_by_idx(taxid)
taxon = self.get_taxon_by_taxid(taxid)
if taxon is not None:
while taxon.parent.taxid != 1: # TODO was 0 before?
yield taxon