Repository 'saint_preprocessing'
hg clone https://toolshed.g2.bx.psu.edu/repos/bornea/saint_preprocessing

Changeset 36:bc9c7764cc2f (2016-05-19)
Previous changeset 35:26cc583a4ae4 (2016-05-19) Next changeset 37:f988db1d36dc (2016-05-19)
Commit message:
Uploaded
modified:
SAINT_preprocessing_mq_pep.py
b
diff -r 26cc583a4ae4 -r bc9c7764cc2f SAINT_preprocessing_mq_pep.py
--- a/SAINT_preprocessing_mq_pep.py Thu May 19 10:02:48 2016 -0400
+++ b/SAINT_preprocessing_mq_pep.py Thu May 19 10:25:05 2016 -0400
[
@@ -253,6 +253,16 @@
     errors = []
     for e in err:
         errors.append(e[0])
+    for a in proteins:
+        a = a.replace("\n", "")
+        # Remove \n for input into function.
+        a = a.replace("\r", "")
+        # Ditto for \r.
+        seq = get_info(a).seqlength
+        GN = get_info(a).genename
+        if seq != 'NA':
+            if GN != 'NA':
+                erros.append[a]
     with open('inter.txt', 'w') as input_file:
         l = 0; a = 0
         for bb in bait: