changeset 185:c933b2c6a39e draft

Uploaded
author francesco_lapi
date Wed, 20 Nov 2024 17:27:41 +0000
parents b5b7960a208e
children f0197057876c
files COBRAxy/flux_to_map.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py	Wed Nov 20 17:03:05 2024 +0000
+++ b/COBRAxy/flux_to_map.py	Wed Nov 20 17:27:41 2024 +0000
@@ -127,7 +127,7 @@
         help = 'output path for maps')
 
     args :argparse.Namespace = parser.parse_args(args)
-    args.net = True
+    args.net = True # TODO SICCOME I FLUSSI POSSONO ESSERE ANCHE NEGATIVI SONO SEMPRE CONSIDERATI NETTI
 
     return args
           
@@ -252,8 +252,8 @@
     maxT = 12
     minT = 2
     grey = '#BEBEBE'
-    blue = '#6495ed'
-    red = '#ecac68'
+    blue = '#6495ed' # azzurrino
+    red = '#ecac68' # arancione
     for el in core_map.iter():
         el_id = str(el.get('id'))
         if el_id.startswith('R_'):
@@ -495,7 +495,7 @@
                 width = max(abs(z_score * Arrow.MAX_W) / maxNumericZScore, Arrow.MIN_W) 
 
             except ZeroDivisionError: pass
-        
+        # TODO CHECK RV
         #if not reactionId.endswith("_RV"): # RV stands for reversible reactions
         #    Arrow(width, ArrowColor.fromFoldChangeSign(foldChange)).styleReactionElements(metabMap, reactionId)
         #    continue
@@ -514,7 +514,7 @@
             arrow.styleReactionElements(metabMap, reactionId + ("_B" if inversionScore == 2 else "_F"))
             arrow.applyTo(("F_" if inversionScore == 2 else "B_") + reactionId, metabMap, f";stroke:{ArrowColor.Transparent};stroke-width:0;stroke-dasharray:None")
 
-        arrow.styleReactionElements(metabMap, reactionId, mindReactionDir = False)
+        arrow.styleReactionElements(metabMap, reactionId, mindReactionDir = True)
 
 
 ############################ split class ######################################