Mercurial > repos > bimib > cobraxy
diff COBRAxy/ras_to_bounds.py @ 119:829ea241c3a1 draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 16:37:47 +0000 |
parents | 6e1a6e480969 |
children | 567ffd4333d4 |
line wrap: on
line diff
--- 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():