obi annotate: fixed annotation at ranks
This commit is contained in:
@ -13,7 +13,8 @@ from obitools3.dms.capi.obiview cimport NUC_SEQUENCE_COLUMN, \
|
|||||||
ID_COLUMN, \
|
ID_COLUMN, \
|
||||||
DEFINITION_COLUMN, \
|
DEFINITION_COLUMN, \
|
||||||
QUALITY_COLUMN, \
|
QUALITY_COLUMN, \
|
||||||
COUNT_COLUMN
|
COUNT_COLUMN, \
|
||||||
|
TAXID_COLUMN
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
@ -175,8 +176,8 @@ def sequenceTaggerGenerator(config, taxo=None):
|
|||||||
counter[0]+=1
|
counter[0]+=1
|
||||||
|
|
||||||
for rank in annoteRank:
|
for rank in annoteRank:
|
||||||
if 'taxid' in seq:
|
if TAXID_COLUMN in seq:
|
||||||
taxid = seq['taxid']
|
taxid = seq[TAXID_COLUMN]
|
||||||
if taxid is not None:
|
if taxid is not None:
|
||||||
rtaxid = taxo.get_taxon_at_rank(taxid, rank)
|
rtaxid = taxo.get_taxon_at_rank(taxid, rank)
|
||||||
if rtaxid is not None:
|
if rtaxid is not None:
|
||||||
|
Reference in New Issue
Block a user