# HG changeset patch # User francesco_lapi # Date 1747127191 0 # Node ID 2436856c7e515610bb7f415f3b9ec8b3e339d409 # Parent f5635309779ae885e6e590eb4fbaf40cc4380733 Uploaded diff -r f5635309779a -r 2436856c7e51 COBRAxy/marea.py --- 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