# HG changeset patch # User luca_milaz # Date 1728835046 0 # Node ID a7a079f6a4cdb918a0ce098e9731454ddf82dd18 # Parent 1961a091484c0b09e84b2feccb3ff42e63728f83 Uploaded diff -r 1961a091484c -r a7a079f6a4cd COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 15:55:16 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 15:57:26 2024 +0000 @@ -124,7 +124,7 @@ None """ for reaction in rxns_ids: - if reaction in ras_row.index and ras_row[reaction] not in mediumRxns_ids: + if reaction in ras_row.index and reaction not in mediumRxns_ids: scaling_factor = ras_row[reaction] lower_bound=model.reactions.get_by_id(reaction).lower_bound upper_bound=model.reactions.get_by_id(reaction).upper_bound @@ -193,8 +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)) - 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():