Hello @dukovski @liamkelley93 @jeremymchacon @mquintin @dileep-kishore
Firstly, I would like to begin by saying - COMETS is just awesome! I am also very happy with your team for the earlier prompt response.
I am aware that a few years back, a similar issue was raised on this platform, but I wanted to clarify with you guys again (as you had suggested to go with a small timestep, but it is not helping).
I am performing microbial community simulations wherein I want to mimic a condition where 3 (or more) microbes enter an environment simultaneously.
However, the order of the models in the list : [1, 2, 3] ; [2, 1, 3] produces drastic differences in the growth trends for certain permutations (please check below). These are for a very small timestep - 0.01. (Attached at the end are the parameters I used.) I am using the Agora high fibre diet. It is in this format: {'arab_L': 0.04736842}
Note: I am adding all models at t=0 as follows:
model_list = [1,2,3] #assume 1,2,3 are comets models
comm_layout = c.layout()
for i in model_list:
comm_layout.add_model(i)
My current goal is to add models to a community layout and test if all members survive or not. But since this is stochastic (as in, order decides the outcomes), I am trying to perform all possible sequences of addition for a given set of three members and trying to compute the probability of all species surviving. But this leads to performing n! simulations for every set, and COMETS crashes when I run back-to-back simulations in a loop.
Can you please assist me in using COMETS in such a way that the order does not matter? This will be really, really helpful! COMETS is the only best dFBA tool I have come across for modelling microbial communities and if you can help me solve this issue, it will benefit me a lot!
Thanks and Regards
Sandhya
These are the parameters I set:
comm_params.set_param('randomSeed', 42)
comm_params.set_param("spaceWidth", 20)
comm_params.set_param("defaultVmax", 20.0)
comm_params.set_param("defaultKm", 5e-5)
comm_params.set_param('timeStep', 0.01)
#comm_params.set_param('maxSpaceBiomass', 10.0)
comm_params.set_param('maxCycles', 10)
#comm_params.set_param('growthDiffRate', 1)
comm_params.set_param('writeFluxLog', True)
comm_params.set_param('writeMediaLog', True)
comm_params.set_param('FluxLogRate', 1)
comm_params.set_param('MediaLogRate', 1)
comm_params.set_param('writeTotalBiomassLog', True)
#comm_params.set_param("minSpaceBiomass", 1e-3) #gDW
#Set chemostat dilution rate
dilution_rate = 0.017
comm_params.set_param('deathRate', dilution_rate)
comm_params.set_param('metaboliteDilutionRate', dilution_rate)
Hello @dukovski @liamkelley93 @jeremymchacon @mquintin @dileep-kishore
Firstly, I would like to begin by saying - COMETS is just awesome! I am also very happy with your team for the earlier prompt response.
I am aware that a few years back, a similar issue was raised on this platform, but I wanted to clarify with you guys again (as you had suggested to go with a small timestep, but it is not helping).
I am performing microbial community simulations wherein I want to mimic a condition where 3 (or more) microbes enter an environment simultaneously.
However, the order of the models in the list : [1, 2, 3] ; [2, 1, 3] produces drastic differences in the growth trends for certain permutations (please check below). These are for a very small timestep - 0.01. (Attached at the end are the parameters I used.) I am using the Agora high fibre diet. It is in this format: {'arab_L': 0.04736842}
Note: I am adding all models at t=0 as follows:
model_list = [1,2,3] #assume 1,2,3 are comets models
comm_layout = c.layout()
for i in model_list:
comm_layout.add_model(i)
My current goal is to add models to a community layout and test if all members survive or not. But since this is stochastic (as in, order decides the outcomes), I am trying to perform all possible sequences of addition for a given set of three members and trying to compute the probability of all species surviving. But this leads to performing n! simulations for every set, and COMETS crashes when I run back-to-back simulations in a loop.
Can you please assist me in using COMETS in such a way that the order does not matter? This will be really, really helpful! COMETS is the only best dFBA tool I have come across for modelling microbial communities and if you can help me solve this issue, it will benefit me a lot!
Thanks and Regards
Sandhya
These are the parameters I set:
comm_params.set_param('randomSeed', 42)
comm_params.set_param("spaceWidth", 20)
comm_params.set_param("defaultVmax", 20.0)
comm_params.set_param("defaultKm", 5e-5)
comm_params.set_param('timeStep', 0.01)
#comm_params.set_param('maxSpaceBiomass', 10.0)
comm_params.set_param('maxCycles', 10)
#comm_params.set_param('growthDiffRate', 1)
comm_params.set_param('writeFluxLog', True)
comm_params.set_param('writeMediaLog', True)
comm_params.set_param('FluxLogRate', 1)
comm_params.set_param('MediaLogRate', 1)
comm_params.set_param('writeTotalBiomassLog', True)
#comm_params.set_param("minSpaceBiomass", 1e-3) #gDW
#Set chemostat dilution rate
dilution_rate = 0.017
comm_params.set_param('deathRate', dilution_rate)
comm_params.set_param('metaboliteDilutionRate', dilution_rate)