Previous changeset 45:0eae5a2c37d4 (2016-05-19) Next changeset 47:8ca1d3bc5906 (2016-05-19) |
Commit message:
Uploaded |
modified:
SAINT_preprocessing_mq_pep.py |
b |
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 |