aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-11-25 13:16:26 -0600
committerzsloan2020-11-25 13:16:26 -0600
commita1563aee47a54d5ff4253e1da7e851afe28805c0 (patch)
tree410167bbda2ea7a31b11fde8baab85068c7fa6fb /wqflask
parentab6681e545bd4c84e1f74107b90ea52f7d2ca24c (diff)
downloadgenenetwork2-a1563aee47a54d5ff4253e1da7e851afe28805c0.tar.gz
Added code for passing around form parameters related to manhattan plot coloration to run_mapping.py and views.py
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py7
-rw-r--r--wqflask/wqflask/views.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index 31d6a67c..c474e0e0 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -138,7 +138,12 @@ class RunMapping(object):
mapping_results_filename = self.dataset.group.name + "_" + ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(6))
self.mapping_results_path = "{}{}.csv".format(webqtlConfig.GENERATED_IMAGE_DIR, mapping_results_filename)
- if start_vars['manhattan_plot'] == "true":
+ if start_vars['manhattan_plot']:
+ self.color_scheme = "alternating"
+ if "color_scheme" in start_vars:
+ self.color_scheme = start_vars['color_scheme']
+ if self.color_scheme == "single":
+ self.manhattan_single_color = start_vars['manhattan_single_color']
self.manhattan_plot = True
else:
self.manhattan_plot = False
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index b7c4d142..7118bab7 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -718,6 +718,8 @@ def mapping_results_page():
'maf',
'use_loco',
'manhattan_plot',
+ 'color_scheme',
+ 'manhattan_single_color',
'control_marker',
'control_marker_db',
'do_control',