# HG changeset patch # User francesco_lapi # Date 1722509143 0 # Node ID 5081d0bb2a363ccd092493a7bc89445cf9c91bdc # Parent 794dbb356e09ced499e8c16cb08d6c546c3a4d84 Uploaded diff -r 794dbb356e09 -r 5081d0bb2a36 marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Wed Jul 31 15:58:04 2024 +0000 +++ b/marea_2/flux_to_map.py Thu Aug 01 10:45:43 2024 +0000 @@ -428,11 +428,8 @@ # Now we style the arrow head(s): idOpt1, idOpt2 = getArrowHeadElementId(reactionId) - print("styleReactionElements") - print(idOpt1, idOpt2) - print("END styleReactionElements") self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = True)) - if idOpt2: self.applyTo(idOpt2, metabMap, f";stroke:#ffffff00;stroke-width:0;stroke-dasharray:none") + if idOpt2: self.applyTo(idOpt2, metabMap, self.toStyleStr(downSizedForTips = True)) def getMapReactionId(self, reactionId :str, mindReactionDir :bool) -> str: """ @@ -490,11 +487,13 @@ if isinstance(foldChange, str): foldChange = float(foldChange) if pValue >= ARGS.pValue: # pValue above tresh: dashed arrow INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId) + INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId, mindReactionDir = False) print(f'1') continue if abs(foldChange) < (ARGS.fChange - 1) / (abs(ARGS.fChange) + 1): INVALID_ARROW.styleReactionElements(metabMap, reactionId) + INVALID_ARROW.styleReactionElements(metabMap, reactionId, mindReactionDir = False) print(f'2') continue