Difference between revisions of "Team:Technion HS Israel/Software/Simulation"

 
(10 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
<html>
 
<html>
 
<link href="//2015.igem.org/Template:Technion_HS_Israel4/Technion_HS_Israel_menu_style?action=raw&ctype=text/css" rel="stylesheet">
 
<link href="//2015.igem.org/Template:Technion_HS_Israel4/Technion_HS_Israel_menu_style?action=raw&ctype=text/css" rel="stylesheet">
 +
<h1><font color="#008080">Simulation</font> </h1>
  
<h1>Simulation</h1>
+
<h2> Introduction</h2>
 +
<p>When we've began modelling our system, we had absolutely no background in the field of synthetic biology and mathematical biology. Like anyone who encounter a new field, we wanted to do everything ourselves. In other words, we wanted to solve the problems we face using our knowledge and not to use the already existing solutions. That's how the Simulation Program has begun. When we started to model the system we began with a few ordinary differential equations, which we tried to solve analytically, but over time more and more equations were added to the list and we could achieve less and less using analysis. You can solve analytically when you have two or at most three equations, and five or seven is you assume steady state, but you can’t do anything when you have 17 equations. We understood that the only way to advance is to use a numerical approach. </p>
 +
<h2>The Numerical Solver</h2>
 +
<p>We then had an idea how to solve this problem: in each short time interval, the function behaves similar to its tangent. Therefore, if we want its derivative to be equal to a certain amount (this is exactly the restriction that an ODE – ordinary differential equations – gives), we can approximate the solution by summing all the additions of such small internals. As we make the steps smaller, the more accurate the result becomes. A full explanation and description of this algorithm is available in <a href=”https://static.igem.org/mediawiki/2015/9/9b/Simulation.pdf”>the document we wrote back then</a>. Later we found that this way of solving ODE systems is called Euler Method. It didn’t surprised us that someone else has already thought of the algorithm we came up with, but even discovering something that has already been discovered is rewarding.</p>
 +
<p>We implemented this algorithm in Matlab. We have wrote the solver from scratch, as well as the graphical user interface you can see in the pictures.</p>
 +
<h2>Features </h2>
 +
<p>Our user interface if consisted of three parts. On the left pane you can choose the values of all the constants in our system using sliders. The sliders are in a logarithmic scale, and an information box shows the actual value of the constant and enables to set it directly. The initial conditions can be set in this pan as well.</p>
 +
<p>In the top bar, you can choose the numerical solver. The options include our numerical solver and all the numerical solvers that Matlab supplies. In some cases, our solver converge faster than the solvers of Matlab.</p>
 +
<p>In the rest of the screen, the resulting graph is displayed.</p>
 +
<h2>Discussion</h2>
 +
<p>We are aware that SimBiology has all these features. In our opinion, the learning curve of our simulation program is less steep than in SimBiology and we think that a modelist will understand what is going on faster in our program (of course, in the cost of relative lack of features). It is less flexible than SimBiology, though.</p>
 +
<h2>Conclusion</h2>
 +
<p>Even if our solver does not surpass the variety of features or the user interface, we enjoyed writing it and think that the process of writing the program gave us an opportunity to understand how our system works and how dynamic processes simulation is done. We would not have it if we chose to use an existing numerical solver.</p>
 +
<h2>Future work</h2>
 +
<p>We want to make our program more generic, so each team or researcher will be able to put its equations into it and to simulate it easily. A complete list of improvements we thought of for our system is available <a href="https://static.igem.org/mediawiki/2015/c/c3/Technion_HS_2015_SoftwareDepartmentGoals.txt">here</a>.</p>
  
<p>Our simulation program is released under the MIT license. We hope that future iGEM teams will find it useful. </p>
 
  
<h2>
 
  
 +
<h2> Screen Shots</h2>
 +
<br>
 +
<img src="https://static.igem.org/mediawiki/2015/7/72/Technion_HS_2015_Simulation_Screenshot_1.png" alt="screenshot of the simulation program";width=1024; height=568">
 +
<br>
 +
<img src="https://static.igem.org/mediawiki/2015/a/a3/Technion_HS_2015_Simulation_Screenshot_2.png" alt="screenshot of the simulation program";width=1024; height=568">
 +
 +
<h2>Source Code</h2>
 +
<p>Our simulation program is released under the MIT license. We hope that future iGEM teams will find it useful.</p>
 +
 +
<p><a href="https://static.igem.org/mediawiki/2015/f/f1/Technion_HS_2015_Simple_Solver.zip">Simple Solver</a><br>
 +
<a href="https://static.igem.org/mediawiki/2015/8/89/Technion_HS_2015_Simulation_v1_Stable.zip">Simulation V1</a><br>
 +
<a href="https://static.igem.org/mediawiki/2015/6/69/Technion_HS_2015_Simulation_v2_Beta.zip">Simulation V2</a><br>
 +
<a href="https://static.igem.org/mediawiki/2015/b/bf/Technion_HS_2015_Visualization_Program.zip">Visualization program</a></p>
  
  

Latest revision as of 01:13, 19 September 2015

Technion 2015 HS Team's Wiki

Simulation

Introduction

When we've began modelling our system, we had absolutely no background in the field of synthetic biology and mathematical biology. Like anyone who encounter a new field, we wanted to do everything ourselves. In other words, we wanted to solve the problems we face using our knowledge and not to use the already existing solutions. That's how the Simulation Program has begun. When we started to model the system we began with a few ordinary differential equations, which we tried to solve analytically, but over time more and more equations were added to the list and we could achieve less and less using analysis. You can solve analytically when you have two or at most three equations, and five or seven is you assume steady state, but you can’t do anything when you have 17 equations. We understood that the only way to advance is to use a numerical approach.

The Numerical Solver

We then had an idea how to solve this problem: in each short time interval, the function behaves similar to its tangent. Therefore, if we want its derivative to be equal to a certain amount (this is exactly the restriction that an ODE – ordinary differential equations – gives), we can approximate the solution by summing all the additions of such small internals. As we make the steps smaller, the more accurate the result becomes. A full explanation and description of this algorithm is available in the document we wrote back then. Later we found that this way of solving ODE systems is called Euler Method. It didn’t surprised us that someone else has already thought of the algorithm we came up with, but even discovering something that has already been discovered is rewarding.

We implemented this algorithm in Matlab. We have wrote the solver from scratch, as well as the graphical user interface you can see in the pictures.

Features

Our user interface if consisted of three parts. On the left pane you can choose the values of all the constants in our system using sliders. The sliders are in a logarithmic scale, and an information box shows the actual value of the constant and enables to set it directly. The initial conditions can be set in this pan as well.

In the top bar, you can choose the numerical solver. The options include our numerical solver and all the numerical solvers that Matlab supplies. In some cases, our solver converge faster than the solvers of Matlab.

In the rest of the screen, the resulting graph is displayed.

Discussion

We are aware that SimBiology has all these features. In our opinion, the learning curve of our simulation program is less steep than in SimBiology and we think that a modelist will understand what is going on faster in our program (of course, in the cost of relative lack of features). It is less flexible than SimBiology, though.

Conclusion

Even if our solver does not surpass the variety of features or the user interface, we enjoyed writing it and think that the process of writing the program gave us an opportunity to understand how our system works and how dynamic processes simulation is done. We would not have it if we chose to use an existing numerical solver.

Future work

We want to make our program more generic, so each team or researcher will be able to put its equations into it and to simulate it easily. A complete list of improvements we thought of for our system is available here.

Screen Shots


screenshot of the simulation program
screenshot of the simulation program

Source Code

Our simulation program is released under the MIT license. We hope that future iGEM teams will find it useful.

Simple Solver
Simulation V1
Simulation V2
Visualization program