aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-25 23:40:51 +0300
committerBonfaceKilz2022-02-09 08:49:56 +0300
commit0615471c45c40ca7c5e53d13a55bc77499c914ac (patch)
tree84a479aefa274e47035426c79cc492133398b7f7
parentd5c596486bb88cc432f930dfcf0804f90fdb5bd7 (diff)
downloadgenenetwork2-0615471c45c40ca7c5e53d13a55bc77499c914ac.tar.gz
fix for dcor and LOD rounding
-rw-r--r--wqflask/wqflask/ctl/gn3_ctl_analysis.py8
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,