Skip to content

Commit

Permalink
FIX: again, atp reqs in biomass
Browse files Browse the repository at this point in the history
  • Loading branch information
psalvy committed Jun 29, 2020
1 parent 86817ed commit 5e5d8e8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions etfl/data/ecoli.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def remove_from_biomass_equation(model, nt_dict, aa_dict, essentials_dict):

expression_mets = list(nt_dict.values()) + list(aa_dict.values())

# For ATP correction (see lower)
# For ATP correction (see below)
n_aa = 0

for m,stoich in model.growth_reaction.metabolites.items():
Expand Down Expand Up @@ -361,22 +361,22 @@ def remove_from_biomass_equation(model, nt_dict, aa_dict, essentials_dict):
# ppi: 1*n_aa,
# h: 4*n_aa,
# })
# model.growth_reaction.add_metabolites({atp: -1*atp_recovery - 2*n_aa ,
# h2o: -2*n_aa, # h2o consumed less (n_aa is negative),
# adp: 2 * n_aa,
# amp: 0 * n_aa,
# pi: 2*n_aa,
# ppi: 0*n_aa,
# h: 2*n_aa,
# })
model.growth_reaction.add_metabolites({atp: -1*atp_recovery - 3*n_aa ,
model.growth_reaction.add_metabolites({atp: -1*atp_recovery - 2*n_aa ,
h2o: -2*n_aa, # h2o consumed less (n_aa is negative),
adp: 2 * n_aa,
amp: 0 * n_aa,
pi: 2*n_aa,
ppi: 0*n_aa,
h: 2*n_aa,
})
# model.growth_reaction.add_metabolites({atp: -1*atp_recovery - 3*n_aa ,
# h2o: -2*n_aa, # h2o consumed less (n_aa is negative),
# adp: 2 * n_aa,
# amp: 0 * n_aa,
# pi: 2*n_aa,
# ppi: 0*n_aa,
# h: 2*n_aa,
# })



Expand Down

0 comments on commit 5e5d8e8

Please sign in to comment.