Mercurial > repos > bimib > cobraxy
changeset 192:a0b00e4cc6a2 draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 20 Nov 2024 18:12:14 +0000 |
parents | 21fd8e45de64 |
children | bd4e756de8bb |
files | COBRAxy/flux_to_map.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py Wed Nov 20 18:01:29 2024 +0000 +++ b/COBRAxy/flux_to_map.py Wed Nov 20 18:12:14 2024 +0000 @@ -405,6 +405,14 @@ print(self.toStyleStr()) print(getArrowBodyElementId(reactionId)) print(getElementById(getArrowBodyElementId(reactionId), metabMap)) + + for element in metabMap.iter(): + # Ottieni l'attributo 'id' dell'elemento (se esiste) + element_id = element.get('id') + if element_id and 'r1050' in element_id: + print(element_id) + print(True) + return self.applyTo(getArrowBodyElementId(reactionId), metabMap, f";stroke:#a020f0;stroke-width:2;stroke-dasharray:5,5") return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr())