Skip to content

Commit

Permalink
Create f1p.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JustKong13 authored Apr 13, 2021
1 parent 65ee563 commit 648e9ee
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions added_reactions/f1p.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# f1p reactions
atp = model.metabolites.get_by_id("atp_c")
fru = model.metabolites.get_by_id("fru_c")
adp = model.metabolites.get_by_id("adp_c")
f1p = model.metabolites.get_by_id("f1p_c")
h = model.metabolites.get_by_id("h_c")

khk = Reaction("KHK")
khk.name = "Ketohexokinase"
khk.add_metabolites(
{
adp: 1.0,
atp: -1.0,
f1p: 1.0,
fru: -1.0,
h: 1.0
}
)

biomass_rxn.add_metabolites(
{
f1p: -0.1030074288
}
)

model.add_reactions(
[
khk, biomass_rxn
]
)

model.optimize().objective_value

0 comments on commit 648e9ee

Please sign in to comment.