Taxonomy: fixed a bug un parental tree iterator
This commit is contained in:
@ -214,7 +214,7 @@ cdef class Taxonomy(OBIWrapper) :
|
|||||||
first ancestor to the root.
|
first ancestor to the root.
|
||||||
"""
|
"""
|
||||||
cdef Taxon taxon
|
cdef Taxon taxon
|
||||||
taxon = self.get_taxon_by_idx(taxid)
|
taxon = self.get_taxon_by_taxid(taxid)
|
||||||
if taxon is not None:
|
if taxon is not None:
|
||||||
while taxon.parent.taxid != 1: # TODO was 0 before?
|
while taxon.parent.taxid != 1: # TODO was 0 before?
|
||||||
yield taxon
|
yield taxon
|
||||||
|
Reference in New Issue
Block a user