# HG changeset patch # User luca_milaz # Date 1728895899 0 # Node ID dfb6a1dc6dbc247d17ab651f7a06ae22336532ed # Parent a78d83753ccec809e5537db85af5db6bf6e127e6 Uploaded diff -r a78d83753cce -r dfb6a1dc6dbc COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Mon Oct 14 08:50:52 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Mon Oct 14 08:51:39 2024 +0000 @@ -192,10 +192,7 @@ 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()) - for cellName, ras_row in ras.iterrows(): - process_ras_cell(cellName, ras_row, model, rxns_ids, output_folder) - break #just one cell for testing + Parallel(n_jobs=cpu_count())(delayed(process_ras_cell)(cellName, ras_row, model, rxns_ids, output_folder) for cellName, ras_row in ras.iterrows()) else: model_new = model.copy() apply_ras_bounds(model_new, pd.Series([1]*len(rxns_ids), index=rxns_ids))