-
Hello, When I manually enter the media from minimal_medium(model, max_growth), I receive a different biomass (0.8571429) then using tool to obtain minimal medium for FBA (0.876997). The max_growth used to obtain the minimal was the default. Is this expected behavior? In addition, if I slightly increase the value for mobd in the manually entered minimal media from (0.000006 to 0.000007) and change no other values, the biomass increase to 0.8761609907. I was also wondering if this is expected. The data was obtained using the iML1515 model of E. coli. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Sorry for the delayed response. By hand do you mean just typing the first x digits? Than this would be expected because this is not the exact value returned and you would be truncating it... |
Beta Was this translation helpful? Give feedback.
-
Hi, Sorry for the late reply; I got pulled away from looking into this. Yes, I am taking the output produced from Thank you so much for your help! |
Beta Was this translation helpful? Give feedback.
-
Yeah, if you manually enter the data that will introduce small errors what will change the output slightly. The default output will not show all digits of a float, so something like # ...
model_default_growth = iml1515_model.slim_optimize()
med = minimal_medium(iml1515_model, model_default_growth)
with iml1515_model as mod:
mod.medium = med
model_minimal_growth = mod.slim_optimize()
print(model_default_growth, model_minimal_growth) Those values should be within the solver tolerance. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for your help! |
Beta Was this translation helpful? Give feedback.
Yeah, if you manually enter the data that will introduce small errors what will change the output slightly. The default output will not show all digits of a float, so something like
0.10000023344
will become0.1
there. If you just copy that you something that is somewhat but not exactly the same. If you assign directly without truncating it should be much closer, e. g.Those values should be within the solver tolerance.