From 91ca999f8d24ab135d3fa31bbbbd97cd0648889c Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 3 Jun 2021 20:41:43 +0000 Subject: Change LRS scores of 0.000 to N/A since they're listed wrong in the DB + fix issue where locus_chr and locus_mb pointing to the wrong positions in the query results --- wqflask/wqflask/gsearch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py index e541b705..2516e4fb 100644 --- a/wqflask/wqflask/gsearch.py +++ b/wqflask/wqflask/gsearch.py @@ -244,13 +244,16 @@ class GSearch: if line[10] != "" and line[10] != None: this_trait['LRS_score_repr'] = f"{line[10]:.3f}" + # Some Max LRS values in the DB are wrongly listed as 0.000, but shouldn't be displayed + if this_trait['LRS_score_repr'] == "0.000": + this_trait['LRS_score_repr'] = "N/A" if line[11] != "" and line[11] != None: this_trait['additive'] = f"{line[11]:.3f}" if line[13] != "" and line[13] != None: this_trait['mean'] = f"{line[13]:.3f}" - locus_chr = line[16] - locus_mb = line[17] + locus_chr = line[15] + locus_mb = line[16] max_lrs_text = "N/A" if locus_chr and locus_mb: -- cgit v1.2.3