# HG changeset patch # User francesco_lapi # Date 1732124434 0 # Node ID 5581ce89f15e7e7034fc86bd6de7002b75487e06 # Parent f0197057876ccf97516e9aade5edb41f72fbfb2a Uploaded diff -r f0197057876c -r 5581ce89f15e COBRAxy/flux_to_map.py --- 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):