Mercurial > repos > bimib > cobraxy
changeset 186:f0197057876c draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 20 Nov 2024 17:35:25 +0000 |
parents | c933b2c6a39e |
children | 5581ce89f15e |
files | COBRAxy/flux_to_map.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ######################################