Mercurial > repos > bimib > cobraxy
changeset 111:22d2cf96d552 draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 15:46:36 +0000 |
parents | 76e87d3b9e0e |
children | 4ea14da7043b |
files | COBRAxy/ras_to_bounds.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)