Mercurial > repos > rnateam > graphclust_preprocessing
comparison 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 |
comparison
equal
deleted
inserted
replaced
7:07ad2d77f28a | 8:a04e93fdb40a |
---|---|
54 chunks = re.findall(r'\d+', seq_string[i]) | 54 chunks = re.findall(r'\d+', seq_string[i]) |
55 | 55 |
56 for j in react_val[int(chunks[1])-1:int(chunks[2])]: | 56 for j in react_val[int(chunks[1])-1:int(chunks[2])]: |
57 id_s = int(j.split()[0]) | 57 id_s = int(j.split()[0]) |
58 | 58 |
59 if id_s > win_size: | 59 |
60 id_s = id_s - int(chunks[1]) | 60 id_s = id_s - int(chunks[1]) + 1 |
61 toWrite += str(id_s) + '\t' + j.split()[1] + "\n" | 61 toWrite += str(id_s) + '\t' + j.split()[1] + "\n" |
62 | 62 |
63 with open("shape_data_split.react", 'w') as out: | 63 with open("shape_data_split.react", 'w') as out: |
64 out.write(toWrite) | 64 out.write(toWrite) |