# HG changeset patch # User luca_milaz # Date 1728837467 0 # Node ID 829ea241c3a1b3c274b4ef1e672c8dfde25cc5c1 # Parent 6e1a6e4809697b067d3e7985fd28509c0a2002c3 Uploaded diff -r 6e1a6e480969 -r 829ea241c3a1 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 16:32:08 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 16:37:47 2024 +0000 @@ -123,8 +123,6 @@ Returns: None """ - warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound)) - warning(str(model.reactions.get_by_id("EX_Lcystin_e").upper_bound)) for reaction in rxns_ids: if reaction in ras_row.index: #and reaction not in mediumRxns_ids scaling_factor = ras_row[reaction] @@ -139,8 +137,6 @@ if upper_bound!=0 and lower_bound!=0: model.reactions.get_by_id(reaction).lower_bound=valMin model.reactions.get_by_id(reaction).upper_bound=valMax - warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound)) - warning(str(model.reactions.get_by_id("EX_Lcystin_e").upper_bound)) pass def process_ras_cell(cellName, ras_row, model, rxns_ids, mediumRxns_ids, output_folder): @@ -197,9 +193,6 @@ 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():