Difference between revisions of "Team:Exeter/Modelling Diary"

Line 2: Line 2:
 
<html>
 
<html>
 
<div class='container'>
 
<div class='container'>
<!-- PERSONAL CODE GOES HERE -->
+
 
<h4>Modelling Diary</h4>
+
<h1>Modelling Diary</h1>
<p style='font-size:70px'>Page currently under construction</p>  
+
 
 +
<h3>Introduction</h3>
 +
 
 +
<h3>Week 23/06 - 29/06</h3>
 +
 
 +
<p>We made a start on modelling the Brownian motion of the toehold switches and RNA using MATLAB. Many hours were spent toiling over getting the simulation just right, it seemed every time we thought we fixed something it caused something else to go wrong.  Thankfully, by the end of the week we had a basic ‘working’ 3D model of the brownian motion, although it only worked using a few of each of the molecules (laptops don’t have much computing power surprisingly - time to look into accessing the university supercomputers!).</p>
 +
<ul>
 +
<li>We made the individual toehold and RNAs bind irreversibly to each other only.</li>
 +
<li>This was all made in 2D first and then easily transferred to 3D using plot3 statements.</li>
 +
</ul>
 +
 
 +
<h3>Week 30/06 - 06/07</h3>
 +
<p>The system got more complicated and so did the model (speaking to lab).</p>
 +
<ul>
 +
<li>Getting the complexes to split after some time being combined, this broke so we lost a few days trying to fix it.
 +
</li>
 +
            <ul>
 +
              <li>This was achieved through changing the way in which the coordinates where generated after the split. They were made in randomly after the event for the number of remaining time steps.
 +
</li>
 +
            </ul>
 +
  <li>Tweaking small things trying to get it as close to simulating real life as possible (e.g. spherical area of binding).</li>
 +
            <ul>
 +
              <li>i.e there are two spheres at the end on the current path which if they overlap will bind. </li>
 +
            </ul>
 +
          <li>Researching where we could get the required variable values from and how to implement these into the model.</li>
 +
<li>This lead on to applying real world values into our modelling after researching them online. We found binding distances, viscosities, temperatures. </li>
 +
          <li>Getting NUPACK to work:</li>
 +
            <ul>
 +
<li>This took us a significant amount of time. We decided to abandon the source code and use the online tools.</li>
 +
              <li>We learnt the input of Nupack which is a series of paired and unpaired bases. Using this we could make the secondary structure we needed and hence generate the optimal sequence.</li>
 +
              <li>The modeling team informed the lab team on how to use nupack initially they then ran with it and quickly started making the toeholds.</li>
 +
                <ul>
 +
                  <li>Their knowledge grew considerably and they no longer needed our help.</li>
 +
                </ul>
 +
</ul>
 +
          <li>As we progressed with our research we asked Nick Harmor what the  molecules would do at the edge of the tube, he told us that we could get low affinity binding tubes to essentially reduce sticking to nothing. </li>
 +
</ul>
 +
 
 +
<h3>Week 07/07 - 13/07</h3>
 +
 
 +
        <ul>
 +
          <li>We worked on confinement of the system to a cylinder of volume equal to an eppendorf tube, after consulting with the lab team. </li>
 +
            <ul>
 +
              <li>This was done by moving the particles back to the edge of the cylinder. This is basic and shall be improved with trajectories. </li>
 +
              <li>Trajectories will be added in as a separate function.  </li>
 +
            </ul>
 +
          <li>On the 9th we had a full working script with basic confinement, delay, joining and splitting.</li>
 +
          <li>On the 10th of July we had a meeting with Jonathan Fieldsend and we discussed numerous things. </li>
 +
            <ul>
 +
              <li>He thought we could improve our model through vectorisation (and optimisation technique), generating time steps in real time, and more accurate confinement into a compound cylinder cone shape. </li>
 +
              <li>Statistical modelling on numerical data and getting the model ready to handle data from the lab team.</li>
 +
              <li>He spoke briefly about the variation of parameters and how best to implement this in order to best describe the real world system. </li>
 +
            </ul>
 +
        </ul>
 +
 
 +
