From 83d11d341d6d33c9fae361fd6c60549a678bb4cc Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 28 Nov 2022 21:33:16 +0000 Subject: Convert trait name to str, since phenotype trait names being numerical was causing them to not work as dict keys --- wqflask/wqflask/correlation/show_corr_results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 0913966c..c24043cc 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -176,7 +176,8 @@ def generate_table_metadata(all_traits, dataset_metadata, dataset_obj): metadata = [__fetch_trait_data__(trait, dataset_obj) for trait in (all_traits ^ dataset_metadata.keys())] - return (dataset_metadata | ({trait["name"]: trait for trait in metadata})) + + return (dataset_metadata | ({str(trait["name"]): trait for trait in metadata})) def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results, filters): -- cgit v1.2.3