diff COBRAxy/flux_to_map.py @ 187:5581ce89f15e draft

Uploaded
author francesco_lapi
date Wed, 20 Nov 2024 17:40:34 +0000
parents f0197057876c
children 68e5280198d7
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py	Wed Nov 20 17:35:25 2024 +0000
+++ b/COBRAxy/flux_to_map.py	Wed Nov 20 17:40:34 2024 +0000
@@ -331,8 +331,6 @@
 def getArrowBodyElementId(reactionId :str) -> str:
     if reactionId.endswith("_RV"): reactionId = reactionId[:-3] #TODO: standardize _RV
     elif ReactionDirection.fromReactionId(reactionId) is not ReactionDirection.Unknown: reactionId = reactionId[:-2]
-    if 'r1050' in reactionId:
-        print(reactionId)
     return f"R_{reactionId}"
 
 def getArrowHeadElementId(reactionId :str) -> Tuple[str, str]:
@@ -402,6 +400,9 @@
 
     def styleReactionElements(self, metabMap :ET.ElementTree, reactionId :str, *, mindReactionDir = True) -> None:
         if not mindReactionDir:
+            if 'r1050' in reactionId:
+                print(reactionId)
+                print(self.toStyleStr())
             return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr())
         
         # Now we style the arrow head(s):