<h3>Week 14/07 - 20/07</h3>
 +
 
 +
        <ul>
 +
          <li>We started to try and implement the alterations suggested by Jonathan. </li>
 +
            <ul>
 +
              <li>This started with making a plan on paper of the basic structure of the new code.</li>
 +
              <li>We then put this into practice by breaking the previous code into smaller parts to turn in functions. This was based on the function they performed, i.e plotting and coordinate generation.</li>
 +
              <li>This took a considerable amount of time and has changed a lot along the way.</li>
 +
            </ul>
 +
          <li>The biggest improvement is generating the coordinates on each time step rather than all at once. These are then stored in an array of vectors for plotting. </li>
 +
            <ul>
 +
              <li>Plotting is done at the end of all the time steps using the array generated. This has sped up our model by about half after using the timing function within matlab.</li>
 +
              <li>This took some time to implement and originally plotting was done on each time step but this was found to be inefficient and was changed to the above.</li>
 +
            </ul>
 +
          <li>The code is now a lot more simple and easier to debug since it is separated into functions.</li>
 +
          <li>Another benefit is that the plotting does not have to run which would save a considerable amount of time, allowing pure numerical information to be extracted in the future. </li>
 +
        </ul>
 +
 
 +
<h3>Week 21/07 - 27/07</h3>
 +
 
 +
      <ul>
 +
        <li>So far we have been optimising our code by arranging for loops better, changing the way toeholds and RNA bind, and removing unnecessary lines.</li>
 +
          <ul>
 +
            <li>For loops needed to be changed as coordinates were being made too many times. </li>
 +
            <li>A vector called check was needed to see what toeholds and RNA bind.</li>
 +
          </ul>
 +
        <li>A week of debugging has been taking place, the code has been meticulously looked through and a whole load of issues fixed.</li>
 +
          <ul>
 +
            <li>Toeholds and RNA cannot join then split instantly.</li>
 +
            <li>Cooldown period countdown fixed and it now works - had to count up from minus numbers.</li>
 +
          </ul>
 +
        <li>We had a meeting with Jonathan fieldsend on Monday 27th, this helped find more problems within our code and come up with some new ways to work.</li>
 +
          <ul>
 +
            <li>Firstly he told us about version control and gave us a tutorial on setting up a GitHub account.</li>
 +
            <li>Next he pointed out we could create a function to generate the random walk optimising our code this will remove large sections of our code.</li>
 +
            <li>A few more code optimisations were pointed out like, define loop variable instead of adding t+r etc, and moving j==1 loops outside.</li>
 +
          </ul>
 +
        <li>We spoke in detail about parameter scanning to use our model to optimise the experimental system:</li>
 +
          <ul>
 +
            <li>This could be done with reductionist gridding or a genetic algorithm.</li>
 +
            <li>This will be explored in more detail soon.</li>
 +
          </ul>
 +
        <li>The next steps will be to get the plotting to work to provide a visual output and introduce a trajectory function to help the model simulate real life more. </li>
 +
      </ul>
 +
 
 +
<h3>Week 27/07 - 02/08</h3>
 +
 
 +
        <ul>
 +
          <li>This week involved researching trajectory/collision functions to simulate particles bouncing off the walls of the tube <a href="http://rectangleworld.com/blog/archives/358">trajectory maths</a>. This involved some intense vector calculus and considering the 2D problem before working on the 3D.</li>
 +
          <li>Coordinate storage structure altered to have columns adjacent to each complex coordinate column to denote status and record identity of toehold and rna trigger. </li>
 +
          <li>Plotting function almost fixed but for a few cases which resulted in extra lines being plotted. Plotting was based on conditional statements that exploited the addition columns and their information introduced in the new points structure.</li>
 +
          <li>Moving on to focus on Numerical Output / Split down functions / Bouncing in 3D and finally Parameter Scanning. </li>
 +
        </ul>
 +
 
 +
<h3>Week 03/08 - 09/08</h3>
 +
 
 +
        <ul>
 +
          <li>Monday was spent getting GitHub to work so that we could use version control. It was setup successfully on Todd’s laptop but Dan’s required more work. Now that is good to go we can both edit the same script and upload it in a secure location. It will also keep track of the changes we've made and allow use to revert back to earlier versions.</li>
 +
          <li>The modelling diary, action plan and meeting notes were looked through and anything missing information added meaning that these documents were as up to date as they could be. </li>
 +
        </ul>
 +
 
 +
