# HG changeset patch # User luca_milaz # Date 1728828063 0 # Node ID 1629671d4ca60d8cfd3f62fe2f59c641989be3bd # Parent e3b3958c0d88084d15b0c28472f5d80a667aeb11 Uploaded diff -r e3b3958c0d88 -r 1629671d4ca6 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 13:47:24 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 14:01:03 2024 +0000 @@ -196,7 +196,10 @@ model.reactions.get_by_id(reaction).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) + break else: model_new = model.copy() apply_ras_bounds(model_new, pd.Series([1]*len(rxns_ids), index=rxns_ids), rxns_ids)