diff options
author | zsloan | 2022-11-28 21:33:16 +0000 |
---|---|---|
committer | zsloan | 2022-11-28 22:07:59 +0000 |
commit | 83d11d341d6d33c9fae361fd6c60549a678bb4cc (patch) | |
tree | e964c36bca27edb2eb97629dd4cab00cec328963 /wqflask | |
parent | ace3893c96cd225b447284268d54e80ebff35329 (diff) | |
download | genenetwork2-83d11d341d6d33c9fae361fd6c60549a678bb4cc.tar.gz |
Convert trait name to str, since phenotype trait names being numerical was causing them to not work as dict keys
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/correlation/show_corr_results.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |