From 45c85a9f3255375f89e35c91a23531777c822efa Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 24 Sep 2007 10:06:00 +0000 Subject: [PATCH] git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@117 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- tools/ecoPCRFormat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ecoPCRFormat.py b/tools/ecoPCRFormat.py index 3acb26c..cbc20af 100755 --- a/tools/ecoPCRFormat.py +++ b/tools/ecoPCRFormat.py @@ -300,9 +300,9 @@ def parseFasta(seq): field = title[1].split('; ') else: 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]) - 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