aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-12-04 10:50:00 -0600
committerzsloan2019-12-04 10:50:00 -0600
commit3d18e152df759aa4f20eaea106a1eba569d41cc4 (patch)
tree9333e548cfe9742ced84e1b5fe483cb9e096e8c2 /wqflask
parentb7adf99fa3fbadc13cc23b8f2671ad5cffd3f09c (diff)
downloadgenenetwork2-3d18e152df759aa4f20eaea106a1eba569d41cc4.tar.gz
Fixed error that sometimes occurs if there's no mean expression and changed index page header style a little
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py4
-rwxr-xr-xwqflask/wqflask/templates/index_page_orig.html2
2 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 37603873..7f60a809 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -497,6 +497,7 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
#LRS and its location
trait.LRS_score_repr = "N/A"
trait.LRS_location_repr = "N/A"
+ trait.locus = trait.locus_chr = trait.locus_mb = trait.lrs = trait.pvalue = trait.mean = trait.additive = ""
if dataset.type == 'ProbeSet' and not trait.cellid:
query = """
SELECT
@@ -528,9 +529,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
trait.locus = trait.locus_chr = trait.locus_mb = trait.additive = ""
else:
trait.locus = trait.locus_chr = trait.locus_mb = trait.additive = ""
- else:
- trait.locus = trait.locus_chr = trait.locus_mb = trait.lrs = trait.pvalue = trait.mean = trait.additive = ""
-
if dataset.type == 'Publish':
query = """
diff --git a/wqflask/wqflask/templates/index_page_orig.html b/wqflask/wqflask/templates/index_page_orig.html
index 815eb096..8c7ea3cf 100755
--- a/wqflask/wqflask/templates/index_page_orig.html
+++ b/wqflask/wqflask/templates/index_page_orig.html
@@ -25,7 +25,7 @@
<div class="col-xs-5" style="min-width: 530px; max-width: 550px;">
<section id="search">
- <div class="page-header">
+ <div>
<h1>Select and search</h1>
</div>
<form method="get" action="/search" target="_blank" name="SEARCHFORM">