changeset 114:a7a079f6a4cd draft

Uploaded
author luca_milaz
date Sun, 13 Oct 2024 15:57:26 +0000
parents 1961a091484c
children 867a965d6a57
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Sun Oct 13 15:55:16 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Sun Oct 13 15:57:26 2024 +0000
@@ -124,7 +124,7 @@
         None
     """
     for reaction in rxns_ids:
-        if reaction in ras_row.index and ras_row[reaction] not in mediumRxns_ids:
+        if reaction in ras_row.index and reaction not in mediumRxns_ids:
             scaling_factor = ras_row[reaction]
             lower_bound=model.reactions.get_by_id(reaction).lower_bound
             upper_bound=model.reactions.get_by_id(reaction).upper_bound
@@ -193,8 +193,6 @@
         model.reactions.get_by_id(reaction).lower_bound = float(df_FVA.loc[reaction, "minimum"])
         model.reactions.get_by_id(reaction).upper_bound = float(df_FVA.loc[reaction, "maximum"])
 
-    #warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound))
-
     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():