about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2015-07-01 22:30:31 +0000
committerzsloan2015-07-01 22:30:31 +0000
commitbb93bb59541ecfc0d97fd7b66492a6778aca3aa2 (patch)
tree441ca812f7c45a9c72ab1e4913bc919615059b00
parent5e446f6b2e32cd48806589a3624cd9aff74f6534 (diff)
downloadgenenetwork2-bb93bb59541ecfc0d97fd7b66492a6778aca3aa2.tar.gz
Needed to add a couple parenthesis for transLRS searches
-rwxr-xr-xwqflask/wqflask/do_search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index 3d1ad583..9e88215a 100755
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -667,8 +667,8 @@ class CisTransLrsSearch(DoSearch):
             where_clause = sub_clause + """
                     %sXRef.Locus = Geno.name and
                     Geno.SpeciesId = %s and
-                    (ABS(%s.Mb-Geno.Mb) %s %s and %s.Chr = Geno.Chr) or
-                    (%s.Chr != Geno.Chr)""" % (
+                    ((ABS(%s.Mb-Geno.Mb) %s %s and %s.Chr = Geno.Chr) or
+                    (%s.Chr != Geno.Chr))""" % (
                         escape(self.dataset.type),
                         escape(str(self.species_id)),
                         escape(self.dataset.type),