changeset 124:67a79e4f037a draft

Uploaded
author luca_milaz
date Mon, 14 Oct 2024 08:36:56 +0000
parents 258ff4208e52
children a9825d06cc43
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Mon Oct 14 08:29:08 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Mon Oct 14 08:36:56 2024 +0000
@@ -173,6 +173,10 @@
         pd.DataFrame: DataFrame containing the bounds of reactions in the model.
     """
     rxns_ids = [rxn.id for rxn in model.reactions]
+
+    #metto a zero medium engro2
+    for rxn_id, _ in model.medium:
+        model.reactions.get_by_id(rxn_id).lower_bound = float(0.0)
     
     # Set medium conditions
     for reaction, value in medium.items():