aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-07-26 20:50:31 +0000
committerzsloan2021-07-26 20:50:31 +0000
commitcb5c508a9cf29db4376eaae3080238d6a4f25792 (patch)
treeeb51c1c4436a20d7ec98db07c609113345b4734d /wqflask
parent427071fc797d6208f9833401833f17d929f11343 (diff)
downloadgenenetwork2-cb5c508a9cf29db4376eaae3080238d6a4f25792.tar.gz
Added check for pair_scan in start_vars
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index f601201b..fcb98db9 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -126,8 +126,6 @@ class RunMapping:
self.use_loco = None
self.suggestive = ""
self.significant = ""
- # Initializing this since it is checked in views to determine which template to use
- self.pair_scan = False
if 'transform' in start_vars:
self.transform = start_vars['transform']
else:
@@ -239,8 +237,9 @@ class RunMapping:
else:
self.method = "em"
self.model = start_vars['mapmodel_rqtl_geno']
- # if start_vars['pair_scan'] == "true":
- # self.pair_scan = True
+ self.pair_scan = False
+ if 'pair_scan' in start_vars:
+ self.pair_scan = True
if self.permCheck and self.num_perm > 0:
self.perm_output, self.suggestive, self.significant, results = rqtl_mapping.run_rqtl(
self.this_trait.name, self.vals, self.samples, self.dataset, self.mapping_scale, self.model, self.method, self.num_perm, perm_strata, self.do_control, self.control_marker, self.manhattan_plot, self.covariates)