comparison COBRAxy/ras_to_bounds.py @ 125:a9825d06cc43 draft

Uploaded
author luca_milaz
date Mon, 14 Oct 2024 08:38:46 +0000
parents 67a79e4f037a
children d40d5d5435df
comparison
equal deleted inserted replaced
124:67a79e4f037a 125:a9825d06cc43
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 176
177 #metto a zero medium engro2 177 #metto a zero medium engro2
178 for rxn_id, _ in model.medium: 178 for rxn_id, _ in model.medium.items():
179 model.reactions.get_by_id(rxn_id).lower_bound = float(0.0) 179 model.reactions.get_by_id(rxn_id).lower_bound = float(0.0)
180 180
181 # Set medium conditions 181 # Set medium conditions
182 for reaction, value in medium.items(): 182 for reaction, value in medium.items():
183 if value is not None: 183 if value is not None: