comparison SAINT_preprocessing.py @ 50:61b792d17660 draft

Uploaded
author bornea
date Thu, 19 May 2016 12:07:36 -0400
parents 6bb30aeb02bd
children 09b89febcf98
comparison
equal deleted inserted replaced
49:6bb30aeb02bd 50:61b792d17660
265 valid_prots.append(a) 265 valid_prots.append(a)
266 with open('inter.txt', 'w') as input_file: 266 with open('inter.txt', 'w') as input_file:
267 l = 0; a = 0 267 l = 0; a = 0
268 for bb in bait: 268 for bb in bait:
269 for lst in data: 269 for lst in data:
270 print lst
270 if lst[0] in valid_prots: 271 if lst[0] in valid_prots:
271 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + lst[0] + '\t' + lst[bait_index[l]] + '\n') 272 input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + lst[0] + '\t' + lst[bait_index[l]] + '\n')
272 a += 1 273 a += 1
273 if a == len(proteins): 274 if a == len(proteins):
274 l += 1; a = 0 275 l += 1; a = 0