diff options
author | zsloan | 2022-08-31 19:17:57 +0000 |
---|---|---|
committer | zsloan | 2022-08-31 19:17:57 +0000 |
commit | 5ec98f87f56a781b814abc05d9de6f1fe8d0c7ac (patch) | |
tree | c0af0f6e0c1280f42f0f93a1a8b28bb03eafd5db | |
parent | 0d0eed3f37ed31e51ba56773002a9802ee72f306 (diff) | |
download | genenetwork2-5ec98f87f56a781b814abc05d9de6f1fe8d0c7ac.tar.gz |
Change qnorm parameter to transform, so other transforms can be added later
-rw-r--r-- | wqflask/wqflask/api/mapping.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/api/mapping.py b/wqflask/wqflask/api/mapping.py index 42de6bb7..94e37161 100644 --- a/wqflask/wqflask/api/mapping.py +++ b/wqflask/wqflask/api/mapping.py @@ -50,7 +50,7 @@ def do_mapping_for_api(start_vars): if not in_trait_data: vals.append("x") - if mapping_params['qnorm']: + if mapping_params['transform'] == "qnorm": vals_minus_x = [float(val) for val in vals if val != "x"] qnorm_vals = normf(vals_minus_x) qnorm_vals_with_x = [] @@ -165,9 +165,9 @@ def initialize_parameters(start_vars, dataset, this_trait): except: mapping_params['perm_check'] = False - mapping_params['qnorm'] = False - if 'qnorm' in start_vars: - mapping_params['qnorm'] = True + mapping_params['transform'] = False + if 'transform' in start_vars: + mapping_params['transform'] = start_vars['transform'] mapping_params['genofile'] = False if 'genofile' in start_vars: |