From edef0215ada2cfe1fbeb6eb74b128848eab2ef65 Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Fri, 26 Jun 2020 17:25:35 +0200
Subject: [PATCH] src/nt_composition/make_nt_correlation.py: fix
 get_select_addition function

---
 src/nt_composition/make_nt_correlation.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nt_composition/make_nt_correlation.py b/src/nt_composition/make_nt_correlation.py
index df1de4f2..d0e13294 100644
--- a/src/nt_composition/make_nt_correlation.py
+++ b/src/nt_composition/make_nt_correlation.py
@@ -49,9 +49,9 @@ def get_select_addition(global_weight: int, get_weight: bool, same_gene: bool):
         elif global_weight == 0 and not same_gene:
             return ', t1.weight'
         elif global_weight >= 0 and same_gene:
-            return ', AVG(weight)'
+            return ', ROUND(AVG(weight), 2)'
         elif global_weight >= 0 and not same_gene:
-            return ', AVG(t1.weight)'
+            return ', ROUND(AVG(t1.weight), 2)'
     return ''
 
 
-- 
GitLab