changeset 169:c9908e5f107f draft

Uploaded
author francesco_lapi
date Fri, 26 Jul 2024 10:59:40 +0000
parents f327ddec6749
children 2c75a3b96bc0
files marea_2/marea.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/marea.py	Fri Jul 26 10:33:58 2024 +0000
+++ b/marea_2/marea.py	Fri Jul 26 10:59:40 2024 +0000
@@ -288,7 +288,7 @@
                 z_score = tmp[2]
                 if p_val < threshold_P_V:
                     if not isinstance(f_c, str):
-                        if abs(f_c) < math.log(threshold_F_C, 2):
+                        if abs(f_c) < ((threshold_F_C - 1) / (abs(threshold_F_C) + 1)): # 
                             col = grey
                             width = str(minT)
                         else:
@@ -489,7 +489,7 @@
             INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId)
             continue
 
-        if abs(foldChange) < math.log(ARGS.fChange, 2):
+        if abs(foldChange) <  (ARGS.fChange - 1) / (abs(ARGS.fChange) + 1):
             INVALID_ARROW.styleReactionElements(metabMap, reactionId)
             continue