aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-05-27 20:08:14 +0000
committerzsloan2021-05-27 20:08:14 +0000
commit6a54fa84542458fe8cfd288bf4c507214a1ddd04 (patch)
treea7e07746a8055f462531772bbf75a9346aa48c37
parent92f84ab7c544ac9d7ffdbf302cf35b8b67ef7819 (diff)
downloadgenenetwork2-6a54fa84542458fe8cfd288bf4c507214a1ddd04.tar.gz
Make all attribute names lowercase to deal with situations where sometimes they're lower-case and other times not
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index d727e3ff..c5b980a7 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -765,9 +765,9 @@ def get_perm_strata(this_trait, sample_list, categorical_vars, used_samples):
if sample in list(sample_list.sample_attribute_values.keys()):
combined_string = ""
for var in categorical_vars:
- if var in list(sample_list.sample_attribute_values[sample].keys()):
+ if var.lower() in sample_list.sample_attribute_values[sample]:
combined_string += str(
- sample_list.sample_attribute_values[sample][var])
+ sample_list.sample_attribute_values[sample][var.lower()])
else:
combined_string += "NA"
else: