Mercurial > repos > bimib > marea_2
changeset 211:5081d0bb2a36 draft
Uploaded
author | francesco_lapi |
---|---|
date | Thu, 01 Aug 2024 10:45:43 +0000 |
parents | 794dbb356e09 |
children | bd468ff3feac |
files | marea_2/flux_to_map.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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