diff options
author | Frederick Muriuki Muriithi | 2022-12-02 06:48:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-12-02 06:48:20 +0300 |
commit | 2bfbfd46a4490c32e5de483d0f10cd7db3b55f67 (patch) | |
tree | af50d79ee7242446bb1768d54f170c5edaeca242 /wqflask | |
parent | d16617c5911021dc281b5aa77141cef8a3207dff (diff) | |
download | genenetwork2-2bfbfd46a4490c32e5de483d0f10cd7db3b55f67.tar.gz |
correlations: Format `sample_r` value correctly.
* wqflask/wqflask/correlation/show_corr_results.py: Use scientific
notation with 2 decimal places
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 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" |