{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Elasticities\n", "\n", "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:\n", "\n", "1. What impact does changing a bacterial abundance have on the exchanges?\n", "2. What impact does changing the exchnage bounds (ergo diet) have on the exchanges?\n", "\n", "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$: \n", "\n", "$$\n", "\\varepsilon_p^v = \\frac{\\partial v}{\\partial p}\\frac{p}{v} = \\frac{\\partial\\ln v}{\\partial\\ln p}\n", "$$\n", "\n", "`micom` can calculate the elasticities for abundances and diet in one go.\n", "\n", "This again uses cooperative tradeoff to limit the solution space." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "100%|██████████| 5/5 [00:02<00:00, 2.39models/s]\n", "100%|██████████| 4/4 [00:00<00:00, 16.06optimizations/s]\n", "100%|██████████| 5/5 [00:00<00:00, 7.38optimizations/s]\n" ] }, { "data": { "text/html": [ "
\n", " | reaction | \n", "taxon | \n", "effector | \n", "direction | \n", "elasticity | \n", "type | \n", "
---|---|---|---|---|---|---|
0 | \n", "EX_ac_m | \n", "medium | \n", "EX_glc__D_m | \n", "zero | \n", "0.000014 | \n", "exchanges | \n", "
1 | \n", "EX_acald_m | \n", "medium | \n", "EX_glc__D_m | \n", "zero | \n", "0.000012 | \n", "exchanges | \n", "
2 | \n", "EX_akg_m | \n", "medium | \n", "EX_glc__D_m | \n", "zero | \n", "0.000017 | \n", "exchanges | \n", "
3 | \n", "EX_co2_m | \n", "medium | \n", "EX_glc__D_m | \n", "forward | \n", "0.923854 | \n", "exchanges | \n", "
4 | \n", "EX_etoh_m | \n", "medium | \n", "EX_glc__D_m | \n", "zero | \n", "0.000009 | \n", "exchanges | \n", "