aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-03-18 08:51:55 +0300
committerPjotr Prins2018-03-26 09:29:29 +0000
commitb50e82383bfbf44e35f7376bbd13dd68e4e1f201 (patch)
treeac2f884da36265b80fbcb8c1ccc7150a3b6d56df /wqflask
parent8ff3dbd9bd5737b6cd0df8d279a70073c40786ec (diff)
downloadgenenetwork2-b50e82383bfbf44e35f7376bbd13dd68e4e1f201.tar.gz
Check that key exists before using it
* Ensure the key exists in the json object/dictionary, before trying to use it to retrieve a value.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/marker_regression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/marker_regression.py b/wqflask/wqflask/marker_regression/marker_regression.py
index db4f8f46..3ec61e55 100644
--- a/wqflask/wqflask/marker_regression/marker_regression.py
+++ b/wqflask/wqflask/marker_regression/marker_regression.py
@@ -114,7 +114,7 @@ class MarkerRegression(object):
self.num_perm = 0
self.perm_output = []
self.bootstrap_results = []
- self.covariates = start_vars['covariates']
+ self.covariates = start_vars['covariates'] if "covariates" in start_vars else None
#ZS: This is passed to GN1 code for single chr mapping
self.selected_chr = -1