Difference between revisions of "Team:Oxford/Modeling"

Line 3: Line 3:
 
<html>
 
<html>
 
     <div class="container-fluid page-heading">
 
     <div class="container-fluid page-heading">
         <h3>Modeling</h3>
+
         <h3>Notebook</h3>
 
     </div>
 
     </div>
 
     <div class="container-fluid">
 
     <div class="container-fluid">
 
         <div class="row">
 
         <div class="row">
 
             <div class="col-md-9">
 
             <div class="col-md-9">
                 <div class="section" id="introduction">
+
                 <div class="section" id="week-1">
 
                     <div class="slim">
 
                     <div class="slim">
                         <h2>Introduction</h2>
+
                         <h2>Week 1</h2>
                         <p>
+
                         <div id="week-day-1">
                            Modeling allows us to observe what happens to a system when you change the parameters that describe it. By quantifying the system’s response to these variables, we can aid the wet lab team in their design of their biological system. By repeating the modeling, data-fitting and refining schedule we approach a sufficient description of our required design.
+
                             <h3>Week 1 - Day 1</h3>
                        </p>
+
                            <div class="section" id="week-1-day-1-preparation-of-stock-solutions">
                        <p>
+
                            <h4>Preparation of Stock Solutions</h4>
                             Our modeling is made up of three pieces: gene expression, diffusion and biofilm modeling. By modeling gene expression, we can inform the lab team which parameters they can choose freely - and which ones they must pick carefully - to maximise the output of our product. The gene copy number is one example of these parameters. By modeling diffusion, we can incorporate into our previous model the effect of our protein being separated from the biofilm it is trying to interact with. If this is a large effect, the lab team must change the design of their system. Finally, by modeling the formation of a biofilm and its interaction with our product, we can decide upon the required concentrations of product we need to clear the urinary tract infection. In all cases we use both deterministic and stochastic models to investigate our system.
+
                            <ol>
                        </p>
+
                                <li>
                    </div>
+
                                    <h4>gBlocks</h4>
                </div>
+
                                    <p>
                <div class="section-spacer"></div>
+
                                        The gBlocks ordered from IDT arrived in the form of vials of 200ng solid DNA powder.
                <div class="section" id="gene-expression">
+
                                    </p>
                    <div class="slim">
+
                                    <p>
                        <h2>Gene Expression</h2>
+
                                        (refer to BioBricks page for information on DNA sequences)
                        <div id="gene-expression-deterministic">
+
                                    </p>
                            <h3>Deterministic</h3>
+
                                    <p>
                            <p>
+
                                        The gBlocks were made into 10ng/µl stock solutions in Milli-Q water for storage:
                                A deterministic model evolves according to ordinary or partial differential equations. We model the following system:
+
                                    <table>
                            </p>
+
                                \[\overset{\alpha_{1}}{\rightarrow}Arab\quad\overset{\alpha_{5}}{\rightarrow}AraC\]
+
 
+
                                \[Arab+AraC\mathrel{\mathop{\rightleftharpoons}^{\mathrm{\alpha_{2}}}_{\mathrm{\alpha_{3}}}}Arab:AraC\]
+
 
+
                                \[\overset{K}{\rightarrow}mRNA\overset{\alpha_{4}}{\rightarrow}P\]
+
 
+
                                \[Arab\overset{\gamma_{1}}{\rightarrow}\phi\quad AraC\overset{\gamma_{2}}{\rightarrow}\phi\quad mRNA\overset{\gamma_{3}}{\rightarrow}\phi\quad P\overset{\gamma_{4}}{\rightarrow}\phi\]
+
                            <p>
+
                                Using the following deterministic equations [<a href="#Ref4">4</a>]:
+
                            </p>
+
                                \[\dfrac{d\left[Arab\right]}{dt}=\alpha_{1}+\alpha_{2}\left[Arab\right]\left[AraC\right]-\alpha_{3}\left[Arab:AraC\right]-\gamma_{1}\left[Arab\right]\]
+
 
+
                                \[\dfrac{d\left[Arab:AraC\right]}{dt}=\alpha_{3}\left[Arab:AraC\right]-\alpha_{2}\left[Arab\right]\left[AraC\right]\]
+
 
