Skip to content

Comparing growth of an organism in monoculture vs. coculture #147

Answered by cdiener
justuswfink asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, sorry for the late reply. You are correct in that a single taxon cooperative tradeoff (with fraction=1) is the same as a normal FBA.

I think this is because Community.optimize(fluxes=True) uses pFBA by default, whereas Community.cooperative_tradeoff(fluxes=True) does not. If you run your code with sol_mono = mono.cooperative_tradeoff(fluxes=True, pfba=True) and sol_mono_fba = mono.optimize(fluxes=True, pfba=True) it should give you similar results. I will fix the default arguments so they match in the next release.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@justuswfink
Comment options

Answer selected by justuswfink
Comment options

You must be logged in to vote
1 reply
@justuswfink
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants