# HG changeset patch # User luca_milaz # Date 1728834130 0 # Node ID 76e87d3b9e0e75b05760669fc5c6c747c4ac8adc # Parent ba10ad78fc5f749dfc78aa2051164fcf2ba7870a Uploaded diff -r ba10ad78fc5f -r 76e87d3b9e0e COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 15:37:33 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 15:42:10 2024 +0000 @@ -177,6 +177,7 @@ # 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"): @@ -266,8 +267,6 @@ medium = df_mediums[[ARGS.medium_selector]] medium = medium[ARGS.medium_selector].to_dict() - warning(str(medium)) - if(ARGS.ras_selector == True): generate_bounds(model, medium, ras = ras_combined, output_folder=ARGS.output_folder) class_assignments.to_csv(ARGS.cell_class, sep = '\t', index = False)