# HG changeset patch # User bornea # Date 1463669944 14400 # Node ID 5b2a60b59f466b0f3e41ac8dc8636851070ccc5f # Parent 0eae5a2c37d469e9aa67feb0caf97f5dc5cbd157 Uploaded diff -r 0eae5a2c37d4 -r 5b2a60b59f46 SAINT_preprocessing_mq_pep.py --- a/SAINT_preprocessing_mq_pep.py Thu May 19 10:55:39 2016 -0400 +++ b/SAINT_preprocessing_mq_pep.py Thu May 19 10:59:04 2016 -0400 @@ -269,12 +269,8 @@ l = 0; a = 0 for bb in bait: for lst in data: - if valid_prots[a] not in errors: - print lst - print l - print a - input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n') - print(header[bait_index[l]] + '\t' + bb[1] + '\t' + valid_prots[a] + '\t' + lst[bait_index[l]] + '\n') + if lst[0] in valid_prots: + input_file.write(header[bait_index[l]] + '\t' + bb[1] + '\t' + lst[0] + '\t' + lst[bait_index[l]] + '\n') a += 1 if a == len(valid_prots): l += 1; a = 0