Team:XMU-China/Content4
From 2013.igem.org
Line 34: | Line 34: | ||
<div class="img-border"> | <div class="img-border"> | ||
- | <img src="https://static.igem.org/mediawiki/2013/d/d2/Xmu-Image04.png" width =200px height=300px class="border alignleft" alt="" /> | + | <img src="https://static.igem.org/mediawiki/2013/d/d2/Xmu-Image04.png" width =200px height=300px class="border alignleft" alt="Figure 1" /> |
</div> | </div> | ||
<p>Due to the complexity of our circuit, it is easier to understand the mechanism through modeling. In addition, the suitable modeling gives the results more quickly and correctly. A good mathematic model can also help us compare the affecting strength of different factors.</p><br /> | <p>Due to the complexity of our circuit, it is easier to understand the mechanism through modeling. In addition, the suitable modeling gives the results more quickly and correctly. A good mathematic model can also help us compare the affecting strength of different factors.</p><br /> | ||
<h4>Software & Function Introduction<br/><br/></h4> | <h4>Software & Function Introduction<br/><br/></h4> | ||
- | <p>Based on the DDEs,“Gene oscillate simulator” has two main modes of simulations. The basic simulation is designed for the oscillate circuit with LuxI, aiiA and LuxR, while the advanced simulation adds the effect of ndh gene.</p> | + | <p>Based on the DDEs, “Gene oscillate simulator” has two main modes of simulations. The basic simulation is designed for the oscillate circuit with LuxI, aiiA and LuxR, while the advanced simulation adds the effect of ndh gene.</p> |
<div class="clear"></div> | <div class="clear"></div> | ||
<p><small style="font-size:16px"> Figure 1 shows the first <br/> interface of the Gene OS.</small></p><p> | <p><small style="font-size:16px"> Figure 1 shows the first <br/> interface of the Gene OS.</small></p><p> | ||
Line 45: | Line 45: | ||
</p> | </p> | ||
<div class="clear"></div><center> | <div class="clear"></div><center> | ||
- | <img src="https://static.igem.org/mediawiki/2013/2/2d/Xmus-Image005.png" width =350px height=300px class="border alignleft" alt="" /> | + | <img src="https://static.igem.org/mediawiki/2013/2/2d/Xmus-Image005.png" width =350px height=300px class="border alignleft" alt="Figure 2" style="margin-left:70px"/> |
- | <img src="https://static.igem.org/mediawiki/2013/2/2c/Xmus-Image006.png" width =350px height=300px class="border alignleft" alt="" /></center> | + | <img src="https://static.igem.org/mediawiki/2013/2/2c/Xmus-Image006.png" width =350px height=300px class="border alignleft" alt="Figure 3" style="margin-left:80px"/></center> |
- | <div class="clear"></div> | + | <div class="clear"></div> |
+ | <small style="font-size:16px">Figure 2 shows the basic simulation user interface. Figure 3 shows the choose dialog box.</small> | ||
+ | |||
<p> | <p> | ||
The meaning of each parameter can be displayed when click each parameter or right click each input box. For the people first use this software, we designed the “One example” function which can set the parameters suitably in a single time.<br/> <br/> | The meaning of each parameter can be displayed when click each parameter or right click each input box. For the people first use this software, we designed the “One example” function which can set the parameters suitably in a single time.<br/> <br/> |
Revision as of 15:56, 26 September 2013
Due to the complexity of our circuit, it is easier to understand the mechanism through modeling. In addition, the suitable modeling gives the results more quickly and correctly. A good mathematic model can also help us compare the affecting strength of different factors.
Software & Function Introduction
Based on the DDEs, “Gene oscillate simulator” has two main modes of simulations. The basic simulation is designed for the oscillate circuit with LuxI, aiiA and LuxR, while the advanced simulation adds the effect of ndh gene.
Figure 1 shows the first
interface of the Gene OS.
In each of the modes, users can make a series of graphs though designing the different parameters. The numbers of graphs mainly depend on the different parameters and the modes.
The meaning of each parameter can be displayed when click each parameter or right click each input box. For the people first use this software, we designed the “One example” function which can set the parameters suitably in a single time.
To get an idea about the different conditions in which oscillations could occur, we created a function which allows users to enter the range in which the variables should be varied and compare their results in the results. Due to the arithmetic speed, we finally apply this function in fluid flow speed and cell density, which are the most important parameters in the model. For example, people can set the cell density range from 0.1 to 0.9 with the step 0.2 by not selecting the “Fix the cell density” item.
A white noise system was coded to simulate the noisy environment in the medium. This function makes the model closer to the actual environment. Users can set the strength by clicking “add white noise” box and inputting the decibels.
A script calculates amplify and period of the oscillation is also added as an additional function. This allows our software detect and compare the characteristic of certain oscillation.
After setting all the parameters, users can save and output these settings into a standard 2003 excel file through the file menu. Loading is also supported which makes more convince for transmitting the parameters.
Before draw the graphs users need to choose the plot mode when range parameters exist. For example, when set the cell density the software will ask user to draw separately or put curves with different cell density together.
Then clicking the “draw” button, the software iterates over the values and plots graphs of all combinations possible for that range of values. After calculating, at most 3 kinds of graphs can be given, (1) concentration alteration of four main protein (2) fluorescence alteration under different cell density and fluid flow speed (3) amplify and period alteration under different cell density and fluid flow speed.
To protect the software and computer, we designed an error-stop system which could stop the simulation as soon as one error was detected. This system also is called when users click “cancel” button to stop the calculation. But different with error happened; this stop process takes about 1 min.
The arithmetic speed of this software depends on the complexity of the parameters. Choosing both cell density range and fluid flow range to calculate can sometimes take more than 10 minutes. It is mainly because the large numbers of nested for-loops in the script and the slowly calculate speed about MATLAB core.
You can download the MATLAB code here.
Background
We usually got a great number of fluorescent images every time when we finished the 8-hours-long microfluidic experiment. However, to get the data we have to calculate each tray in each image though using the software. What’s worse, the software could only process one image each time. Obviously, a more humanized software is needed if we do not want to spend much time on the manual work.
Coding in MATLAB
As we have not found such software on the net, we decided to design our own software. Thus, we used MATLAB coding the script and designed the user interface again for easy use.
We called this one “ImageMe” which was related with our team name. The most advantage of ImageMe is that it can analyze all the trays in the all images once.
Arithmetic
Thanks to the powerful image processing ability of MATLAB, the main arithmetic is concise and efficient. First ImageMe changes the 256-color image to gray scale image and then uses edge processing to make the edge of each tray easier to detect. This process also reduces the negative effect of the background. The final step is to calculate the total gray level using numerical integration.
Software & function introduction
Comparing with the Gene OS, ImageMe has more concise interface arrangement and easier to use. Click “Start” to enter the main interface.
This is the main interface of ImageMe. Here, users can load the images by clicking the “Load” bottom and then choose the images. Then, ImageMe will pre-read all the images with “.jpg” suffix in this root directory. Make sure that no other .jpg images exist in the same folder. Click “Remove” bottom before changing the images to be analyzed.
After clicking the “Begin” bottom, ImageMe will ask users to input two parameters (which are also the only two need to input through the whole process) to assist the analysis more correctly. The two parameters are very easy to get comparing with those in Gene OS. First one is the lines of the trays and the second one is the rows. To get correct and precise results, please do not change the view or magnification times while taking images.
It is common that some images are indistinct or the edges are difficult to detect. When these situations occur to one image, ImageMe will use fuzzy calculation to analyze this one and make sure the result has the most correctness.
The real time message will be written on the screen when some indistinct images are detected or some errors happened.
If the analysis finished successfully, the graphs will show on the screen automatically. At most 2 kinds of graphs can be given, (1) fluorescence strength change in each tray (2) fluorescence strength change in each line.
You can download the MATLAB code here. A package of text images is included.