How to set a flux ratio as a constraint?
问题 In some datasets, I sometimes observe fixed flux ratios which I would like to incorporate into my simulations. How could I do this in CBMPy? For example, I have the model from here and would now like to constrain the ratio of succinate efflux and pyruvate efflux to 2.0. I know how to set constraints on individual reactions: import cbmpy # downloaded from http://bigg.ucsd.edu/models/e_coli_core ecoli = cbmpy.CBRead.readSBML3FBC('e_coli_core.xml') ecoli.setReactionBounds('R_EX_pyr_e', 1.0, 1000