Mercurial > repos > bimib > cobraxy
changeset 62:14076662f687 draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 08:08:33 +0000 |
parents | 455e8945d02a |
children | 5302258f8262 |
files | COBRAxy/ras_to_bounds.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Sun Oct 13 08:05:26 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 08:08:33 2024 +0000 @@ -184,7 +184,9 @@ rxn.upper_bound = float(df_FVA.loc[reaction, "maximum"]) 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()) + #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(): + process_ras_cell(cellName, ras_row, model, rxns_ids, output_folder) else: model_new = model.copy() apply_ras_bounds(model_new, pd.Series([1]*len(rxns_ids), index=rxns_ids), rxns_ids)