<h3>Week 8 10/08 - 16/08</h3>
 +
 
 +
        <ul>
 +
          <li>Todd was away but started to write up some stuff for the modelling wiki regarding the simulation. Dan continued to work on the data structures used for recording the coordinates and smoothing out the bugs with it in preparation for adding in the bouncing from the edges of the tube later on in the week. Integration of this bouncing code would lead to many a problem and was carried over into the next week. </li>
 +
          <li>The data structuring included modifying the coordinates array so that a timestep (row) could accommodate two points rather than one (the point before contact with the boundary and the point of contact on the boundary). This was fiddly and some of the inflexible conditional statements elsewhere needed to be changed. </li>
 +
          <li>A modelling introduction was also written up for the wiki.</li>
 +
        </ul>
 +
 
 +
<h3>Week 17/08 - 23/08</h3>
 +
 
 +
        <ul>
 +
          <li>On Monday the wiki modelling page for the simulation was finalised. This was proof read and new information was approved. </li>
 +
          <li>A to do list of task was produced for the week ahead this included:</li>
 +
            <ul>
 +
              <li>Writing up all of the maths used for the simulation.</li>
 +
              <li>Writing up a piece for the wiki on parameter scanning.</li>
 +
            </ul>
 +
          <li>The simulation was worked on more with bug fixing taking place and new code being added. The new code added was related to the trajectory stuff.</li>
 +
          <li>On Tuesday maths was worked on, this was again related to the trajectory stuff. The z coordinate needed to be found at the point the random walk path left the cone section.</li>
 +
          <li>On Wednesday more maths was undertaken. </li>
 +
          <li>The modelling team were away on Thursday and Friday. </li>
 +
        </ul>
 +
 
 +
<h3>Week 24/08 - 30/08</h3>
 +
 
 +
        <ul>
 +
          <li>Modelling team was used elsewhere within the project:</li>
 +
            <ul>
 +
              <li>Our matlab skills were used to analyse and produce data for the interlab study. A script file was made to produce graphs of the data, we also extracted means and standard deviations from this.</li>
 +
              <li>General computer skills were used to make the poster and banner as they needed to be made using a high quality vector graphics application.</li>
 +
              <li>A lot of time this week was spent making presentation material in preparation for the UK meet up in london. </li>
 +
            </ul>
 +
        </ul>
 +
 
 +
<h3>Week 31/08 - 06/09</h3>
 +
 
 +
        <ul>
 +
          <li>Monday through Wednesday were spent working on presentation material and practicing our presentation, this also included finalisation of the poster material for the (as well as from other areas).</li>
 +
          <li>Attempts at successful parameter scans were made, but yielded nothing.</li>
 +
          <li>UK meet up in Westminster! </li>
 +
            <ul>
 +
              <li>We presented on the process of building our simulation, our influences from the lab and human practices and what we hope to gain from it through parameter scanning.</li>
 +
              <li>We also spoke to members of other teams about some of their modelling practices and made some friends along the way.</li>
 +
              <li>Westminster University did a phenomenal job of hosting everyone, the event was fantastic!</li>
 +
            </ul>
 +
        </ul>
 +
 
 +
      <h3>Other points</h3>
 +
 
 +
        <ul>
 +
          <li>We’ve asked a lot of the experiment team and they’ve since found these out or looked it up. This had helped them focus their experiments by designing them to find out what we want.</li>
 +
            <ul>
 +
              <li>We asked about rate limiting steps after talking with Peter Winlove - this was then simplified after talking with the experimentalists.</li>
 +
                <ul>
 +
                  <li>rate of ribosome movement contains the rate of RNA, amino acid production, etc..</li>
 +
                  <li>Ribosome stays bound until it makes GFP.</li>
 +
                  <li>It also lead us to investigate the rate limiting steps. Anything to do with the cell free kit was assumed to be in excess. The main limiting step was determined to be the RNA binding event.</li>
 +
                </ul>
 +
              <li>During the meeting about experimental design our inputs was used to questions the decisions of the lab team, this included:</li>
 +
                <ul>
 +
                  <li>Temperatures,</li>
 +
                  <li>Repeats,</li>
 +
                  <li>Accuracy and precision,</li>
 +
                  <li>Listing their assumptions.</li>
 +
                </ul>
 +
            </ul>
 +
          <li>We also wanted to measure the binding affinity of RNA and the toehold however we cannot do that with our equipment. We spoke to Tom Howard and he said that Manchester might be able to so we have since contacting the igem team there about using this machine. Dr Heyes was the academic.</li>
 +
        </ul>
 +
 
 
</div>
 
</div>
 
</html>
 
</html>
 
{{Exeterfooter}}
 
{{Exeterfooter}}

Revision as of 11:39, 7 September 2015

Modelling Diary

Introduction

Week 23/06 - 29/06

