How To Use the DyMMM framework
The DMMM framework contains six files:
dymmm.m //main function
dymmm_ode.m //ODE description of a microbial community and its environment
dymmm_analytical.m //analytical solution to DyMMM
updateEnvironment.m //description of the environmental changes
updateUptakes.m //description of the microbial uptake kinetics
runDyMMM.m //a sample script that sets up and runs the simulation
To set up a simulation:
1. The frist three files (dymmm.m, dymmm_ode.m, dymmm_analytical) does not need to be modified.
The environmental conditions and the uptake constraints of the metabolic models are updated at every time step using the updateEnvironment and updateUptakes.m scripts.
runDMMM.m gives a good example of how to setup a simulation using two hypothetical E.coli strains, simulating a cross-feeding situation where one strain consumes glucose and produce acetate, whereas the other strain consume acetate.
In brief, you need to:
Setup the community
Setup timespan (tspan)
Setup initial conditions
Choose a solver
- "analytical" for analytical approximation. it is important to set the time step to be relatively small. in addition, this is not appropriate for situations where biomass is being fed into the system.
- "ode45","ode45n","ode23","ode23n" for numerical solvers. "n" signifies that the non-negative flag is turned on.
run the simulation using the function dymmm
Solutions:
Note: The units are dependent on the units of the fluxes in the constraint-based metabolic models