diff options
author | Alexander Kabui | 2022-01-25 23:40:51 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-09 08:49:56 +0300 |
commit | 0615471c45c40ca7c5e53d13a55bc77499c914ac (patch) | |
tree | 84a479aefa274e47035426c79cc492133398b7f7 /wqflask | |
parent | d5c596486bb88cc432f930dfcf0804f90fdb5bd7 (diff) | |
download | genenetwork2-0615471c45c40ca7c5e53d13a55bc77499c914ac.tar.gz |
fix for dcor and LOD rounding
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/ctl/gn3_ctl_analysis.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wqflask/wqflask/ctl/gn3_ctl_analysis.py b/wqflask/wqflask/ctl/gn3_ctl_analysis.py index 033b7704..f2873ac0 100644 --- a/wqflask/wqflask/ctl/gn3_ctl_analysis.py +++ b/wqflask/wqflask/ctl/gn3_ctl_analysis.py @@ -20,7 +20,13 @@ def process_significance_data(significant_data): for col in col_names: for (index, col_data) in enumerate(significant_data[col]): - dataset_rows[index].append(col_data) + + if col in ["dcor", "LOD"]: + + dataset_rows[index].append(round(col_data, 2)) + else: + + dataset_rows[index].append(col_data) return { "col_names": col_names, |