changeset 106:1629671d4ca6 draft

Uploaded
author luca_milaz
date Sun, 13 Oct 2024 14:01:03 +0000
parents e3b3958c0d88
children 58919e82d96e
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)