Taxonomy: fixed a bug un parental tree iterator
This commit is contained in:
1 parent
38fef5b9d4
commit
ee5d647d0d
1 file changed
+1
-1
@@ -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