We made a start on modelling the Brownian motion of the toehold switches and RNA using MATLAB. Many hours were spent toiling over getting the simulation just right, it seemed every time we thought we fixed something it caused something else to go wrong. Thankfully, by the end of the week we had a basic ‘working’ 3D model of the brownian motion, although it only worked using a few of each of the molecules (laptops don’t have much computing power surprisingly - time to look into accessing the university supercomputers!).

  • We made the individual toehold and RNAs bind irreversibly to each other only.
  • This was all made in 2D first and then easily transferred to 3D using plot3 statements.

Week 30/06 - 06/07

The system got more complicated and so did the model (speaking to lab).

  • Getting the complexes to split after some time being combined, this broke so we lost a few days trying to fix it.
    • This was achieved through changing the way in which the coordinates where generated after the split. They were made in randomly after the event for the number of remaining time steps.
  • Tweaking small things trying to get it as close to simulating real life as possible (e.g. spherical area of binding).
    • i.e there are two spheres at the end on the current path which if they overlap will bind.
  • Researching where we could get the required variable values from and how to implement these into the model.
  • This lead on to applying real world values into our modelling after researching them online. We found binding distances, viscosities, temperatures.
  • Getting NUPACK to work:
    • This took us a significant amount of time. We decided to abandon the source code and use the online tools.
    • We learnt the input of Nupack which is a series of paired and unpaired bases. Using this we could make the secondary structure we needed and hence generate the optimal sequence.
    • The modeling team informed the lab team on how to use nupack initially they then ran with it and quickly started making the toeholds.
      • Their knowledge grew considerably and they no longer needed our help.
  • As we progressed with our research we asked Nick Harmor what the molecules would do at the edge of the tube, he told us that we could get low affinity binding tubes to essentially reduce sticking to nothing.

Week 07/07 - 13/07

  • We worked on confinement of the system to a cylinder of volume equal to an eppendorf tube, after consulting with the lab team.
    • This was done by moving the particles back to the edge of the cylinder. This is basic and shall be improved with trajectories.
    • Trajectories will be added in as a separate function.
  • On the 9th we had a full working script with basic confinement, delay, joining and splitting.
  • On the 10th of July we had a meeting with Jonathan Fieldsend and we discussed numerous things.
    • He thought we could improve our model through vectorisation (and optimisation technique), generating time steps in real time, and more accurate confinement into a compound cylinder cone shape.
    • Statistical modelling on numerical data and getting the model ready to handle data from the lab team.
    • He spoke briefly about the variation of parameters and how best to implement this in order to best describe the real world system.

Week 14/07 - 20/07

  • We started to try and implement the alterations suggested by Jonathan.
    • This started with making a plan on paper of the basic structure of the new code.
    • We then put this into practice by breaking the previous code into smaller parts to turn in functions. This was based on the function they performed, i.e plotting and coordinate generation.
    • This took a considerable amount of time and has changed a lot along the way.
  • The biggest improvement is generating the coordinates on each time step rather than all at once. These are then stored in an array of vectors for plotting.
    • Plotting is done at the end of all the time steps using the array generated. This has sped up our model by about half after using the timing function within matlab.
    • This took some time to implement and originally plotting was done on each time step but this was found to be inefficient and was changed to the above.
  • The code is now a lot more simple and easier to debug since it is separated into functions.
  • Another benefit is that the plotting does not have to run which would save a considerable amount of time, allowing pure numerical information to be extracted in the future.

Week 21/07 - 27/07

  • So far we have been optimising our code by arranging for loops better, changing the way toeholds and RNA bind, and removing unnecessary lines.
    • For loops needed to be changed as coordinates were being made too many times.
    • A vector called check was needed to see what toeholds and RNA bind.
  • A week of debugging has been taking place, the code has been meticulously looked through and a whole load of issues fixed.
    • Toeholds and RNA cannot join then split instantly.
    • Cooldown period countdown fixed and it now works - had to count up from minus numbers.
  • We had a meeting with Jonathan fieldsend on Monday 27th, this helped find more problems within our code and come up with some new ways to work.
    • Firstly he told us about version control and gave us a tutorial on setting up a GitHub account.
    • Next he pointed out we could create a function to generate the random walk optimising our code this will remove large sections of our code.
    • A few more code optimisations were pointed out like, define loop variable instead of adding t+r etc, and moving j==1 loops outside.
  • We spoke in detail about parameter scanning to use our model to optimise the experimental system:
    • This could be done with reductionist gridding or a genetic algorithm.
    • This will be explored in more detail soon.
  • The next steps will be to get the plotting to work to provide a visual output and introduce a trajectory function to help the model simulate real life more.

