changeset 120:567ffd4333d4 draft

Uploaded
author luca_milaz
date Sun, 13 Oct 2024 16:44:58 +0000
parents 829ea241c3a1
children 2121cc1aef45
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Sun Oct 13 16:37:47 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Sun Oct 13 16:44:58 2024 +0000
@@ -124,7 +124,7 @@
         None
     """
     for reaction in rxns_ids:
-        if reaction in ras_row.index: #and reaction not in mediumRxns_ids
+        if reaction in ras_row.index and reaction not in mediumRxns_ids:
             scaling_factor = ras_row[reaction]
             lower_bound=model.reactions.get_by_id(reaction).lower_bound
             upper_bound=model.reactions.get_by_id(reaction).upper_bound
@@ -185,7 +185,7 @@
 
     mediumRxns_ids = medium.keys()
             
-    # Perform Flux Variability Analysis (FVA)
+    # Perform Flux Variability Analysis (FVA) on this medium
     df_FVA = cobra.flux_analysis.flux_variability_analysis(model, fraction_of_optimum=0, processes=1).round(8)
     
     # Set FVA bounds