Skip to content

Performing FVA in MICOM #156

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

You must be logged in to vote

Hi there! As far as I know, it is not directly possible in the package itself but you can do it manually. Have you seen question #138 in this discussion? The answer by Christian there shows a concise way how to it.

In a more lengthy way, the following has worked for me. Basically, the idea is to get the growth rates from MICOM, add them as constraints to the model and then pass the same object to the built-in FVA analysis in CobraPy.

import numpy as np
from cobra.flux_analysis import flux_variability_analysis
from micom import Community, data

# let's build a 2-strain community using metabolic models that are provided with the package
taxa = data.test_taxonomy()
subset = [0,1] # pick stra…

Replies: 1 comment 1 reply

Comment options

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

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