Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 124:67a79e4f037a draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 14 Oct 2024 08:36:56 +0000 |
parents | 258ff4208e52 |
children | a9825d06cc43 |
comparison
equal
deleted
inserted
replaced
123:258ff4208e52 | 124:67a79e4f037a |
---|---|
171 | 171 |
172 Returns: | 172 Returns: |
173 pd.DataFrame: DataFrame containing the bounds of reactions in the model. | 173 pd.DataFrame: DataFrame containing the bounds of reactions in the model. |
174 """ | 174 """ |
175 rxns_ids = [rxn.id for rxn in model.reactions] | 175 rxns_ids = [rxn.id for rxn in model.reactions] |
176 | |
177 #metto a zero medium engro2 | |
178 for rxn_id, _ in model.medium: | |
179 model.reactions.get_by_id(rxn_id).lower_bound = float(0.0) | |
176 | 180 |
177 # Set medium conditions | 181 # Set medium conditions |
178 for reaction, value in medium.items(): | 182 for reaction, value in medium.items(): |
179 if value is not None: | 183 if value is not None: |
180 ## SOLO ENGRO2 | 184 ## SOLO ENGRO2 |