comparison SAINT_preprocessing_mq_pep.py @ 36:bc9c7764cc2f draft

Uploaded
author bornea
date Thu, 19 May 2016 10:25:05 -0400
parents 26cc583a4ae4
children f988db1d36dc
comparison
equal deleted inserted replaced
35:26cc583a4ae4 36:bc9c7764cc2f
251 bait_index.append(header.index(bait_item[0])) 251 bait_index.append(header.index(bait_item[0]))
252 proteins = read_MaxQuant(MaxQuant_input).proteins 252 proteins = read_MaxQuant(MaxQuant_input).proteins
253 errors = [] 253 errors = []
254 for e in err: 254 for e in err:
255 errors.append(e[0]) 255 errors.append(e[0])
256 for a in proteins:
257 a = a.replace("\n", "")
258 # Remove \n for input into function.
259 a = a.replace("\r", "")
260 # Ditto for \r.
261 seq = get_info(a).seqlength
262 GN = get_info(a).genename
263 if seq != 'NA':
264 if GN != 'NA':
265 erros.append[a]
256 with open('inter.txt', 'w') as input_file: 266 with open('inter.txt', 'w') as input_file:
257 l = 0; a = 0 267 l = 0; a = 0
258 for bb in bait: 268 for bb in bait:
259 for lst in data: 269 for lst in data:
260 if proteins[a] not in errors: 270 if proteins[a] not in errors: