Python: embl parser: fixed a bug preventing taxids from being parsed
This commit is contained in:
@ -10,6 +10,7 @@ Created on June 12th 2018
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
from obitools3.utils cimport str2bytes
|
||||||
|
|
||||||
|
|
||||||
_featureMatcher = re.compile(b'^(FT| ) [^ ].+\n((FT| ) .+\n)+',re.M)
|
_featureMatcher = re.compile(b'^(FT| ) [^ ].+\n((FT| ) .+\n)+',re.M)
|
||||||
@ -65,6 +66,8 @@ def qualifierIterator(qualifiers):
|
|||||||
value = t[1].replace(b'\n',b' ')
|
value = t[1].replace(b'\n',b' ')
|
||||||
try:
|
try:
|
||||||
value = eval(value)
|
value = eval(value)
|
||||||
|
if type(value) == str:
|
||||||
|
value = str2bytes(value)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
t = (t[0],value)
|
t = (t[0],value)
|
||||||
|
Reference in New Issue
Block a user