Repository 'graphclust_preprocessing'
hg clone https://toolshed.g2.bx.psu.edu/repos/rnateam/graphclust_preprocessing

Changeset 9:0690d59881b9 (2017-06-01)
Previous changeset 8:a04e93fdb40a (2017-05-24) Next changeset 10:16bcaef3dc1e (2017-06-01)
Commit message:
planemo upload for repository https://github.com/eteriSokhoyan/galaxytools/tree/branchForIterations/tools/GraphClust commit 65d322f9ab2f24d65b307f3553589149a1d678d5
modified:
splitSHAPE.py
b
diff -r a04e93fdb40a -r 0690d59881b9 splitSHAPE.py
--- 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"