{ "cells": [ { "cell_type": "markdown", "id": "2035e1d8-d4c4-4894-bf65-2795562619f6", "metadata": {}, "source": [ "# Building a model\n", "## Building through individual reactions\n", "We begin by constructing a kinetic model for a metabolic system, which consists of biochemical reactions governed by user-defined rate laws.\n", "\n", "First, initialize an empty model:" ] }, { "cell_type": "code", "execution_count": 1, "id": "8ac2ea83-775c-4ea8-8d6b-21a85277e46e", "metadata": {}, "outputs": [], "source": [ "from robustnet import Model\n", "\n", "model = Model('demo')\n", "print(model)" ] }, { "cell_type": "markdown", "id": "b89925e6-2ddf-44b0-ad57-2a500417e498", "metadata": {}, "source": [ "Then a reaction can be created and added to the model by specifying reaction ID, catalytic enzyme ID (None for non-enzymatic reations), substrate and product stoichiometry, as well as kinetic rate expression.\n", "\n", "Below is an example of adding the glucose phosphotransferase system reaction using a generalized reversible Hill-type rate law:\n", "\n", "