{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Creating and simulating a DFBA model\n", "This tutorial demonstrates how to build and simulate a DFBA model corresponding to the growth of a single strain of _Escherichia coli_ (based on the iJR904 genome-scale model) under aerobic and anaerobic conditions with glucose and xylose as limiting carbon substrates. \n", "\n", "This notebook was adapted with minor changes from the [dfba documentation](https://dynamic-fba.readthedocs.io/en/latest/example1.html)." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from os.path import dirname, join, pardir\n", "\n", "from cobra.io import read_sbml_model\n", "\n", "from dfba import DfbaModel, ExchangeFlux, KineticVariable" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Dfba model\n", "A model will be build as the following ODE system:\n", "\\begin{align}\n", " \\frac{dX}{dt} &= v_{BM}X \\\\\n", " \\frac{dC_j}{dt} &= v_jX\n", "\\end{align}\n", "\n", "where $X$ is the Biomass (_gDW_); $v$ is the flux of a exchange reaction $j$ (_mmol/gDW/h_) or the exchange biomass reaction $BM$ (_g/gDW/h_, to measure growth). \n", "\n", "First off, specify the path for loading file containing genome-scale metabolic model as [cobra.Model](https://cobrapy.readthedocs.io/en/latest/building_model.html) object and set GLPK as LP solver of choice. After that, instantiate the object of class `DfbaModel` with the cobrapy model." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "path_to_model = join(pardir, \"sbml-models\", \"iJR904.xml.gz\")\n", "fba_model = read_sbml_model(path_to_model)\n", "fba_model.solver = \"glpk\"\n", "dfba_model = DfbaModel(fba_model)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", "\n", "**Note:** A wall of warnings - which can be safely ignored - may be produced when loading this model with `cobra.io.read_sbml_model`.\n", "\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Kinetic Variables\n", "For this example, the metabolites $j$ in the medium will be **Glucose, Xylose, Oxygen and Ethanol**. Later, we will establish the kinetic rules for the uptakes of these metabolites. In addition, we need to set a variable to keep track of the **biomass**.\n", "\n", "Instantiate kinetic variables to appear in model. The last command adds the kinetic variables to the model." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "X = KineticVariable(\"Biomass\")\n", "Gluc = KineticVariable(\"Glucose\")\n", "Xyl = KineticVariable(\"Xylose\")\n", "Oxy = KineticVariable(\"Oxygen\")\n", "Eth = KineticVariable(\"Ethanol\")\n", "\n", "dfba_model.add_kinetic_variables([X, Gluc, Xyl, Oxy, Eth])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. Exchange fluxes\n", "Instantiate exchange fluxes to appear in model, with ids corresponding to exchange reactions of the cobrapy model. The last command adds the exchange fluxes to the model." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "mu = ExchangeFlux(\"BiomassEcoli\")\n", "v_G = ExchangeFlux(\"EX_glc(e)\")\n", "v_Z = ExchangeFlux(\"EX_xyl_D(e)\")\n", "v_O = ExchangeFlux(\"EX_o2(e)\")\n", "v_E = ExchangeFlux(\"EX_etoh(e)\")\n", "\n", "dfba_model.add_exchange_fluxes([mu, v_G, v_Z, v_O, v_E])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 4. Rhs expressions \n", "Provide symbolic expression for calculating the time derivative of each kinetic variable currently in the model. See how these correspond to our ODE system.\n", "\\begin{align}\n", " \\frac{dX}{dt} &= v_{BM}X \\\\\n", " \\frac{dC_j}{dt} &= v_jX\n", "\\end{align}" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "dfba_model.add_rhs_expression(\"Biomass\", mu * X)\n", "dfba_model.add_rhs_expression(\"Glucose\", v_G * X / 1000.0)\n", "dfba_model.add_rhs_expression(\"Xylose\", v_Z * X / 1000.0)\n", "dfba_model.add_rhs_expression(\"Oxygen\", v_O * X / 1000.0)\n", "dfba_model.add_rhs_expression(\"Ethanol\", v_E * X / 1000.0)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 5. Lower/upper bound expressions \n", "Add symbolic expressions for calculating lower/upper bounds of selected exchange fluxes\n", "currently in the model. Here, the convention is that both lower and upper bound expressions have \n", "positive signs, whereas lower bounds values are typically negative in cobrapy. \n", "\n", "Here, the lower bounds will follow a Michaelis-Menten kinetics:\n", "\n", "$$\n", "lb = - \\frac{C_jV_{max}}{ C_j + K_m}\n", "$$\n", "\n", "(The Kinetic parameters $V_{max}$ and $K_m$ can be found in the literature for the given exchange reactions)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "dfba_model.add_exchange_flux_lb(\"EX_o2(e)\", 15.0 * (Oxy / (0.024 + Oxy)), Oxy)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "But we are not limited to this formula! Let's say Glucose is inhibited by Ethanol." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "dfba_model.add_exchange_flux_lb(\n", " \"EX_glc(e)\", 10.5 * (Gluc / (0.0027 + Gluc)) * (1 / (1 + Eth / 20.0)), Gluc\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And Xylose in inhibited by both Ethanol and Glucose" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "dfba_model.add_exchange_flux_lb(\n", " \"EX_xyl_D(e)\",\n", " 6.0\n", " * (Xyl / (0.0165 + Xyl))\n", " * (1 / (1 + Eth / 20.0))\n", " * (1 / (1 + Gluc / 0.005)),\n", " Xyl,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 6. Add initial conditions to the model and launch the simulation.\n", "Initial values for each kinetic variable are provided in dictionary form. \n", "\n", "The model is simulated using the `simulate` method. This simulation covers the interval $[0.0, 25.0]$ hours, with results stored every $0.1$ hours. Results (trajectories of kinetic variables) will be returned as [pandas.DataFrame](https://pandas.pydata.org/). Optionally, the user can also provide a list of reaction ids whose flux trajectories will also be returned as a separate [pandas.DataFrame](https://pandas.pydata.org/), in this case three exchange fluxes in the model." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "creating library...\n", "adding model 140634011303832 to library...\n", "cpp file generated\n", "setting user data for model 140634011303832...\n", "compiling dynamic library...\n", "simulating...\n" ] } ], "source": [ "dfba_model.add_initial_conditions(\n", " {\n", " \"Biomass\": 0.03,\n", " \"Glucose\": 4.0,\n", " \"Xylose\": 5.0,\n", " \"Oxygen\": 0.5,\n", " \"Ethanol\": 0.0,\n", " }\n", ")\n", "concentrations, trajectories = dfba_model.simulate(0.0, 16.0, 0.1, [\"EX_glc(e)\", \"EX_xyl_D(e)\", \"EX_etoh(e)\"])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 7. Plotting the results\n", "
\n", "\n", "**Note:** In order plot the results, one of [plotly](https://plot.ly/python/) or [matplotlib](https://matplotlib.org/) must be used. Check the [original example in the documentation](https://dynamic-fba.readthedocs.io/en/latest/example1.html#Matplotlib) to see the matplotlib counterpart.\n", "\n", "
" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "from dfba.plot.plotly import *" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "line": { "dash": "dot" }, "mode": "lines", "name": "Ethanol", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "xaxis": "x", "y": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7.866934054500955e-05, 0.008611687772863325, 0.028843555545658057, 0.05402998089226537, 0.08066223799794613, 0.1078978239154341, 0.13574513683209288, 0.1642583996412608, 0.19354237643358513, 0.22351520639219186, 0.2544719421308307, 0.2859896360515528, 0.31831323765487823, 0.3510628597315077, 0.3849311664652387, 0.4193497580211214, 0.4544080405093462, 0.49005388816159745, 0.5263415960598415, 0.56320162616826, 0.600793170745332, 0.6391874440888292, 0.6782980560361688, 0.7181725315470783, 0.7589194759567859, 0.8004659499453405, 0.8428174028945249, 0.8860784832972756, 0.9301918340948234, 0.9751574552871686, 1.0210229122279915, 1.0677965681246775, 1.115482849331327, 1.1640936783867606, 1.2136409778297983, 1.2641366701992613, 1.3155987980829709, 1.3680551897387694, 1.4215081385640436, 1.4759714120182374, 1.5314587775607968, 1.587984002651166, 1.6455608547487894, 1.704190565703338, 1.7638895288310812, 1.8246734402760532, 1.8865551048411622, 1.9495473273293176, 2.013662912543427, 2.0789126500815924, 2.1453034090771235, 2.212851958821933, 2.2815705914850852, 2.3514715992356465, 2.4225575407711446, 2.494842934744635, 2.5683395669736107, 2.64305016794538, 2.7189850759924656, 2.7961424348104136, 2.874507590835107, 2.9539970980588754, 3.017184487200943, 3.060460431765365, 3.1038336143610503, 3.1473171206679464, 3.1908624802074295, 3.2345972875515865, 3.278332094895743, 3.3220669022399, 3.365890619923398, 3.409838880961059, 3.4537871419987196, 3.4977354030363803 ], "yaxis": "y2" }, { "line": { "dash": "dot" }, "mode": "lines", "name": "Glucose", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "xaxis": "x", "y": [ 4, 3.999967238747937, 3.999931740756966, 3.9998931270857896, 3.9998513696035003, 3.999805279608935, 3.9997550729351445, 3.999700833630429, 3.9996425616947886, 3.9995780261155676, 3.9995079097852253, 3.9994326347414644, 3.9993522009842835, 3.999263201758475, 3.9991659620780005, 3.999061573347771, 3.9989500355677863, 3.9988272726238985, 3.9986925503248414, 3.9985478703731325, 3.9983932327687732, 3.9982260386849897, 3.998043781460169, 3.9978473789491416, 3.997636085490659, 3.997407723655065, 3.997159289088165, 3.996890854797135, 3.996601154868385, 3.9962882957503743, 3.9959470631573244, 3.9955776637686293, 3.9951782540024716, 3.9947469902770334, 3.994277448693133, 3.993768923015435, 3.9932192379571565, 3.9926259384502014, 3.9919815025538115, 3.991281836867792, 3.990525247516539, 3.9897082756988804, 3.988823459941893, 3.9878610719707046, 3.9868201404225756, 3.9856958337398574, 3.9844821116517237, 3.983165434077041, 3.981742283808261, 3.9802050366907844, 3.978545721462377, 3.976748097556133, 3.9748038124329037, 3.9727019020715897, 3.970430269465335, 3.967970665316888, 3.9653064614261684, 3.962422924488788, 3.9593025315733477, 3.9559256601013586, 3.9522706447120806, 3.9483171605932132, 3.944042770196448, 3.9394223038226035, 3.9344190120352027, 3.929008986690727, 3.92316151425024, 3.9168442978218274, 3.9100057174656695, 3.9026108744677206, 3.8946183805647863, 3.885983441153577, 3.876649356191184, 3.8665590344090766, 3.855656955413644, 3.8438797416179096, 3.8311582091832057, 3.8174206835605236, 3.8025893490688505, 3.786581593114648, 3.7693119975502243, 3.7506924938210022, 3.7306329555701856, 3.709044860149082, 3.6858456517333202, 3.66097071163391, 3.6343972240231697, 3.6061918649906772, 3.576586634986221, 3.545973034444731, 3.5145895887888963, 3.482499663972594, 3.449691770805045, 3.4161380886918864, 3.381784350264648, 3.3465067229065597, 3.310403834623651, 3.2731226908384805, 3.2351698271953087, 3.196252463527664, 3.156825303982033, 3.1160599158894273, 3.074636621124652, 3.032448527994426, 2.9895586295225622, 2.945902074045141, 2.9015619198644096, 2.856348559864767, 2.8101771737307075, 2.76315065710364, 2.715212887232059, 2.6662356108722682, 2.61630496287535, 2.5654145853751453, 2.513442383583953, 2.4604552767446304, 2.406453264857178, 2.351381864797248, 2.2952314970361996, 2.2379970914634963, 2.1796649915599526, 2.120221540806383, 2.059653082683603, 1.9979392981655735, 1.9350492151916914, 1.870979659874653, 1.805714967247907, 1.7392394723449005, 1.6715375101990821, 1.6025934158438992, 1.5324122959374171, 1.460974134443351, 1.3882600705464414, 1.3142560344111722, 1.2389479562020276, 1.1623217660834908, 1.0843693874164533, 1.0050944029799596, 0.924470952592828, 0.8424864909868223, 0.7591284728937071, 0.6744239656848512, 0.5883513628945263, 0.5009014959288017, 0.41212387667935757, 0.32202113660495957, 0.23070050486183363, 0.13838793217508158, 0.04618651981703705, 3.0215177312901695e-09, -8.993611446256924e-10, -8.993611446256934e-10, -8.993611446256934e-10, -8.993611446256934e-10, -8.993611446256934e-10, -8.993611446256934e-10, -8.993611446256934e-10, -8.993611446256936e-10, -8.99361144625694e-10, -8.993611446256943e-10, -8.993611446256947e-10 ], "yaxis": "y2" }, { "line": { "dash": "dot" }, "mode": "lines", "name": "Oxygen", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "xaxis": "x", "y": [ 0.5, 0.4999553117532659, 0.49990689065225913, 0.4998542198932197, 0.4997972611110777, 0.4997343932273019, 0.4996659105820106, 0.49959192779521533, 0.499512444866916, 0.4994244195466972, 0.499328783039437, 0.499226110843607, 0.4991164029592072, 0.4989950143984864, 0.49886238830625, 0.4987200127736963, 0.4985678878008253, 0.4984004568376341, 0.4982167190361752, 0.49801940311299775, 0.49780850906810176, 0.49758049560723516, 0.4973319470251078, 0.4970641140376438, 0.4967759805687002, 0.49646458081346057, 0.4961258228922035, 0.49575980556082444, 0.49536480428299695, 0.4949382406578111, 0.49447301862039283, 0.49396941701071095, 0.4934249254087317, 0.49283703339442136, 0.4921970161647445, 0.4915039064037975, 0.49075474364812405, 0.4899461878386871, 0.4890680306974371, 0.488114711382535, 0.4870839216423522, 0.4859709608431779, 0.48476572039596644, 0.48345502906640264, 0.4820375469649985, 0.48050671874545164, 0.47885436555222305, 0.4770622349974287, 0.47512553713251693, 0.4730339656742179, 0.47077674811414044, 0.4683320916338698, 0.46568870817653724, 0.462831826822384, 0.4597451634664016, 0.45640438353834184, 0.4527872462806562, 0.4488739620558169, 0.444641079039871, 0.4400626927892884, 0.4351105046751774, 0.42975729858828593, 0.42397339234963344, 0.4177257300556563, 0.4109673180926001, 0.40366638375671754, 0.3957829171806921, 0.3872749064330812, 0.37808030362794703, 0.3681536669574652, 0.35744256498906174, 0.34589071100646807, 0.3334330358225192, 0.32000294938086654, 0.30553357818240334, 0.2899562793345277, 0.27320611988478166, 0.25520626058727397, 0.2358869932685085, 0.21519982700290832, 0.1931100130152182, 0.1696102662947304, 0.14474626664007376, 0.11866298456585747, 0.09168997085565231, 0.06455048531913861, 0.03878714917673752, 0.017530229728304324, 0.005088574070216557, 0.0009700027265587853, 0.00015519645172380042, 2.276619385678656e-05, 3.383756501768124e-06, 5.523807617677128e-07, 1.0305344661109876e-07, 5.495961669639489e-08, 6.075495726074672e-10, -5.468932124425157e-08, -5.468932124425156e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.468932124425155e-08, -5.4689321244251526e-08, -5.468932124425138e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08, -5.468932124425139e-08 ], "yaxis": "y2" }, { "line": { "dash": "dot" }, "mode": "lines", "name": "Xylose", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "xaxis": "x", "y": [ 5, 4.99999997668937, 4.999999951431244, 4.999999923955891, 4.999999894243291, 4.999999861447249, 4.999999825721411, 4.999999787125606, 4.999999745659834, 4.999999699735641, 4.999999649839239, 4.999999596271112, 4.999999539031264, 4.999999475693575, 4.999999406489506, 4.999999332196298, 4.99999925281395, 4.999999165438546, 4.999999069547029, 4.99999896656546, 4.999998856493838, 4.999998737479237, 4.999998607734438, 4.999998467913861, 4.999998317485862, 4.999998154896668, 4.999997978002178, 4.999997786855187, 4.999997580552644, 4.999997357742607, 4.9999971146981, 4.999996851569295, 4.999996567039985, 4.999996259793967, 4.999995925222284, 4.999995562826363, 4.999995171051537, 4.999994748142012, 4.999994288693798, 4.999993789771483, 4.9999932501673365, 4.999992667402867, 4.999992036101083, 4.9999913492435155, 4.999990606152926, 4.999989803356751, 4.999988936498546, 4.999987995737559, 4.999986978562359, 4.9999858794582694, 4.999984692656789, 4.999983406276315, 4.999982014272141, 4.999980508670999, 4.999978880664564, 4.999977116793622, 4.99997520484378, 4.999973134053124, 4.999970891559258, 4.999968462707074, 4.999965831102877, 4.999962981834851, 4.999959898186003, 4.999956561269255, 4.999952942825667, 4.999949025102689, 4.999944784862138, 4.999940197630836, 4.9999352220857425, 4.999929831780917, 4.999923994716881, 4.999917676054535, 4.999910829839571, 4.999903410088385, 4.999895372677183, 4.999886665531752, 4.99987722991427, 4.999867006525214, 4.9998559287512645, 4.999843923338888, 4.999830913957114, 4.999816820472548, 4.999801558420893, 4.999785041642979, 4.999767184925037, 4.999747913092377, 4.999727180122915, 4.999705007565734, 4.999681546343376, 4.999657081946309, 4.999631782406993, 4.999605678801377, 4.999578736810259, 4.999550905023459, 4.999522096668613, 4.999492131138502, 4.999461107186924, 4.999428516182605, 4.999395021964927, 4.999360173112638, 4.999324600576261, 4.999287071830913, 4.999248531064376, 4.999208813851114, 4.999167918063673, 4.999125734793651, 4.9990824035247, 4.99903751444079, 4.998990884211643, 4.99894273523547, 4.9988928573454885, 4.998840770262827, 4.998786796542674, 4.998730894652416, 4.9986722670107175, 4.998611350765962, 4.99854814591815, 4.998481946917896, 4.998412629711547, 4.998340128641831, 4.998264266858597, 4.998184867511698, 4.99810175375098, 4.998014371014636, 4.997921560797718, 4.997823740532728, 4.997720619506373, 4.9976119070053535, 4.99749731231638, 4.997376544726155, 4.99724474418774, 4.997102577134415, 4.9969504558744, 4.996787738798113, 4.9966137842959775, 4.996427950758412, 4.996226026074434, 4.9959968519283855, 4.995746810916622, 4.9954743531547035, 4.995177928758192, 4.994825659692905, 4.9944229334902674, 4.993965069136683, 4.993393404202661, 4.992691757958528, 4.991741029476878, 4.990302980881779, 4.987229385699455, 4.955535766531048, 4.900380248938341, 4.845124040158932, 4.789754272900029, 4.734321769594852, 4.678697114550093, 4.623072459505332, 4.567447804460572, 4.511734420689975, 4.45589674796482, 4.400059075239664, 4.344221402514508 ], "yaxis": "y2" }, { "mode": "lines", "name": "Biomass", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "xaxis": "x", "y": [ 0.03, 0.03246376754825774, 0.03513333993573485, 0.03803721144001146, 0.041177497343973433, 0.04464357824837598, 0.048419225270258874, 0.052498118663737325, 0.05688025842881135, 0.06173338841426972, 0.06700616377042988, 0.07266685261615194, 0.07871545495143588, 0.08540809588297833, 0.09272034036021795, 0.10057013488003537, 0.10895747944243062, 0.11818878212804841, 0.12831923327955158, 0.139198361687271, 0.1508261673512068, 0.16339795526543546, 0.17710210409999594, 0.19186963594773174, 0.20775658815852882, 0.22492654975521617, 0.24360522673180798, 0.2637871596502662, 0.28556746620995993, 0.30908838011704903, 0.33474141850058625, 0.36251115332121914, 0.3925360671195424, 0.4249546424361512, 0.46024857116262285, 0.4984711129353864, 0.5397856053950473, 0.5843763505728535, 0.6328070829583992, 0.6853847909848187, 0.7422367748287622, 0.80362250101351, 0.8701005145874267, 0.9423987354130715, 1.0205907693023986, 1.1050386547623776, 1.1961943880597168, 1.2950681343844725, 1.4019241125187984, 1.5173321983376153, 1.6418881009950719, 1.7767997293782656, 1.9226912968686856, 2.080380449232686, 2.2507688327850808, 2.435208021882393, 2.6349320612152756, 2.8510374785019423, 3.084825254895718, 3.3377389205858066, 3.611360992293775, 3.9072010122899363, 4.226911891883132, 4.572338834249462, 4.946128557007563, 5.350047721422523, 5.786335754013683, 6.2573452698304255, 6.766646125207815, 7.316782155983019, 7.9107157299592785, 8.551635859420296, 9.243348576046902, 9.98972617894824, 10.794613382772493, 11.6621118175492, 12.596325691665049, 13.601864114414303, 14.683219212342554, 15.844207689079337, 17.088201449440025, 18.41761165580303, 19.83292246859856, 21.3308729014012, 22.90116724035645, 24.518378117668025, 26.125478431461055, 27.603795329995254, 28.764488457754574, 29.607630806028798, 30.332658799922147, 31.044931665122512, 31.76743865578871, 32.50516403281593, 33.259946294513625, 34.034513736584934, 34.82675037127361, 35.644166853121504, 36.475927460414745, 37.32824324780643, 38.1914180489117, 39.08305665196597, 39.988654088817405, 40.91047828506085, 41.84713091695184, 42.79998223442724, 43.76727729973323, 44.75297427696092, 45.758843841888826, 46.78273798529447, 47.8257857317991, 48.8905671592855, 49.975349487998464, 51.08025408870623, 52.207611733685006, 53.35614494402734, 54.52585371973323, 55.717704003939446, 56.93186563418848, 58.168428499570446, 59.42763471947806, 60.709726413304, 62.01494570044099, 63.3436450191435, 64.69635320232855, 66.0731387962814, 67.4742771765898, 68.9000437188415, 70.35071379862428, 71.8265627915259, 73.32729618508675, 74.85330873037341, 76.40496348393326, 77.98249205751135, 79.58612606285286, 81.21609711170284, 82.87250779045631, 84.55520967412669, 86.26468820453148, 88.00114217156019, 89.7647703651023, 91.55517884724999, 93.37270199147629, 95.21750499227169, 97.0891558207563, 98.98772064502678, 100.9124115895102, 102.86158579681985, 104.82716129285, 106.03823436165669, 106.38403426817038, 106.72811834358839, 107.0701829965368, 107.4110156356866, 107.74807478879988, 108.08513394191318, 108.42219309502647, 108.75732573130654, 109.0897597515422, 109.42219377177787, 109.75462779201352 ], "yaxis": "y" } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 0.94 ], "title": { "text": "$\\textrm{Time} \\left[ \\textrm{h} \\right]$" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "$\\textrm{Biomass} \\left[ \\textrm{g} \\, \\textrm{L}^{-1} \\right]$" } }, "yaxis2": { "anchor": "x", "overlaying": "y", "side": "right", "title": { "text": "$\\textrm{Metabolites} \\left[ \\textrm{mmol} \\, \\textrm{L}^{-1} \\right]$" } } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "fig = plot_concentrations(concentrations)\n", "fig.show()" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "mode": "lines", "name": "EX_glc(e)", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "y": [ 0, -10.492917222864405, -10.492917160049643, -10.492917091720326, -10.492917017826354, -10.492916936263786, -10.492916847414053, -10.492916751425346, -10.492916648297092, -10.492916534080088, -10.492916409981929, -10.492916276748577, -10.492916134379, -10.492915976841681, -10.49291580470994, -10.492915619913784, -10.492915422451233, -10.492915205103321, -10.492914966566401, -10.492914710380749, -10.49291443654254, -10.492914140445015, -10.492913817642766, -10.492913469754368, -10.49291309545145, -10.49291269086771, -10.492912250669082, -10.492911774971684, -10.492911261517404, -10.49291070693302, -10.49291010195393, -10.492909446920882, -10.492908738536093, -10.492907973496845, -10.492907140366961, -10.492906237844931, -10.492905262015633, -10.492904208458397, -10.492903063740657, -10.492901820499455, -10.492900475619894, -10.492899022834774, -10.492897448734922, -10.492895735840474, -10.492893882220883, -10.492891879045661, -10.492889715291119, -10.492887366503238, -10.492884826035702, -10.492882079854068, -10.492879113226504, -10.492875896530121, -10.492872414122802, -10.492868645561288, -10.492864568217689, -10.492860148224423, -10.492855354376161, -10.492850158610493, -10.492844527540283, -10.492838423626226, -10.492831805202423, -10.492824632531907, -10.492816861485354, -10.49280844230213, -10.492799303268878, -10.49278939512157, -10.492778655106122, -10.492767016304484, -10.492754374581905, -10.49274065473626, -10.492725767506865, -10.492709614853197, -10.492692073490428, -10.492673015751109, -10.492652312803713, -10.49262981612125, -10.492605360330725, -10.492578768487078, -10.49254984380966, -10.492518370750933, -10.492484117224864, -10.49244683308589, -10.492406249231616, -10.492362082775577, -10.492314043887005, -10.492261859148538, -10.492205322471792, -10.492103132688193, -10.487563646120908, -10.476901543729456, -10.463672215865891, -10.449720709393832, -10.435489968638976, -10.420977855843361, -10.406158591511504, -10.390980555492096, -10.375489090005651, -10.359535134184414, -10.343339843562887, -10.326780182171435, -10.31005329344718, -10.29280870548069, -10.275339432939372, -10.257602581232248, -10.239627097960913, -10.221388185765464, -10.202923333081111, -10.18415555839144, -10.165052650475113, -10.145660886065919, -10.125959889697043, -10.10589958701978, -10.085519529692878, -10.064820480068805, -10.043754992573595, -10.022354745260138, -10.00062326341721, -9.97854113199492, -9.956107923955487, -9.933325003506937, -9.910190027557809, -9.8867005175861, -9.862853807703202, -9.838644111204534, -9.814060784375886, -9.789104742255748, -9.763770948656216, -9.738053650308316, -9.711946161659528, -9.685440582932088, -9.658533234802439, -9.631211296803853, -9.603459518204307, -9.575260277618167, -9.546590902245942, -9.517421732417338, -9.48771424931716, -9.45741773672282, -9.426455579831842, -9.394721134279358, -9.362056410849497, -9.32822379811322, -9.292827387832434, -9.255182870598338, -9.21400400176022, -9.166513630839756, -9.105518617272613, -9.004837757573364, -8.643449323726221, -1.0210052919164126e-05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, { "mode": "lines", "name": "EX_xyl_D(e)", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "y": [ 0, -0.007466059980636826, -0.007466126156454569, -0.007466198141896074, -0.007466275989741963, -0.0074663619165101, -0.007466455520360421, -0.007466556645166932, -0.007466665291540721, -0.007466785619990553, -0.0074669163583078344, -0.007467056720614612, -0.0074672067079961085, -0.0074673726747012505, -0.007467554016728155, -0.007467748700802339, -0.007467956729010164, -0.007468185706578823, -0.00746843700690954, -0.007468706900292819, -0.007468995390758399, -0.0074693073315501655, -0.007469647405940511, -0.0074700139087366104, -0.007470408239392974, -0.0074708344710659675, -0.007471298223233893, -0.0074717993735537135, -0.0074723403009486255, -0.007472924559127634, -0.0074735619083862075, -0.007474251989733606, -0.007474998277387101, -0.0074758042507571815, -0.007476681957901244, -0.007477632769939761, -0.00747866081143876, -0.00747977073956155, -0.007480976705543855, -0.007482286466241084, -0.007483703303152046, -0.00748523381872551, -0.007486892139499137, -0.007488696680477714, -0.007490649475377846, -0.0074927598270114705, -0.007495039348713152, -0.007497513802667012, -0.00750019019055867, -0.007503083297444102, -0.0075062086430285405, -0.0075095974347019825, -0.007513266151020927, -0.007517236328460964, -0.007521531804918125, -0.007526188259166822, -0.0075312385651391265, -0.007536712285553444, -0.007542644592516392, -0.007549075032205877, -0.007556047497859738, -0.007563603850291101, -0.00757179057727477, -0.007580660098694944, -0.00759028796085509, -0.007600726059323101, -0.007612040500593198, -0.007624301777028383, -0.007637619587078564, -0.007652073147964982, -0.007667756485972246, -0.007684772875115466, -0.007703252181637371, -0.007723328886303109, -0.007745138693415388, -0.007768838052480046, -0.007794601155633875, -0.007822614380983634, -0.007853084996886753, -0.00788624003492837, -0.007922323941109132, -0.007961600176629072, -0.008004352161353862, -0.00805087782268507, -0.008101482388383515, -0.00815645377955558, -0.00821600897572061, -0.008280147753181899, -0.008345030542942724, -0.008408472177642014, -0.008472794023715022, -0.008539414995831808, -0.008608834177260242, -0.008681244742988358, -0.008756902275116645, -0.008836243760930548, -0.008919226705606294, -0.009006875213170217, -0.009098217033604788, -0.009194173148023298, -0.009293841864529447, -0.009399589319091841, -0.00950996327800854, -0.009625523741053826, -0.00974640108115848, -0.009873106883695653, -0.010005754956340736, -0.010145313131275306, -0.010292522427961878, -0.0104475779975582, -0.010611231333743512, -0.010784578272931838, -0.01096805142501128, -0.011162474371035203, -0.011369232123813982, -0.011589099820591177, -0.011823224718092967, -0.01207314695926629, -0.012340402424761457, -0.012626710882813186, -0.012934076269930974, -0.013264793567026603, -0.013621503669658183, -0.014007303724030681, -0.01442587285447679, -0.01488132657969744, -0.015378602726684095, -0.015923560799522722, -0.016523207644545877, -0.01718599282778515, -0.017921968367901404, -0.01874376321834004, -0.0196670680914297, -0.020711569977461312, -0.021902399241078216, -0.023272150744964918, -0.024863743159628852, -0.026734723328637754, -0.02896536982502664, -0.03166945280113891, -0.03501438918474412, -0.03925481629289784, -0.04480473712846039, -0.05237851008198024, -0.06331674337344124, -0.08049216286737129, -0.11130026544008113, -0.1823279742074851, -0.5089825054355651, -5.196191591850105, -5.186250616935533, -5.176316285680908, -5.1663895934169775, -5.156481420621269, -5.146562795741129, -5.136676354626327, -5.12682173141466, -5.116978716381206, -5.10713920204409, -5.097330677232662, -5.087552742402781 ] }, { "mode": "lines", "name": "EX_etoh(e)", "type": "scatter", "x": [ 0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6, 0.7, 0.7999999999999999, 0.8999999999999999, 0.9999999999999999, 1.0999999999999999, 1.2, 1.3, 1.4000000000000001, 1.5000000000000002, 1.6000000000000003, 1.7000000000000004, 1.8000000000000005, 1.9000000000000006, 2.0000000000000004, 2.1000000000000005, 2.2000000000000006, 2.3000000000000007, 2.400000000000001, 2.500000000000001, 2.600000000000001, 2.700000000000001, 2.800000000000001, 2.9000000000000012, 3.0000000000000013, 3.1000000000000014, 3.2000000000000015, 3.3000000000000016, 3.4000000000000017, 3.5000000000000018, 3.600000000000002, 3.700000000000002, 3.800000000000002, 3.900000000000002, 4.000000000000002, 4.100000000000001, 4.200000000000001, 4.300000000000001, 4.4, 4.5, 4.6, 4.699999999999999, 4.799999999999999, 4.899999999999999, 4.999999999999998, 5.099999999999998, 5.1999999999999975, 5.299999999999997, 5.399999999999997, 5.4999999999999964, 5.599999999999996, 5.699999999999996, 5.799999999999995, 5.899999999999995, 5.999999999999995, 6.099999999999994, 6.199999999999994, 6.299999999999994, 6.399999999999993, 6.499999999999993, 6.5999999999999925, 6.699999999999992, 6.799999999999992, 6.8999999999999915, 6.999999999999991, 7.099999999999991, 7.19999999999999, 7.29999999999999, 7.39999999999999, 7.499999999999989, 7.599999999999989, 7.699999999999989, 7.799999999999988, 7.899999999999988, 7.999999999999988, 8.099999999999987, 8.199999999999987, 8.299999999999986, 8.399999999999986, 8.499999999999986, 8.599999999999985, 8.699999999999985, 8.799999999999985, 8.899999999999984, 8.999999999999984, 9.099999999999984, 9.199999999999983, 9.299999999999983, 9.399999999999983, 9.499999999999982, 9.599999999999982, 9.699999999999982, 9.799999999999981, 9.89999999999998, 9.99999999999998, 10.09999999999998, 10.19999999999998, 10.29999999999998, 10.399999999999979, 10.499999999999979, 10.599999999999978, 10.699999999999978, 10.799999999999978, 10.899999999999977, 10.999999999999977, 11.099999999999977, 11.199999999999976, 11.299999999999976, 11.399999999999975, 11.499999999999975, 11.599999999999975, 11.699999999999974, 11.799999999999974, 11.899999999999974, 11.999999999999973, 12.099999999999973, 12.199999999999973, 12.299999999999972, 12.399999999999972, 12.499999999999972, 12.599999999999971, 12.69999999999997, 12.79999999999997, 12.89999999999997, 12.99999999999997, 13.09999999999997, 13.199999999999969, 13.299999999999969, 13.399999999999968, 13.499999999999968, 13.599999999999968, 13.699999999999967, 13.799999999999967, 13.899999999999967, 13.999999999999966, 14.099999999999966, 14.199999999999966, 14.299999999999965, 14.399999999999965, 14.499999999999964, 14.599999999999964, 14.699999999999964, 14.799999999999963, 14.899999999999963, 14.999999999999963, 15.099999999999962, 15.199999999999962, 15.299999999999962, 15.399999999999961, 15.499999999999961, 15.59999999999996, 15.69999999999996, 15.79999999999996, 15.89999999999996, 15.99999999999996 ], "y": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5171345134721456, 5.348724388267854, 8.002538772918163, 8.626518130887966, 8.679376490440792, 8.660993462885056, 8.648802089782693, 8.637299928683106, 8.625680219366668, 8.613819844262133, 8.601628284819451, 8.589254107908918, 8.576603221280315, 8.563826393316011, 8.550656099791734, 8.537316353986542, 8.523774592076146, 8.510053125845888, 8.496133254307377, 8.482043835845914, 8.467726404659231, 8.453156719126671, 8.438370438945258, 8.423352416765914, 8.408064930385759, 8.392538633015155, 8.376774654311328, 8.360737481539115, 8.344451949037545, 8.327921521740912, 8.31113231094126, 8.294085003879015, 8.276781784628865, 8.25922217866221, 8.241405799829497, 8.223332346749919, 8.204999423469298, 8.186401289529158, 8.167541367568813, 8.148419054439149, 8.129033805592096, 8.109385119000414, 8.08947251391112, 8.06929980909929, 8.048865508063441, 8.028168271992639, 8.007207583190523, 7.9859826432544585, 7.9644922228833614, 7.9427351141817475, 7.920710412481111, 7.8984123526570835, 7.875834248955528, 7.852965450615146, 7.829791820775173, 7.80628301431233, 7.782385770095623, 7.757998577856795, 7.732887855668602, 7.706418728482878, 7.676061771794838, 7.614489011363061, 4.076094403943977, 4.069516242216821, 4.062950310661406, 4.056389427970254, 4.049840785414615, 4.043285234727041, 4.036750955365639, 4.030237705519848, 4.023732127907013, 4.017228864021389, 4.010746082149036, 4.004283518217878 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "title": { "text": "$\\textrm{Time} \\left[ \\textrm{h} \\right]$" } }, "yaxis": { "title": { "text": "$\\textrm{Flux} \\left[ \\textrm{mmol} \\, \\textrm{g}_{\\textrm{DW}}^{-1} \\, \\textrm{h}^{-1} \\right]$" } } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "fig = plot_trajectories(trajectories)\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Exercises (10 min)\n", "1. Add a death rate $\\delta$ to the model.\n", " $$\n", " \\frac{dX}{dt} = v_{BM}X - \\delta X\n", " $$\n", "2. Run under anaerobic conditions from the start.\n", "3. Try to change xylose with another carbon source, can you add a refreshment $\\epsilon$ to this carbon source?\n", " $$\n", " \\frac{dC_j}{dt} = v_{j}X + \\epsilon\n", " $$" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "dfba_model = DfbaModel(fba_model)\n", "# YOUR CODE..." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.9" } }, "nbformat": 4, "nbformat_minor": 4 }