From 7fa51b0f03bf934f8fd3bb060bb97d51140dc536 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 20 Sep 2022 22:13:25 +0000
Subject: Make Search and Global Search Max -logP columns uniform
---
wqflask/wqflask/gsearch.py | 8 ++++----
wqflask/wqflask/templates/gsearch_gene.html | 4 ++--
wqflask/wqflask/templates/gsearch_pheno.html | 4 ++--
wqflask/wqflask/templates/search_result_page.html | 8 ++++----
4 files changed, 12 insertions(+), 12 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index 6289c2b5..b2224831 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -99,7 +99,7 @@ class GSearch:
this_trait['mean'] = "N/A"
if line[11] != "" and line[11] != None:
- this_trait['LRS_score_repr'] = f"{line[11]:.3f}"
+ this_trait['LRS_score_repr'] = f"{float(line[11]) / 4.61:.1f}"
if line[14] != "" and line[14] != None:
this_trait['additive'] = f"{line[14]:.3f}"
if line[10] != "" and line[10] != None:
@@ -147,8 +147,8 @@ class GSearch:
'Description',
'Location',
'Mean',
- 'Max LRS',
- 'Max LRS Location',
+ '-logP',
+ '-logP Location',
'Additive Effect']
self.header_data_names = [
@@ -241,7 +241,7 @@ class GSearch:
trait_dict['mean'] = "N/A"
if line[10] != "" and line[10] != None:
- trait_dict['LRS_score_repr'] = f"{line[10]:.3f}"
+ trait_dict['LRS_score_repr'] = f"{float(line[10]) / 4.61:.1f}"
# Some Max LRS values in the DB are wrongly listed as 0.000, but shouldn't be displayed
if trait_dict['LRS_score_repr'] == "0.000":
trait_dict['LRS_score_repr'] = "N/A"
diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html
index 39c46f02..0e96f673 100644
--- a/wqflask/wqflask/templates/gsearch_gene.html
+++ b/wqflask/wqflask/templates/gsearch_gene.html
@@ -171,7 +171,7 @@
'data': "mean"
},
{
- 'title': "Max
LRS?",
+ 'title': "