diff options
author | Muriithi Frederick Muriuki | 2018-03-18 08:51:55 +0300 |
---|---|---|
committer | Pjotr Prins | 2018-03-26 09:29:29 +0000 |
commit | b50e82383bfbf44e35f7376bbd13dd68e4e1f201 (patch) | |
tree | ac2f884da36265b80fbcb8c1ccc7150a3b6d56df | |
parent | 8ff3dbd9bd5737b6cd0df8d279a70073c40786ec (diff) | |
download | genenetwork2-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.
-rw-r--r-- | wqflask/wqflask/marker_regression/marker_regression.py | 2 |
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 |