comparison SAINT_preprocessing_mq_pep.py @ 44:b95bf0251ffd draft

Uploaded
author bornea
date Thu, 19 May 2016 10:49:51 -0400
parents 1341c966a016
children 0eae5a2c37d4
comparison
equal deleted inserted replaced
43:1341c966a016 44:b95bf0251ffd
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 valid_prots[a] not in errors:
273 print l
274 print a
273 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n') 275 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n')
276 print(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n')
274 a += 1 277 a += 1
275 if a == len(valid_prots): 278 if a == len(valid_prots):
276 l += 1; a = 0 279 l += 1; a = 0
277 280
278 281