# HG changeset patch # User francesco_lapi # Date 1721991580 0 # Node ID c9908e5f107fece02e673935cc1f0d12c252a4f2 # Parent f327ddec6749b545b2e54b582d8f4d69902c1a34 Uploaded diff -r f327ddec6749 -r c9908e5f107f marea_2/marea.py --- 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