changeset 46:5b2a60b59f46 draft

Uploaded
author bornea
date Thu, 19 May 2016 10:59:04 -0400
parents 0eae5a2c37d4
children 8ca1d3bc5906
files SAINT_preprocessing_mq_pep.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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