comparison SAINT_preprocessing_mq_pep.py @ 41:ca0649bf68e3 draft

Uploaded
author bornea
date Thu, 19 May 2016 10:38:34 -0400
parents 8102ffab0f85
children 13969f07b129
comparison
equal deleted inserted replaced
40:8102ffab0f85 41:ca0649bf68e3
267 with open('inter.txt', 'w') as input_file: 267 with open('inter.txt', 'w') as input_file:
268 l = 0; a = 0 268 l = 0; a = 0
269 for bb in bait: 269 for bb in bait:
270 for lst in data: 270 for lst in data:
271 if valid_prots[a] not in errors: 271 if valid_prots[a] not in errors:
272 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + proteins[a] + '\t' 272 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t'
273 + lst[bait_index[l]] + '\n') 273 + lst[bait_index[l]] + '\n')
274 a += 1 274 a += 1
275 if a == len(valid_prots): 275 if a == len(valid_prots):
276 l += 1; a = 0 276 l += 1; a = 0
277 277