# HG changeset patch # User luca_milaz # Date 1722791842 0 # Node ID 9224735e90f032efa05f23896a5ebf639c883c67 # Parent 0fc5b8d828479d1dd74bad2b93e5a6ea61cc1a6a Uploaded diff -r 0fc5b8d82847 -r 9224735e90f0 marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Sun Aug 04 17:09:08 2024 +0000 +++ b/marea_2/flux_to_map.py Sun Aug 04 17:17:22 2024 +0000 @@ -873,23 +873,23 @@ i+=1 for rxn_id in ids: - #arrow = Arrow(width=5, col=colors_median[rxn_id]) - #arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_median, arrow.toStyleStr()) + arrow = Arrow(width=5, col=colors_median[rxn_id]) + arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_median, arrow.toStyleStr()) # Now we style the arrow head(s): #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) #arrow.applyTo(idOpt1, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) #if idOpt2: arrow.applyTo(idOpt2, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) - arrow = Arrow(width=5, col="#00FF00") - arrow.styleReactionElements(metabMap_median, arrow.getMapReactionId(rxn_id, mindReactionDir=False), mindReactionDir=False) + #arrow = Arrow(width=5, col="#00FF00") + #arrow.styleReactionElements(metabMap_median, arrow.getMapReactionId(rxn_id, mindReactionDir=False), mindReactionDir=False) - #arrow = Arrow(width=5, col=colors_mean[rxn_id]) - #arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_mean, arrow.toStyleStr()) + arrow = Arrow(width=5, col=colors_mean[rxn_id]) + arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_mean, arrow.toStyleStr()) # Now we style the arrow head(s): #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) #arrow.applyTo(idOpt1, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) #if idOpt2: arrow.applyTo(idOpt2, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) - arrow = Arrow(width=5, col="#00FF00") - arrow.styleReactionElements(metabMap_mean, arrow.getMapReactionId(rxn_id, mindReactionDir=False), mindReactionDir=False) + #arrow = Arrow(width=5, col="#00FF00") + #arrow.styleReactionElements(metabMap_mean, arrow.getMapReactionId(rxn_id, mindReactionDir=False), mindReactionDir=False) svgFilePath = utils.FilePath("SVG Map mean - " + str(key), ext = utils.FileFormat.SVG, prefix="result") utils.writeSvg(svgFilePath, metabMap_mean)