aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2019-12-11 11:00:14 -0600
committerzsloan2019-12-11 11:00:14 -0600
commitcd08e12d586f21053afdcd3517c2bf3e698fc1cc (patch)
tree9a8b48e6d8e8909a9dbd81f81f541283ad9902d7
parenta9bbef5ef25deb39bae030a147fc15e31fa7ac3a (diff)
downloadgenenetwork2-cd08e12d586f21053afdcd3517c2bf3e698fc1cc.tar.gz
Missed a couple more places where I needed to account for letter chromosomes
-rw-r--r--wqflask/wqflask/do_search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index 42aca2cb..1fafd181 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -634,7 +634,7 @@ class CisTransLrsSearch(DoSearch):
)
else:
if chromosome:
- location_clause = "(%s.Chr = %s and %s.Chr = Geno.Chr and ABS(%s.Mb-Geno.Mb) %s %s) or (%s.Chr != Geno.Chr and Geno.Chr = %s)" % (escape(self.dataset.type),
+ location_clause = "(%s.Chr = '%s' and %s.Chr = Geno.Chr and ABS(%s.Mb-Geno.Mb) %s %s) or (%s.Chr != Geno.Chr and Geno.Chr = '%s')" % (escape(self.dataset.type),
chromosome,
escape(self.dataset.type),
escape(self.dataset.type),