Week 27/07 - 02/08

  • This week involved researching trajectory/collision functions to simulate particles bouncing off the walls of the tube trajectory maths. This involved some intense vector calculus and considering the 2D problem before working on the 3D.
  • Coordinate storage structure altered to have columns adjacent to each complex coordinate column to denote status and record identity of toehold and rna trigger.
  • Plotting function almost fixed but for a few cases which resulted in extra lines being plotted. Plotting was based on conditional statements that exploited the addition columns and their information introduced in the new points structure.
  • Moving on to focus on Numerical Output / Split down functions / Bouncing in 3D and finally Parameter Scanning.

Week 03/08 - 09/08

  • Monday was spent getting GitHub to work so that we could use version control. It was setup successfully on Todd’s laptop but Dan’s required more work. Now that is good to go we can both edit the same script and upload it in a secure location. It will also keep track of the changes we've made and allow use to revert back to earlier versions.
  • The modelling diary, action plan and meeting notes were looked through and anything missing information added meaning that these documents were as up to date as they could be.

Week 8 10/08 - 16/08

  • Todd was away but started to write up some stuff for the modelling wiki regarding the simulation. Dan continued to work on the data structures used for recording the coordinates and smoothing out the bugs with it in preparation for adding in the bouncing from the edges of the tube later on in the week. Integration of this bouncing code would lead to many a problem and was carried over into the next week.
  • The data structuring included modifying the coordinates array so that a timestep (row) could accommodate two points rather than one (the point before contact with the boundary and the point of contact on the boundary). This was fiddly and some of the inflexible conditional statements elsewhere needed to be changed.
  • A modelling introduction was also written up for the wiki.

Week 17/08 - 23/08

  • On Monday the wiki modelling page for the simulation was finalised. This was proof read and new information was approved.
  • A to do list of task was produced for the week ahead this included:
    • Writing up all of the maths used for the simulation.
    • Writing up a piece for the wiki on parameter scanning.
  • The simulation was worked on more with bug fixing taking place and new code being added. The new code added was related to the trajectory stuff.
  • On Tuesday maths was worked on, this was again related to the trajectory stuff. The z coordinate needed to be found at the point the random walk path left the cone section.
  • On Wednesday more maths was undertaken.
  • The modelling team were away on Thursday and Friday.

Week 24/08 - 30/08

  • Modelling team was used elsewhere within the project:
    • Our matlab skills were used to analyse and produce data for the interlab study. A script file was made to produce graphs of the data, we also extracted means and standard deviations from this.
    • General computer skills were used to make the poster and banner as they needed to be made using a high quality vector graphics application.
    • A lot of time this week was spent making presentation material in preparation for the UK meet up in london.

Week 31/08 - 06/09

  • Monday through Wednesday were spent working on presentation material and practicing our presentation, this also included finalisation of the poster material for the (as well as from other areas).
  • Attempts at successful parameter scans were made, but yielded nothing.
  • UK meet up in Westminster!
    • We presented on the process of building our simulation, our influences from the lab and human practices and what we hope to gain from it through parameter scanning.
    • We also spoke to members of other teams about some of their modelling practices and made some friends along the way.
    • Westminster University did a phenomenal job of hosting everyone, the event was fantastic!

Other points

  • We’ve asked a lot of the experiment team and they’ve since found these out or looked it up. This had helped them focus their experiments by designing them to find out what we want.
    • We asked about rate limiting steps after talking with Peter Winlove - this was then simplified after talking with the experimentalists.
      • rate of ribosome movement contains the rate of RNA, amino acid production, etc..
      • Ribosome stays bound until it makes GFP.
      • It also lead us to investigate the rate limiting steps. Anything to do with the cell free kit was assumed to be in excess. The main limiting step was determined to be the RNA binding event.
    • During the meeting about experimental design our inputs was used to questions the decisions of the lab team, this included:
      • Temperatures,
      • Repeats,
      • Accuracy and precision,
      • Listing their assumptions.
  • We also wanted to measure the binding affinity of RNA and the toehold however we cannot do that with our equipment. We spoke to Tom Howard and he said that Manchester might be able to so we have since contacting the igem team there about using this machine. Dr Heyes was the academic.
  • Contact us:
    exeterigem@gmail.com