# HG changeset patch # User luca_milaz # Date 1728834524 0 # Node ID 4ea14da7043ba04e7a705aa2289f258ca3e3091f # Parent 22d2cf96d552a44d0f75650267c71643df15747f Uploaded diff -r 22d2cf96d552 -r 4ea14da7043b COBRAxy/ras_to_bounds.py --- 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():