diff options
author | zsloan | 2015-07-01 22:30:31 +0000 |
---|---|---|
committer | zsloan | 2015-07-01 22:30:31 +0000 |
commit | bb93bb59541ecfc0d97fd7b66492a6778aca3aa2 (patch) | |
tree | 441ca812f7c45a9c72ab1e4913bc919615059b00 /wqflask | |
parent | 5e446f6b2e32cd48806589a3624cd9aff74f6534 (diff) | |
download | genenetwork2-bb93bb59541ecfc0d97fd7b66492a6778aca3aa2.tar.gz |
Needed to add a couple parenthesis for transLRS searches
Diffstat (limited to 'wqflask')
-rwxr-xr-x | wqflask/wqflask/do_search.py | 4 |
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), |