-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello @oftadehomid, I am still trying to use ETFL model of yeast. I find it is difficult to update the kcat for specific enzyme using the following code:
yeast is the ETFL model
yeast.reactions.r_1714.lower_bound = -2
yeast.reactions.r_1714.upper_bound = 0
yeast.objective = growth_reaction_id
yeast.objective.direction = 'max'
sol = yeast.optimize()
yeast.enzymes.get_by_id('YAL038W_enzyme').kcat_fwd = 100
yeast.enzymes.get_by_id('YAL038W_enzyme').kcat_bwd = 100
yeast.enzymes.get_by_id('YOR347C_enzyme').kcat_fwd = 100
yeast.enzymes.get_by_id('YOR347C_enzyme').kcat_bwd = 100
update variable and constraints attributes?
rid = 'r_0962'
r = yeast.reactions.get_by_id(rid)
yeast.apply_enzyme_catalytic_constraint(r)
yeast._push_queue()
yeast.regenerate_constraints()
yeast.regenerate_variables()
sol2 = yeast.optimize()
Here, though I update the kcat for YOR347C_enzyme, however the related constraints information from the model is not updated. Could you give me some suggestions about this?
Thanks a lot!
Best wishes,
Hongzhong