Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_to_map.py @ 188:68e5280198d7 draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 20 Nov 2024 17:48:45 +0000 |
parents | 5581ce89f15e |
children | 9d6b03c7f0af |
comparison
equal
deleted
inserted
replaced
187:5581ce89f15e | 188:68e5280198d7 |
---|---|
401 def styleReactionElements(self, metabMap :ET.ElementTree, reactionId :str, *, mindReactionDir = True) -> None: | 401 def styleReactionElements(self, metabMap :ET.ElementTree, reactionId :str, *, mindReactionDir = True) -> None: |
402 if not mindReactionDir: | 402 if not mindReactionDir: |
403 if 'r1050' in reactionId: | 403 if 'r1050' in reactionId: |
404 print(reactionId) | 404 print(reactionId) |
405 print(self.toStyleStr()) | 405 print(self.toStyleStr()) |
406 print(getArrowBodyElementId(reactionId)) | |
407 | |
408 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, f";stroke:{self.col};stroke-width:2;stroke-dasharray:5,5") | |
406 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr()) | 409 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr()) |
407 | 410 |
408 # Now we style the arrow head(s): | 411 # Now we style the arrow head(s): |
409 idOpt1, idOpt2 = getArrowHeadElementId(reactionId) | 412 idOpt1, idOpt2 = getArrowHeadElementId(reactionId) |
410 self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = True)) | 413 self.applyTo(idOpt1, metabMap, self.toStyleStr(downSizedForTips = True)) |