changeset 283:2436856c7e51 draft

Uploaded
author francesco_lapi
date Tue, 13 May 2025 09:06:31 +0000
parents f5635309779a
children 2febf79bb334
files COBRAxy/marea.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/marea.py	Tue May 13 09:01:16 2025 +0000
+++ b/COBRAxy/marea.py	Tue May 13 09:06:31 2025 +0000
@@ -435,9 +435,11 @@
         # If We're dealing with RAS data or in general don't care about the direction of the reaction we only style the arrow body
         if not mindReactionDir:
             return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr())
-        print('PROVA 1')
         # Now we style the arrow head(s):
         idOpt1, idOpt2 = getArrowHeadElementId(reactionId)
+        print(f'{idOpt1} {self.toStyleStr(downSizedForTips = True)}')
+        if idOpt2: print(f'{idOpt2} {self.toStyleStr(downSizedForTips = True)}')
+        print('----')
         self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = True))
         if idOpt2: self.applyTo(idOpt2, metabMap, self.toStyleStr(downSizedForTips = True))
     
@@ -499,11 +501,11 @@
         if isinstance(foldChange, str): foldChange = float(foldChange)
         if pValue >= ARGS.pValue: # pValue above tresh: dashed arrow
             INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId)
-            print('PROVA 2')
             continue
 
         if abs(foldChange) <  (ARGS.fChange - 1) / (abs(ARGS.fChange) + 1):
             INVALID_ARROW.styleReactionElements(metabMap, reactionId)
+            print('Prova 2')
             continue
         
         width = Arrow.MAX_W
@@ -526,6 +528,7 @@
         
         # vvv These 2 if statements can both be true and can both happen
         if ARGS.net: # style arrow head(s):
+            print('Prova NET')
             arrow.styleReactionElements(metabMap, reactionId + ("_B" if inversionScore == 2 else "_F"))
         
         if not ARGS.using_RAS: # style arrow body