aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-11-28 22:04:09 +0000
committerzsloan2022-11-28 22:07:59 +0000
commitaa671932cd48410269868a80424484c13058a57e (patch)
tree91e6d193125daa96a06f9b8e8e1d92b3173e4e07
parent83d11d341d6d33c9fae361fd6c60549a678bb4cc (diff)
downloadgenenetwork2-aa671932cd48410269868a80424484c13058a57e.tar.gz
Fix bugs in show_corr_results.py
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index c24043cc..63be1d3f 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -79,8 +79,7 @@ def apply_filters(trait, target_trait, target_dataset, **filters):
def __location_filter__(location_type, location_chr,
min_location_mb, max_location_mb):
- if target_dataset["type"] in ["ProbeSet", "'Geno"] and location_type == "gene":
-
+ if target_dataset["type"] in ["ProbeSet", "Geno"] and location_type == "gene":
return (
((location_chr!=None) and (target_trait["chr"]!=location_chr))
or
@@ -233,7 +232,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
results_dict['pubmed_text'] = target_trait["pubmed_text"]
if target_trait["abbreviation"]:
- results_dict = target_trait['abbreviation']
+ results_dict['abbreviation'] = target_trait['abbreviation']
if target_trait["description"] == target_trait['description']:
results_dict['description'] = target_trait['description']
@@ -241,6 +240,8 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
if target_trait["mean"]:
results_dict['mean'] = f"{float(target_trait['mean']):.3f}"
+ results_dict['lrs_location'] = target_trait['lrs_location']
+
if target_trait["authors"]:
authors_list = target_trait['authors'].split(',')
results_dict['authors_display'] = ", ".join(
@@ -254,7 +255,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
except ValueError:
results_dict['lod_score'] = "N/A"
else:
- results_dict['lrs_location'] = target_trait['lrs_location']
+ results_dict['location'] = target_trait['location']
return results_dict