diff options
author | zsloan | 2023-03-21 18:48:52 +0000 |
---|---|---|
committer | zsloan | 2023-03-21 18:48:52 +0000 |
commit | d8025d9aa2aed6b4d8d77a6209e46b00f59e4265 (patch) | |
tree | 6cb8cb8ee44dd557cd2e87e75856eb7027b59353 /wqflask | |
parent | 9bb94bfc6d6c37ce9e72ffc76e70962b1d743c73 (diff) | |
download | genenetwork2-d8025d9aa2aed6b4d8d77a6209e46b00f59e4265.tar.gz |
The mean deaults to 'N/A' for phenotypes
The previous code caused an error when the mean was N/A (when trying to
take the float() of it)
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/correlation/show_corr_results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 06db20c2..5fa65594 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -242,7 +242,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results, results_dict['description'] = html.escape( target_trait['description'].strip(), quote=True) - if target_trait["mean"]: + if target_trait["mean"] != "N/A": results_dict['mean'] = f"{float(target_trait['mean']):.3f}" results_dict['lrs_location'] = target_trait['lrs_location'] |