comparison COBRAxy/flux_to_map.py @ 192:a0b00e4cc6a2 draft

Uploaded
author francesco_lapi
date Wed, 20 Nov 2024 18:12:14 +0000
parents 21fd8e45de64
children 8b7d2e6b4995
comparison
equal deleted inserted replaced
191:21fd8e45de64 192:a0b00e4cc6a2
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)) 406 print(getArrowBodyElementId(reactionId))
407 print(getElementById(getArrowBodyElementId(reactionId), metabMap)) 407 print(getElementById(getArrowBodyElementId(reactionId), metabMap))
408
409 for element in metabMap.iter():
410 # Ottieni l'attributo 'id' dell'elemento (se esiste)
411 element_id = element.get('id')
412 if element_id and 'r1050' in element_id:
413 print(element_id)
414 print(True)
415
408 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, f";stroke:#a020f0;stroke-width:2;stroke-dasharray:5,5") 416 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, f";stroke:#a020f0;stroke-width:2;stroke-dasharray:5,5")
409 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr()) 417 return self.applyTo(getArrowBodyElementId(reactionId), metabMap, self.toStyleStr())
410 418
411 # Now we style the arrow head(s): 419 # Now we style the arrow head(s):
412 idOpt1, idOpt2 = getArrowHeadElementId(reactionId) 420 idOpt1, idOpt2 = getArrowHeadElementId(reactionId)