+
                                \[\dfrac{d\left[AraC\right]}{dt}=\alpha_{5}+\alpha_{2}\left[Arab\right]\left[AraC\right]-\alpha_{3}\left[Arab:AraC\right]-\gamma_{2}\left[AraC\right]\]
+
 
+
                                \[\dfrac{d[mRNA]}{dt}=K_{max}\dfrac{[Arab:AraC]^{n}}{K_{half}^{n}+[Arab:AraC]^{n}}-\gamma_{3}[mRNA]\]
+
 
+
                                \[\dfrac{d\left[P\right]}{dt}=\alpha_{4}\left[mRNA\right]-\gamma_{4}\left[P\right]\]
+
                            <p>
+
                                Where we define the symbols
+
                                <table border="1">
+
 
                                     <tr>
 
                                     <tr>
                                         <th>Symbol</th>
+
                                         <td>mass/ng</td>
                                         <th>Definition</th>
+
                                         <td>conc/ng\(\mu\)l<sup>-1</sup></td>
                                        <th>Initial Value/Literature Value</th>
+
                                         <td>final volume\(mu\)l</td>
                                         <th>Fitted</th>
+
 
                                     </tr>
 
                                     </tr>
 
                                     <tr>
 
                                     <tr>
                                         <td>\([Arab]\)</td>
+
                                         <td>200</td>
                                         <td>The concentration of Arabinose</td>
+
                                         <td>10</td>
                                         <td>\(1\times10^{-4}M\)</td>
+
                                         <td>20</td>
                                        <td>-</td>
+
 
                                     </tr>
 
                                     </tr>
 +
                                    </table>
 +
                                    </p>
 +
                                </li>
 +
                                <li>
 +
                                    <h4>Primers</h4>
 +
                                    <p>
 +
                                        The forward and reverse primers ordered from IDT came in 32.4nmol and 34.3nmol of solid respectively.
 +
                                    </p>
 +
                                    <p>
 +
                                        (Sequences:
 +
                                        Forward - CTTTTTTGCCGGACTGC
 +
                                        Reverse - ATGATTTCTGGAATTCGC)
 +
                                    </p>
 +
                                    <p>
 +
                                        The primers were made into 100µM stock solutions in Milli-Q water for storage:
 +
                                    <table>
 
                                     <tr>
 
                                     <tr>
                                         <td>\([AraC]\)</td>
+
                                         <td>amt/10<sup>-9</sup>mol</td>
                                        <td>The concentration of AraC</td>
+
                                         <td>conc/10<sup>-6</sup>M</td>
                                         <td>\(1\times10^{-5}M\)</td>
+
                                         <td>final volume/10<sup>-6</sup>L</td>
                                         <td>-</td>
+
 
                                     </tr>
 
                                     </tr>
 
                                     <tr>
 
                                     <tr>
                                         <td>\([Arab:AraC]\)</td>
+
                                         <td>32.4</td>
                                         <td>The concentration of associated Arabinose and AraC</td>
+
                                         <td>100</td>
                                         <td>\(0\)</td>
+
                                         <td>324</td>
                                        <td>-</td>
+
 
                                     </tr>
 
                                     </tr>
 
                                     <tr>
 
                                     <tr>
                                         <td>\([mRNA]\)</td>
+
                                         <td>34.3</td>
                                         <td>The concentration of mRNA</td>
+
                                         <td>100</td>
                                         <td>\(0\)</td>
+
                                         <td>343</td>
                                        <td>-</td>
+
 
                                     </tr>
 
                                     </tr>
                                     <tr>
+
                                     </table>
                                        <td>\([P]\)</td>
+
                                     </p>
                                        <td>The concentration of our product</td>
+
                                </li>
                                        <td>\(0\)</td>
+
                            </ol>
                                        <td>-</td>
+
                            <div class="section" id="week-1-day-1-preparation-of-reaction-solutions">
                                     </tr>
+
                             <h4>Preparation of Reaction Solutions</h4>
                                    <tr>
+
                                        <td>\(\alpha_{1}\)</td>
+
                                        <td>Basal production of Arabinose</td>
+
                                        <td>???</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\alpha_{2}\)</td>
+
                                        <td>Association constant</td>
