Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 117:69190617d1ea draft
Uploaded
| author | luca_milaz |
|---|---|
| date | Sun, 13 Oct 2024 16:27:27 +0000 |
| parents | 734cc52537da |
| children | 6e1a6e480969 |
comparison
equal
deleted
inserted
replaced
| 116:734cc52537da | 117:69190617d1ea |
|---|---|
| 176 | 176 |
| 177 Returns: | 177 Returns: |
| 178 pd.DataFrame: DataFrame containing the bounds of reactions in the model. | 178 pd.DataFrame: DataFrame containing the bounds of reactions in the model. |
| 179 """ | 179 """ |
| 180 rxns_ids = [rxn.id for rxn in model.reactions] | 180 rxns_ids = [rxn.id for rxn in model.reactions] |
| 181 | |
| 182 warning(str(model.reactions.get_by_id("EX_Lcystin_e").lower_bound)) | |
| 183 warning(str(model.reactions.get_by_id("EX_Lcystin_e").upper_bound)) | |
| 181 | 184 |
| 182 # Set medium conditions | 185 # Set medium conditions |
| 183 for reaction, value in medium.items(): | 186 for reaction, value in medium.items(): |
| 184 if value is not None: | 187 if value is not None: |
| 185 if(reaction != "EX_thbpt_e" and reaction != "EX_lac__L_e"): | 188 if(reaction != "EX_thbpt_e" and reaction != "EX_lac__L_e"): |
