aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-08-12 23:20:28 +0000
committerzsloan2021-08-12 23:20:28 +0000
commit11d5e9ffbf48c6a2fa7a59f10a9d7fe44cee0c23 (patch)
treef5f0c8eed2a5c228c894320a3a7f1691f66c9ff1
parent810b2ace0a9cb2511cf0ef6f0c01f70a0ce11915 (diff)
downloadgenenetwork2-11d5e9ffbf48c6a2fa7a59f10a9d7fe44cee0c23.tar.gz
Get list of study titles to use for the dropdown menu and store the full list of study samplelists as a hddn input (don't like this, but no easy alternative right now)
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index d3356bc3..bc97d417 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -192,7 +192,8 @@ class ShowTrait:
[self.dataset.species.chromosomes.chromosomes[this_chr].name, i])
self.genofiles = self.dataset.group.get_genofiles()
- self.study_samplelists = self.dataset.group.get_study_samplelists()
+ study_samplelist_json = self.dataset.group.get_study_samplelists()
+ self.study_samplelists = [study["title"] for study in study_samplelist_json]
# ZS: No need to grab scales from .geno file unless it's using
# a mapping method that reads .geno files
@@ -281,6 +282,7 @@ class ShowTrait:
hddn['selected_chr'] = -1
hddn['mapping_display_all'] = True
hddn['suggestive'] = 0
+ hddn['study_samplelists'] = json.dumps(study_samplelist_json)
hddn['num_perm'] = 0
hddn['categorical_vars'] = ""
if categorical_var_list: