changeset 5:8159dab5dbdb draft

Bug fix to pal_filter.py.
author pjbriggs
date Tue, 12 Apr 2016 05:53:41 -0400
parents cb56cc1d5c39
children a73c48890bde
files pal_filter.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pal_filter.py	Mon Mar 21 06:52:43 2016 -0400
+++ b/pal_filter.py	Tue Apr 12 05:53:41 2016 -0400
@@ -456,8 +456,10 @@
 
                 # check that both primer sequences can be seen in the
                 # assembled contig
-                if y or ReverseComplement1(y) in assembly_no_id and z or \
-                                    ReverseComplement1(z) in assembly_no_id:
+                if ((y in assembly_no_id) or \
+                    (ReverseComplement1(y) in assembly_no_id)) and \
+                    ((z in assembly_no_id) or \
+                    (ReverseComplement1(z) in assembly_no_id)):
                     if y in assembly_no_id:
                         # get the positions of the primers in the assembly
                         # (can be used to predict fragment length)