changeset 9:0690d59881b9 draft

planemo upload for repository https://github.com/eteriSokhoyan/galaxytools/tree/branchForIterations/tools/GraphClust commit 65d322f9ab2f24d65b307f3553589149a1d678d5
author rnateam
date Thu, 01 Jun 2017 08:09:49 -0400
parents a04e93fdb40a
children 16bcaef3dc1e
files splitSHAPE.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/splitSHAPE.py	Wed May 24 09:57:18 2017 -0400
+++ b/splitSHAPE.py	Thu Jun 01 08:09:49 2017 -0400
@@ -36,7 +36,7 @@
     lines = content.split('\n')
     for line in lines:
         if pattern.match(line):
-            line = line.replace('>','').strip()
+            line = line.replace('>','').split()[0]
             react_arr=[]
             react_dict[line] = react_arr
             continue
@@ -47,7 +47,7 @@
 chunks = []
 for i in range(len(orig_id)):
     if not orig_id[i] in react_dict:
-        raise RuntimeError('Error key {} not found'.format(orig_id))
+        raise RuntimeError('Error key {} {} not found'.format(i, orig_id[i]))
 
     react_val = react_dict[orig_id[i]]
     toWrite += '>' + str(seq_id[i]) + " " + seq_string[i] + "\n"