Mercurial > repos > bornea > saint_preprocessing
comparison SAINT_preprocessing_mq_pep.py @ 46:5b2a60b59f46 draft
Uploaded
author | bornea |
---|---|
date | Thu, 19 May 2016 10:59:04 -0400 |
parents | 0eae5a2c37d4 |
children | 8ca1d3bc5906 |
comparison
equal
deleted
inserted
replaced
45:0eae5a2c37d4 | 46:5b2a60b59f46 |
---|---|
267 print valid_prots | 267 print valid_prots |
268 with open('inter.txt', 'w') as input_file: | 268 with open('inter.txt', 'w') as input_file: |
269 l = 0; a = 0 | 269 l = 0; a = 0 |
270 for bb in bait: | 270 for bb in bait: |
271 for lst in data: | 271 for lst in data: |
272 if valid_prots[a] not in errors: | 272 if lst[0] in valid_prots: |
273 print lst | 273 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + lst[0] + '\t' + lst[bait_index[l]] + '\n') |
274 print l | |
275 print a | |
276 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n') | |
277 print(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n') | |
278 a += 1 | 274 a += 1 |
279 if a == len(valid_prots): | 275 if a == len(valid_prots): |
280 l += 1; a = 0 | 276 l += 1; a = 0 |
281 | 277 |
282 | 278 |