# HG changeset patch # User luca_milaz # Date 1728806913 0 # Node ID 14076662f68767bf390460558afca54bc93dd9bf # Parent 455e8945d02af1f9ba4d814d035ae0b3d56e5f7f Uploaded diff -r 455e8945d02a -r 14076662f687 COBRAxy/ras_to_bounds.py --- 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)