diff COBRAxy/ras_to_bounds.py @ 115:867a965d6a57 draft

Uploaded
author luca_milaz
date Sun, 13 Oct 2024 16:15:50 +0000
parents a7a079f6a4cd
children 734cc52537da
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Sun Oct 13 15:57:26 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Sun Oct 13 16:15:50 2024 +0000
@@ -123,8 +123,9 @@
     Returns:
         None
     """
+    warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound))
     for reaction in rxns_ids:
-        if reaction in ras_row.index and 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
@@ -137,6 +138,7 @@
             if upper_bound!=0 and lower_bound!=0:
                 model.reactions.get_by_id(reaction).lower_bound=valMin
                 model.reactions.get_by_id(reaction).upper_bound=valMax
+    warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound))
     pass
 
 def process_ras_cell(cellName, ras_row, model, rxns_ids, mediumRxns_ids, output_folder):