# HG changeset patch # User luca_milaz # Date 1728837128 0 # Node ID 6e1a6e4809697b067d3e7985fd28509c0a2002c3 # Parent 69190617d1eac2aa2ce1c748024f4eb2190f0011 Uploaded diff -r 69190617d1ea -r 6e1a6e480969 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 16:27:27 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 16:32:08 2024 +0000 @@ -178,9 +178,6 @@ pd.DataFrame: DataFrame containing the bounds of reactions in the model. """ rxns_ids = [rxn.id for rxn in model.reactions] - - warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound)) - warning(str(model.reactions.get_by_id("EX_Lcystin_e").upper_bound)) # Set medium conditions for reaction, value in medium.items(): @@ -200,6 +197,9 @@ 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)) + warning(str(model.reactions.get_by_id("EX_Lcystin_e").upper_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():