Elasticities¶
In some cases we might be interested in testing certain intervention
strategies on our models. In general we will be most intested in what is
the consequence for the environment, meaning what happens with the
exchange reactions in the model. Here, micom
allows you to respond
two kind of questions:
- What impact does changing a bacterial abundance have on the exchanges?
- What impact does changing the exchnage bounds (ergo diet) have on the exchanges?
For that we use the concept of elasticity coefficients which are a dimensionless normalized measure of how much the parameter \(p\) affects the flux \(v\):
micom
can calculate the elasticities for abundances and diet in one
go.
This again uses cooperative tradeoff to limit the solution space.
In [1]:
from micom import Community, data
from micom.elasticity import exchange_elasticities
tax = data.test_taxonomy()
com = Community(tax, solver="gurobi")
eps = exchange_elasticities(com, fraction=1.0)
eps.head()
100%|██████████| 5/5 [00:00<00:00, 5.78models/s]
100%|██████████| 4/4 [00:00<00:00, 26.02optimizations/s]
100%|██████████| 5/5 [00:00<00:00, 12.57optimizations/s]
Out[1]:
reaction | effector | direction | elasticity | type | |
---|---|---|---|---|---|
EX_ac_m | EX_ac_m | EX_glc__D_m | zero | -3.339689e-07 | exchanges |
EX_acald_m | EX_acald_m | EX_glc__D_m | zero | -2.948751e-06 | exchanges |
EX_akg_m | EX_akg_m | EX_glc__D_m | zero | -3.915087e-06 | exchanges |
EX_co2_m | EX_co2_m | EX_glc__D_m | forward | 9.238545e-01 | exchanges |
EX_etoh_m | EX_etoh_m | EX_glc__D_m | zero | 7.460696e-07 | exchanges |
Here reaction refers to the target flux and effector to the changed parameter. The direction indicates the flux direction and the type whether we changed an exchange bound or a taxa abundance. So for instance the 4th row would tell us that raising glucose import by one unit (one unit of additional glucose in the diet) would increase the carbon dioxide production by 0.92 units. The other rows do not impose a significant change, are not sensitive to glucose availability.