git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@117 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
@ -300,9 +300,9 @@ def parseFasta(seq):
|
|||||||
field = title[1].split('; ')
|
field = title[1].split('; ')
|
||||||
else:
|
else:
|
||||||
field=[]
|
field=[]
|
||||||
info = dict(x.split('=') for x in field if '=' in x)
|
info = dict(x.split('=',1) for x in field if '=' in x)
|
||||||
definition = ' '.join([x for x in field if '=' not in x])
|
definition = ' '.join([x for x in field if '=' not in x])
|
||||||
seq=(''.join([x.strip() for x in seq[1:]])).upper()
|
seq=(''.join([x.strip() for x in seq[1:]])).upper()
|
||||||
return id,seq,definition,info
|
return id,seq,definition,info
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user