From 3d18e152df759aa4f20eaea106a1eba569d41cc4 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 4 Dec 2019 10:50:00 -0600 Subject: Fixed error that sometimes occurs if there's no mean expression and changed index page header style a little --- wqflask/base/trait.py | 4 +--- wqflask/wqflask/templates/index_page_orig.html | 2 +- 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 @@