diff splitSHAPE.py @ 8:a04e93fdb40a draft

planemo upload for repository https://github.com/eteriSokhoyan/galaxytools/tree/branchForIterations/tools/GraphClust commit 9a3dc91fa984be18fabc0d968360634d787c9589
author rnateam
date Wed, 24 May 2017 09:57:18 -0400
parents 07ad2d77f28a
children 0690d59881b9
line wrap: on
line diff
--- a/splitSHAPE.py	Mon May 22 12:45:22 2017 -0400
+++ b/splitSHAPE.py	Wed May 24 09:57:18 2017 -0400
@@ -56,8 +56,8 @@
     for j in react_val[int(chunks[1])-1:int(chunks[2])]:
         id_s = int(j.split()[0])
 
-        if id_s > win_size:
-            id_s = id_s - int(chunks[1])
+
+        id_s = id_s - int(chunks[1]) + 1
         toWrite += str(id_s) + '\t' + j.split()[1] + "\n"
 
 with open("shape_data_split.react", 'w') as out: