Mercurial > repos > bimib > marea_2
changeset 81:5229ce78799d draft
Uploaded
author | luca_milaz |
---|---|
date | Fri, 19 Jul 2024 19:54:29 +0000 |
parents | 74b162f74f4a |
children | c7ef1436574e |
files | marea_2/custom_data_generator.py |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/custom_data_generator.py Fri Jul 19 19:51:19 2024 +0000 +++ b/marea_2/custom_data_generator.py Fri Jul 19 19:54:29 2024 +0000 @@ -120,18 +120,18 @@ return reactionUtils.create_reaction_dict(unparsedReactions) def get_medium(model:cobra.Model) -> list: - trueMedium=[] - for r in model.reactions: - positiveCoeff=0 - for m in r.metabolites: - if r.get_coefficient(m.id)>0: - positiveCoeff=1; - if (positiveCoeff==0 and r.lower_bound<0): - trueMedium.append(r) + trueMedium=[] + for r in model.reactions: + positiveCoeff=0 + for m in r.metabolites: + if r.get_coefficient(m.id)>0: + positiveCoeff=1; + if (positiveCoeff==0 and r.lower_bound<0): + trueMedium.append(r) df_medium = pd.DataFrame(columns="Reaction") df_medium["Reaction"] = trueMedium - return df_medium + return df_medium def generate_bounds(model:cobra.Model) -> Dict[ReactionId, Tuple[float, float]]: