From 2d0c4fa72757674fa5e526696c66c5b7b6b6f983 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 22 Oct 2021 02:12:54 +0000 Subject: Possible fix for the weird inconsistent correlation key error for strain BXD073bxBXD077F1 --- wqflask/wqflask/correlation/correlation_gn3_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py index a18bceaf..1e3a40f2 100644 --- a/wqflask/wqflask/correlation/correlation_gn3_api.py +++ b/wqflask/wqflask/correlation/correlation_gn3_api.py @@ -65,7 +65,7 @@ def process_samples(start_vars, sample_names, excluded_samples=None): excluded_samples = () sample_vals_dict = json.loads(start_vars["sample_vals"]) for sample in sample_names: - if sample not in excluded_samples: + if sample not in excluded_samples and sample in sample_vals_dict: val = sample_vals_dict[sample] if not val.strip().lower() == "x": sample_data[str(sample)] = float(val) -- cgit v1.2.3