+
                                        <td>\(2.8\times10^{7}s^{-1}\) [<a href="#Ref7">7</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\alpha_{3}\)</td>
+
                                        <td>Dissociation constant</td>
+
                                        <td>\(0.022s^{-1}\) [<a href="#Ref7">7</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\alpha_{4}\)</td>
+
                                        <td>Translation rate</td>
+
                                        <td>\(15ntd\: s^{-1}\)/length of sequence [<a href="#Ref6">6</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\alpha_{5}\)</td>
+
                                        <td>Basal production of AraC</td>
+
                                        <td>???</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\gamma_{1}\)</td>
+
                                        <td> Degradation rate of Arabinose </td>
+
                                        <td>\(5.13\times10^{-4}s^{-1}\) [<a href="#Ref5">5</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\gamma_{2}\)</td>
+
                                        <td>Degradation rate of AraC</td>
+
                                        <td>\(5.13\times10^{-4}s^{-1}\) [<a href="#Ref5">5</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\gamma_{3}\)</td>
+
                                        <td>Degradation rate of mRNA</td>
+
                                        <td>\(5.13\times10^{-4}s^{-1}\) [<a href="#Ref5">5</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(\gamma_{4}\)</td>
+
                                        <td>Degradation rate of product</td>
+
                                        <td>\(5.13\times10^{-4}s^{-1}\) [<a href="#Ref5">5</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(K_{max}\)</td>
+
                                        <td>Maximal transcription rate</td>
+
                                        <td>\(50ntd\: s^{-1}\)/length of sequence [<a href="#Ref6">6</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(K_{half}\)</td>
+
                                        <td>Half-maximal transcription rate</td>
+
                                        <td>\(160\mu M\) [<a href="#Ref8">8</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                    <tr>
+
                                        <td>\(n\)</td>
+
                                        <td>Hill coefficient</td>
+
                                        <td>\(2.65\) [<a href="#Ref3">3</a>]</td>
+
                                        <td>?</td>
+
                                    </tr>
+
                                </table>
+
                             </p>
+
                            <p>
+
                                To evaluate these parameters, we will fit the data created by the wet lab team. We allow a tolerance of a factor of ten either side of our initial guess for each parameter. The fitted parameters will be given in the fourth column and will be found using the MATLAB function fmincon. To solve the equations numerically we use the MATLAB equation solver ode15s. We plot three solutions for various parameters below.
+
                            </p>
+
                            <div class="image image-full">
+
                                <img src="https://static.igem.org/mediawiki/2015/7/74/OxiGEM_Modeling_Arabinose_01.png"/>
+
                            </div>
+
                        </div>
+
                        <div id="gene-expression-stochastic">
+
                            <h3>Stochastic</h3>
+
                            <p>
+
                                A stochastic model is anything which includes some random element, and is useful for modeling small systems or those with some uncertainty. We produced a video tutorial on how to model gene expression networks stochastically using Gillespie's algorithm.[<a href="#Ref2">2</a>, <a href="#Ref4">4</a>].
+
                            </p>
+
                            <div class="algorithm">
+
                                <h3>The Gillespie Algorithm</h3>
+
 
                                 <ol>
 
                                 <ol>
                                     <li>Find random numbers \(r_{1}\) and \(r_{2}\) which are uniformly distributed between 0 and 1.</li>
+
                                     <li>
 
+
                                        <h4>gBlocks</h4>
                                    <li>Find propensities \(\alpha_{i}\) of \(N\) possible reactions. Find \(\alpha_{0}=\sum\limits_{i=1}^N \alpha_{i}\).</li>
+
                                        <p>
 
+
                                            2\(\mu\)l of each stock solution were diluted in Milli-Q water to achieve final solution volumes of 20\(\mu\)l to make 1ng/\(\mu\)l<sup>-1</sup>
                                     <li>Compute time \(\tau=\dfrac{1}{\alpha_{0}}\ln\left(\dfrac{1}{r_{1}}\right)\).</li>
+
                                        </p>
 
+
                                     </li>
                                     <li>Find the reaction \(j\) such that \(\dfrac{1}{\alpha_{0}}\sum\limits_{i=1}^{j-1} \alpha_{i}\leq r_{2}<\dfrac{1}{\alpha_{0}}\sum\limits_{i=1}^{j} \alpha_{i}\).</li>
+
                                     <li>
 
+
                                        <h4>Primers</h4>
                                    <li>Implement reaction \(j\) and increment time \(t\) to \(t+\tau\). </li>
+
                                        <p>
 
+
                                            2\(\mu\)l of each stock solution were diluted in Milli-Q water to achieve final solution volumes of 20\(\mu\)l to make 10\(\mu\)M reaction solutions.(The solutions are labelled as "Prefix primer" and "suffix primer" in eppendorf tubes in the fridge)
                                     <li>Repeat steps 1-5 until a sufficient time or computation budget has been exhausted.</li>
+
                                        </p>
 +
                                     </li>
 
                                 </ol>
 
                                 </ol>
 
 
                             </div>
 
                             </div>
                             <p>
+
                             <div class="sction" id="week-1-day-1-polymerase-chain-reaction-set-up">
                                Turning the reaction rates in our model into propensities is simple - for example, the propensity for the association reaction
+
                                <h4>Polymerase Chain Reaction Set-Up</h4>
                                \(Arab+AraC\rightarrow Arab:AraC\) is \(\alpha_{3}\left[Arab\right]\left[AraC\right]\).
+
                                <p>
                            </p>
+
                                    The protocol for running a PCR using NEB's Q5 High-Fidelity 2X Master Mix can be found <a href="https://www.neb.com/protocols/2012/08/29/protocol-for-q5-high-fidelity-2x-master-mix-m0492">here</a>.
                        </div>
+
                                 </p>
                    </div>
+
                                 <p>
                </div>
+
                                    25\(\mu\)l reactions were run, with the volume breakdown by component being:
                <div class="section-spacer"></div>
+
                                <table>
                <div class="section" id="diffusion">
+
                                 <tr>
                    <div class="slim">
+
                                    <td>Component</td>
                        <h2>Diffusion</h2>
+
                                    <td>Volume/\(\mu\)l</td>
                    </div>
+
                                    <td>Final conc/nM</td>
                    <div id="diffusion-deterministic">
+
                                </tr>
                        <div class="slim">
+
                                <tr>
                            <h3>Deterministic</h3>
+
                                    <td>Q5 HF Master Mix</td>
                            <p>
+
                                    <td>12.5</td>
                                 The standard from for the diffusion equation,
+
                                    <td>-</td>
                            </p>
+
                                </tr>
                                 \[\dfrac{d[P]}{dt}=D\dfrac{d^{2}[P]}{dx^{2}}\]
+
                                 <tr>
                            <p>
+
                                    <td>10\(\mu\)M Forward Primer</td>
                                where \([P]\) is the concentration of our product, \(t\) is time and \(x\) is distance and \(D\) is the diffusion constant, can be solved analytically in any number of dimensions:
+
                                    <td>1.25</td>
                            </p>
+
                                    <td>500</td>
                                 \[[P]\left(x,t\right)=\dfrac{1}{\left(4\pi Dt\right)^{\frac{N}{2}}}\exp\left(\dfrac{-\sum\limits_{i=1}^N x_{i}^{2}}{4Dt}\right)\]
+
                                </tr>
                            <p>
+
                                 <tr>
                                where \(x_{i}\) is a generalised position co-ordinate and \(N\) is the dimensionality of the system. This solution only applies to a source of [P] at the position \(x=0\). We can also solve for a grid of 1 or 2D points using finite difference models given in the <a href="#modeling-tutorial">tutorial section</a>.
+
                                    <td>10\(\mu\)M Reverse Primer</td>
                            </p>
+
                                    <td>1.25</td>
                        </div>
+
                                    <td>500</td>
                    </div>
+
                                 </tr>
                    <div id="diffusion-stochastic">
+
                                 <tr>
                        <div class="slim">
+
                                     <td>1ng/\(\mu\)l<sup>-1</sup></td>
                            <h3>Stochastic</h3>
+
                                     <td>1.0</td>
                            <p>
+
                                     <td>-</td>
                                We have the option of using three stochastic models for diffusion - random walk, random velocity and compartmental Gillespie.
+
                                </tr>
                            </p>
+
                                <tr>
                            <h4>Random Walk</h4>
+
                                     <td>Milli-Q Water</td>
                            <p>
+
                                    <td>9.0></td>
                                 We initially take a collection of particles and, for each one, compute the number
+
                                     <td>-</td>
                            </p>
+
                                 </tr>
                                \[dr=\sqrt{2Ddt}\xi_{r}\]
+
                                </table
                            <p>
+
                                </p>
                                where \(dt\) is the size of our timestep, \(dr\) is the absolute distance moved in the timestep and \(\xi_{r}\) is a normally distributed random number with mean 0 and variance 1. To calculate the distance that particles have actually moved depends on what dimensionality we are operating in. We work in polar or spherical poar co-ordinates in 2D and 3D respectively, and so sample angles \(\phi\) and \(\theta\) and uniformly distributed in the ranges [0,\(2\pi\)] and [0,\(\pi\)].
+
                            </p>
+
                            <h4>Random Velocity</h4>
+
                            <p>
+
                                 We initially take a collection of particles at position \(\mathbf{r_{0}}\). We give them random velocities uniformly distributed in the range \(\left[-2\mathbf{v},2\mathbf{v}\right]\) (where \(v\) is determined by thermal fluctuations) and decide that the direction of these velocities should change direction (or not) with some probability after every timestep. We summarise this process in the algorithm below.
+
                            </p>
+
                            <div class="algorithm">
+
                                 <h3>Random Velocity Algorithm</h3>
+
                                 <ol>
+
                                     <li>For each particle, generate a random speed \(s\) in a random direction.</li>
+
 
+
                                     <li>Compute the position of the particle after a timestep \(\Delta t\).</li>
+
 
+
                                     <li>Generate a random number \(r\) uniformly distributed between 0 and 1.</li>
+
 
+
                                     <li>If \(r<\dfrac{s^{2}}{2D}\Delta t\), calculate a new random direction of velocity for the particle.</li>
+
 
+
                                     <li>Repeat steps 2-5 for each particle until a certain time or computational budget is exhausted.</li>
+
                                 </ol>
+
 
                             </div>
 
                             </div>
                            </p>
 
                            <h4>Compartmental diffusion; Gillespie</h4>
 
                            <p>
 
                                We can divide our region into a system of compartments
 
                            </p>
 
                                \[A_{1} \mathrel{\mathop{\rightleftharpoons}^{\mathrm{k}}_{\mathrm{k}}} A_{2} \mathrel{\mathop{\rightleftharpoons}^{\mathrm{k}}_{\mathrm{k}}} ... \mathrel{\mathop{\rightleftharpoons}^{\mathrm{k}}_{\mathrm{k}}} A_{N-1} \mathrel{\mathop{\rightleftharpoons}^{\mathrm{k}}_{\mathrm{k}}} A_{N}\]
 
                            <p>
 
                                such that the only difference in their propensities is related to the number of particles contained in each compartment. This will produce a correct model of diffusion if the proportionality constant \(k\) is chosen as
 
                            </p>
 
                                \[k=\dfrac{D}{(dx)^{2}}\]
 
                            <p>
 
                                where \(dx\) is the physical size of each compartment [<a href="#Ref2">2</a>]. We now run the Gillespie algorithm but with \(2(N-1)\) reactions to consider.
 
                            </p>
 
                            <h4>Comparison of methods</h4>
 
                            <p>
 
                                All of the methods provide similar levels of accuracy (depending on the size of the compartments used in the Gillespie model) and so we choose based on the simplicity of implementation. The random walk method is generally the fastest and easiest to code, so we choose this one.
 
                            </p>
 
                            <h4>The challenge</h4>
 
                            <p>
 
                                Since we are modelling diffusion in the catheter, the topology of the system is a ring, neglecting edge effects of the cylinder our bacteria will be placed in. To do this we use a random walk model in two dimensions. We confine our particles to a ring of a fixed radius and initially coat the ring with particles.
 
                            </p>
 
 
                         </div>
 
                         </div>
 
                     </div>
 
                     </div>
 
                 </div>
 
                 </div>
                <div class="section-spacer"></div>
 
                <div class="section" id="modeling-tutorial">
 
                    <div class="slim">
 
                        <h2>Modeling Tutorial</h2>
 
                    </div>
 
                    <div id="modeling-tutorial-deterministic">
 
                        <div class="slim">
 
                            <h3>Deterministic</h3>
 
                            <p>
 
                                Our goal is to model a system of reactions such as the reversible reaction
 
                            </p>
 
                                \[A \mathrel{\mathop{\rightleftharpoons}^{\mathrm{k_{+}}}_{\mathrm{k_{-}}}} B\]
 
                            <p>
 
                                Where \(A\) and \(B\) are our two species and \(k_{+}\) and \(k_{-}\) will be determined shortly. To do this, we make the intuitive assumption that the rate at which something reacts is proportional to how much of it we've got. That is, the rate of change of \(B\) with time is
 
                            </p>
 
                                \[\dfrac{dB}{dt}=k_{+}A\]
 
                            <p>
 
                                where \(k_{+}\) is simply a proportionality constant. This assumption is called the law of mass action. This of course is not the complete picture, as we forgot to include the fact that \(B\) can react back to form \(A\). So the complete system of equations to solve is
 
                            </p>
 
                            \[\dfrac{dA}{dt}=k_{-}B-k_{+}A\]
 
                            \[\dfrac{dB}{dt}=k_{+}A-k_{-}B\]
 
                            <p>
 
                                At this point, you can type these into your favourite computing program and solve them.
 
                            </p>
 
                        </div>
 
                    </div>
 
                    <div id="modeling-tutorial-stochastic">
 
                        <div class="slim">
 
                            <h3>Stochastic</h3>
 
                            <p>
 
                                The simplest way to add an element of 'randomness' into an equation is to add a random term into the differential equation. This turns it into a stochastic differential equation, such as:
 
                            </p>
 
                                \[\dfrac{dx}{dt}=c+r\]
 
                            <div class="image image-right">
 
                                <img src="https://static.igem.org/mediawiki/2015/1/1f/OxiGEM_Stochastic_Tutorial_01.jpg"/>
 
                            </div>
 
                            <p>
 
                                which determines the evolution of a particle travelling at a speed \(c\), with a random number \(r\) added into the mix just for fun. We choose \(r\) to be normally distributed with a mean value of 0 and a variance of, say, 1. We evaluate the position of the particle at multiple timesteps (with some small time \(dt\) separating them) and plot our solution in the Figure below.
 
                            </p>
 
                            <p>
 
                                We can do better than this when dealing with systems such as our example in the previous section. We use the Gillespie algorithm to find:
 
                            </p>
 
                            <ol>
 
                                <li>The <strong>time</strong> taken between reactions</li>
 
                                <li>The <strong>reaction</strong> that took place in that time.</li>
 
                            </ol>
 
                            <p>
 
                                as neither of these could be determined by our initial method [<a href="#Ref2">2</a>, <a href="#Ref4">4</a>].
 
                            </p>
 
                            <div class="image image-left">
 
                                <img src="https://static.igem.org/mediawiki/2015/7/72/OxiGEM_Stochastic_Tutorial_02.png"/>
 
                            </div>
 
                            <p>
 
                                <strong>1)</strong> To find the time taken, we make an assumption about the form of the probability distribution that the time between reactions holds. It makes sense to think of it as a falling exponential, such that reactions more often happen quickly rather than slowly, and that the more probable a reaction is, the shorter the time between subsequent reactions. This naturally leads to the form
 
                            </p>
 
                                \[P(t)=e^{-\alpha_{0}t}\]
 
                            <p>
 
                                where \(P(t)\) is the probability of any reaction occuring in time \(t\), and \(\alpha_{0}\) tells us something about the likelihood of the reaction. We plot this in the Figure. In fact we call \(\alpha_{0}\) the sum of the propensities \(\alpha_{i}\) (where the dummy variable \(i\) runs from 1 to the number of possible reactions, \(N\), that could occur). In the case of our example system, the propensity for the reaction \(A\) to \(B\) would be \(k_{+}A\) and the propensity for the reaction \(B\) to \(A\) is \(k_{-}B\) so in this case \(\alpha_{0}=k_{+}A+k_{-}B\).
 
                            </p>
 
                            <p>
 
                                To decide the time it took for a reaction to occur, we sample a random number \(r_{1}\) in the range [0,1] and stick that number on the y axis of the graph. We read off from our graph a corresponding time and we're done - we now know when the next reaction took place.
 
                            </p>
 
                            <p>
 
                                <strong>2)</strong> To decide which reaction took place, we need the probabilities of each reaction occuring being proportional to the ratio of their propensities. We split up the domain of 0 to 1 into the normalised ratios of the propensities of our problem, recalling the propensities we calculated. We could have, in this case, selected the backwards reaction B to A. We can generalise this to the form given in the Gillespie Algorithm above.
 
                            </p>
 
                            <!--CONTENT MISSING-->
 
                            <div class="image image-full">
 
                                <img src="https://static.igem.org/mediawiki/2015/d/da/OxiGEM_Stochastic_Tutorial_03.jpg"/>
 
                            </div>
 
                        </div>
 
                    </div>
 
                    <div id="modeling-tutorial-finite-difference">
 
                        <div class="slim">
 
                            <h3>Finite Difference Models</h3>
 
                            <p>
 
                                For finite difference models, we set up a grid of positions that we want to solve our equations at, separated by some fixed difference \(dx\) and at time steps separated by time \(dt\). Subscripts of our concentration P represent the spacial co-ordinates of the grid-point, while superscript represents the location in time. We define a constant \(r=\dfrac{dt}{(dx)^{2}}\) which must be less than 0.5 for the scheme to be convergent.
 
                            </p>
 
                            <p>
 
                                The 1D formula to iterate over for the finite difference model of diffusion is
 
                            </p>
 
                                \[P_{j}^{n+1}=(1-2r)P_{j}^{n}+r(P_{j-1}^{n}+P_{j+1}^{n})\]
 
                            <p>
 
                                The 2D formula to iterate over is
 
                            </p>
 
                                \[P_{i,j}^{n+1}=(1-4r)P_{i,j}^{n}+r(P_{i,j-1}^{n}+P_{i,j+1}^{n}+P_{i-1,j}^{n}+P_{i+1,j}^{n})\]
 
                            <p>
 
                                Similarly, for 3D:
 
                            </p>
 
                                \[P_{i,j,k}^{n+1}=(1-6r)P_{i,j,k}^{n}+r(P_{i,j-1,k}^{n}+P_{i,j+1,k}^{n}+P_{i-1,j,k}^{n}+P_{i+1,j,k}^{n}+P_{i,j,k-1}^{n}+P_{i,j,k+1}^{n})\]
 
                            <p>
 
                                we (arbitrarily) choose our boundary conditions to be continuous at the boundary.
 
                            </p>
 
                        </div>
 
                    </div>
 
                </div>
 
                <div class="section" id="references">
 
                    <h2>References</h2>
 
                    <ol class="references">
 
                        <li>Synthetic Biology - A Primer, Paul S. Freemont, Richard I Kenne et al., 2012 Imperial College Press<a name="Ref1"></a></li>
 
 
                        <li>R. Erban, S. J. Chapman, and P. Maini. A practical guide to stochastic simulations of reaction- diffusion processes, 2007. Available <a href="http://arxiv.org/abs/0704.1908">here</a><a name="Ref2"></a></li>
 
 
                        <li>Salto R, Delgado A, Michán C, Marqués S, Ramos JL. Modulation of the function of the signal receptor domain of XylR, a member of a family of prokaryotic enhancer-like positive regulators. J Bacteriol. 1998 Feb180(3):600-4. p.601 right column<a name="Ref3"></a></li>
 
 
                        <li>Brian Ingalls,Mathematical Modeling in Systems Biology: An Introduction, 2012 University of Waterloo<a name="Ref4"></a></li>
 
 
                        <li>Liang ST, Ehrenberg M, Dennis P, Bremer H. Decay of rplN and lacZ mRNA in Escherichia coli. J Mol Biol. 1999 May 14 288(4):521-38. p.524 right column bottom paragraph<a name="Ref5"></a></li>
 
 
                        <li>Proshkin S, Rahmouni AR, Mironov A, Nudler E. Cooperation between translating ribosomes and RNA polymerase in transcription elongation. Science. 2010 Apr 23 328(5977):504-8. p.505 table 1<a name="Ref6"></a></li>
 
 
                        <li>Nelson HC, Sauer RT. Lambda repressor mutations that increase the affinity and specificity of operator binding.Cell. 1985 Sep42(2):549-58. p.552 table 3<a name="Ref7"></a></li>
 
 
                        <li>Sourjik V, Berg HC. Functional interactions between receptors in bacterial chemotaxis. Nature. 2004 Mar 25 428(6981):437-41.p.439 left column top paragraph<a name="Ref8"></a></li>
 
                    </ol>
 
                </div>
 
            </div>
 
            <div class="col-md-3 contents-sidebar">
 
                <ul id="sidebar" class="nav nav-stacked affix-top sm-hidden xs-hidden" data-spy="affix">
 
                    <li>
 
                        <a href="#introduction">Introduction</a>
 
                    </li>
 
                    <li>
 
                        <a href="#gene-expression">Gene Expression</a>
 
                        <ul class="nav nav-stacked">
 
                            <li><a href="#gene-expression-deterministic">Deterministic</a></li>
 
                            <li><a href="#gene-expression-stochastic">Stochastic</a></li>
 
                        </ul>
 
                    </li>
 
                    <li>
 
                        <a href="#diffusion">Diffusion</a>
 
                        <ul class="nav nav-stacked">
 
                            <li><a href="#diffusion-deterministic">Deterministic</a></li>
 
                            <li><a href="#diffusion-stochastic">Stochastic</a></li>
 
                        </ul>
 
                    </li>
 
                    <li>
 
                        <a href="#modeling-tutorial">Modeling Tutorial</a>
 
                        <ul class="nav nav-stacked">
 
                            <li><a href="#modeling-tutorial-deterministic">Deterministic</a></li>
 
                            <li><a href="#modeling-tutorial-stochastic">Stochastic</a></li>
 
                            <li><a href="#modeling-tutorial-finite-difference">Finite Difference Models</a></li>
 
                        </ul>
 
                    </li>
 
                    <li>
 
                        <a href="#references">References</a>
 
                    </li>
 
                </ul>
 
 
             </div>
 
             </div>
 
         </div>
 
         </div>
Line 425: Line 138:
 
</html>
 
</html>
  
{{:Team:Oxford/Templates/Foot}}
+
{:Team:Oxford/Templates/Foot}}

Revision as of 13:48, 13 August 2015

Notebook

Week 1

Week 1 - Day 1

Preparation of Stock Solutions

  1. gBlocks

    The gBlocks ordered from IDT arrived in the form of vials of 200ng solid DNA powder.

    (refer to BioBricks page for information on DNA sequences)

    The gBlocks were made into 10ng/µl stock solutions in Milli-Q water for storage:

    mass/ng conc/ng\(\mu\)l-1 final volume\(mu\)l
    200 10 20

  2. Primers

    The forward and reverse primers ordered from IDT came in 32.4nmol and 34.3nmol of solid respectively.

    (Sequences: Forward - CTTTTTTGCCGGACTGC Reverse - ATGATTTCTGGAATTCGC)

    The primers were made into 100µM stock solutions in Milli-Q water for storage:

    amt/10-9mol conc/10-6M final volume/10-6L
    32.4 100 324
    34.3 100 343

Preparation of Reaction Solutions

  1. gBlocks

    2\(\mu\)l of each stock solution were diluted in Milli-Q water to achieve final solution volumes of 20\(\mu\)l to make 1ng/\(\mu\)l-1

  2. Primers

    2\(\mu\)l of each stock solution were diluted in Milli-Q water to achieve final solution volumes of 20\(\mu\)l to make 10\(\mu\)M reaction solutions.(The solutions are labelled as "Prefix primer" and "suffix primer" in eppendorf tubes in the fridge)

Polymerase Chain Reaction Set-Up

The protocol for running a PCR using NEB's Q5 High-Fidelity 2X Master Mix can be found here.

25\(\mu\)l reactions were run, with the volume breakdown by component being:

Component Volume/\(\mu\)l Final conc/nM
Q5 HF Master Mix 12.5 -
10\(\mu\)M Forward Primer 1.25 500
10\(\mu\)M Reverse Primer 1.25 500
1ng/\(\mu\)l-1 1.0 -
Milli-Q Water 9.0> -

{:Team:Oxford/Templates/Foot}}