comparison SAINT_preprocessing_mq_pep.py @ 42:13969f07b129 draft

Uploaded
author bornea
date Thu, 19 May 2016 10:41:09 -0400
parents ca0649bf68e3
children 1341c966a016
comparison
equal deleted inserted replaced
41:ca0649bf68e3 42:13969f07b129
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' + valid_prots[a] + '\t' 272 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n')
273 + lst[bait_index[l]] + '\n')
274 a += 1 273 a += 1
275 if a == len(valid_prots): 274 if a == len(valid_prots):
276 l += 1; a = 0 275 l += 1; a = 0
277 276
278 277