aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index 95952d33..8b1f557a 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -218,7 +218,9 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
results_dict['tissue_pvalue'] = "--"
if this_dataset['type'] == "ProbeSet":
if 'lit_corr' in trait:
- results_dict['lit_corr'] = f"{float(trait['lit_corr']):.3f}"
+ results_dict['lit_corr'] = (
+ f"{float(trait['lit_corr']):.3f}"
+ if trait["lit_corr"] else "--")
if 'tissue_corr' in trait:
results_dict['tissue_corr'] = f"{float(trait['tissue_corr']):.3f}"
results_dict['tissue_pvalue'] = f"{float(trait['tissue_p_val']):.3e}"