# HG changeset patch # User francesco_lapi # Date 1732126334 0 # Node ID a0b00e4cc6a2f0445a38fdb0f2f8dc5d2c2ae94f # Parent 21fd8e45de6419cf681caaebf88a9a85fc481d9f Uploaded diff -r 21fd8e45de64 -r a0b00e4cc6a2 COBRAxy/flux_to_map.py --- 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())