# HG changeset patch # User luca_milaz # Date 1728834396 0 # Node ID 22d2cf96d552a44d0f75650267c71643df15747f # Parent 76e87d3b9e0e75b05760669fc5c6c747c4ac8adc Uploaded diff -r 76e87d3b9e0e -r 22d2cf96d552 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 15:42:10 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 15:46:36 2024 +0000 @@ -177,12 +177,12 @@ # Set medium conditions for reaction, value in medium.items(): if value is not None: - warning(str(reaction) + " " + str(value)) if(reaction != "EX_thbpt_e" and reaction != "EX_lac__L_e"): model.reactions.get_by_id(reaction).lower_bound = -float(value) 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)