aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-12-02 06:48:20 +0300
committerFrederick Muriuki Muriithi2022-12-02 06:48:20 +0300
commit2bfbfd46a4490c32e5de483d0f10cd7db3b55f67 (patch)
treeaf50d79ee7242446bb1768d54f170c5edaeca242
parentd16617c5911021dc281b5aa77141cef8a3207dff (diff)
downloadgenenetwork2-2bfbfd46a4490c32e5de483d0f10cd7db3b55f67.tar.gz
correlations: Format `sample_r` value correctly.
* wqflask/wqflask/correlation/show_corr_results.py: Use scientific notation with 2 decimal places
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py2
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 63be1d3f..95952d33 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -195,7 +195,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results,
'{}:{}'.format(target_trait['name'], target_dataset['name']))
results_dict['sample_r'] = f"{float(trait.get('corr_coefficient',0.0)):.3f}"
results_dict['num_overlap'] = trait.get('num_overlap', 0)
- results_dict['sample_p'] = f"{float(trait.get('p_value',0)):.3e}"
+ results_dict['sample_p'] = f"{float(trait.get('p_value',0)):.2e}"
if target_dataset['type'] == "ProbeSet":
results_dict['symbol'] = target_trait['symbol']
results_dict['description'] = "N/A"