changeset 112:4ea14da7043b draft

Uploaded
author luca_milaz
date Sun, 13 Oct 2024 15:48:44 +0000
parents 22d2cf96d552
children 1961a091484c
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 15:46:36 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Sun Oct 13 15:48:44 2024 +0000
@@ -182,8 +182,6 @@
             if(reaction == "EX_lac__L_e"):
                 model.reactions.get_by_id(reaction).lower_bound = float(0.0)
             
-    warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound))
-    
     # Perform Flux Variability Analysis (FVA)
     df_FVA = cobra.flux_analysis.flux_variability_analysis(model, fraction_of_optimum=0, processes=1).round(8)
     
@@ -192,6 +190,8 @@
         model.reactions.get_by_id(reaction).lower_bound = float(df_FVA.loc[reaction, "minimum"])
         model.reactions.get_by_id(reaction).upper_bound = float(df_FVA.loc[reaction, "maximum"])
 
+    warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound))
+
     if ras is not None:
         #Parallel(n_jobs=cpu_count())(delayed(process_ras_cell)(cellName, ras_row, model, rxns_ids, output_folder) for cellName, ras_row in ras.iterrows())
         for cellName, ras_row in ras.iterrows():