# HG changeset patch # User francesco_lapi # Date 1732124125 0 # Node ID f0197057876ccf97516e9aade5edb41f72fbfb2a # Parent c933b2c6a39ed3eb1dbb0a7f06ee9ab684b40720 Uploaded diff -r c933b2c6a39e -r f0197057876c COBRAxy/flux_to_map.py --- a/COBRAxy/flux_to_map.py Wed Nov 20 17:27:41 2024 +0000 +++ b/COBRAxy/flux_to_map.py Wed Nov 20 17:35:25 2024 +0000 @@ -331,6 +331,8 @@ 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]: @@ -514,7 +516,7 @@ arrow.styleReactionElements(metabMap, reactionId + ("_B" if inversionScore == 2 else "_F")) arrow.applyTo(("F_" if inversionScore == 2 else "B_") + reactionId, metabMap, f";stroke:{ArrowColor.Transparent};stroke-width:0;stroke-dasharray:None") - arrow.styleReactionElements(metabMap, reactionId, mindReactionDir = True) + arrow.styleReactionElements(metabMap, reactionId, mindReactionDir = False) ############################ split class ######################################