Difference between revisions of "Team:Paris Bettencourt/Software"
(Good version !) |
|||
Line 2: | Line 2: | ||
{{Paris_Bettencourt/menu}} | {{Paris_Bettencourt/menu}} | ||
{{Paris_Bettencourt/modelingBanner}} | {{Paris_Bettencourt/modelingBanner}} | ||
− | |||
<html> | <html> | ||
<h3>Introduction</h3> | <h3>Introduction</h3> | ||
− | As explained in the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling">modeling page</a>, this program modelize the cells population evolution with mother cell differentiation and cell division. | + | As explained in the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling" title="Modeling wiki page" >modeling page</a>, this program modelize the cells population evolution with mother cell differentiation and cell division. |
<br /> | <br /> | ||
We focus here on the stochastic program. | We focus here on the stochastic program. | ||
Line 27: | Line 26: | ||
<li>\(imageToMatrix\) : convert an image into a matrix.</li> | <li>\(imageToMatrix\) : convert an image into a matrix.</li> | ||
<li>\(initCells\) : initialization of the cells.</li> | <li>\(initCells\) : initialization of the cells.</li> | ||
− | <li>\(initialization\) : initialization of the | + | <li>\(initialization\) : initialization of the program.</li> |
<li>\(initTimeEvent\) : calcul the different time.</li> | <li>\(initTimeEvent\) : calcul the different time.</li> | ||
<li>\(initVariables\) : variables initialization.</li> | <li>\(initVariables\) : variables initialization.</li> | ||
Line 41: | Line 40: | ||
<li>\(writeParameters\) : write a text file with the parameters.</li> | <li>\(writeParameters\) : write a text file with the parameters.</li> | ||
<li>\(launchStochasticProgramm\) : launch the stochastic time evoluation simulation.</li> | <li>\(launchStochasticProgramm\) : launch the stochastic time evoluation simulation.</li> | ||
− | <li>\(k1OptimizationStochastic\) : calcul the number of | + | <li>\(k1OptimizationStochastic\) : calcul the number of differentiated cells and vitamin with differents k1 in a stochastic way.</li> |
<li>\(k1OptimizationStochasticAndDeterministic\) : superimpose the deterministic and stochastic models.</li> | <li>\(k1OptimizationStochasticAndDeterministic\) : superimpose the deterministic and stochastic models.</li> | ||
</ul> | </ul> | ||
Line 47: | Line 46: | ||
<ul> | <ul> | ||
<li>\(timeEvolutionDeterministic\) : show the time evolution by numerical calculus and equations.</li> | <li>\(timeEvolutionDeterministic\) : show the time evolution by numerical calculus and equations.</li> | ||
− | <li>\(k1OptimizationDeterministic\) : calcul the number of | + | <li>\(k1OptimizationDeterministic\) : calcul the number of differentiated cells with differents k1 in a deterministic way.</li> |
</ul> | </ul> | ||
<h3>Input</h3> | <h3>Input</h3> | ||
Line 61: | Line 60: | ||
You can choose if you prefer to generate a random or a predetermined position for the initial cells. | You can choose if you prefer to generate a random or a predetermined position for the initial cells. | ||
<br /> | <br /> | ||
− | You have two cells types : mother cells and | + | You have two cells types : mother cells and differentiated cells. |
<h5>Random initial position</h5> | <h5>Random initial position</h5> | ||
The input array must contain four integer values in this order. | The input array must contain four integer values in this order. | ||
Line 75: | Line 74: | ||
<br /> | <br /> | ||
− | In the | + | In the program, the input variable has the following pattern. |
<br /> | <br /> | ||
\(input = [MC_0, DC_0, sizeMatCell, sizeMat]\) | \(input = [MC_0, DC_0, sizeMatCell, sizeMat]\) | ||
Line 98: | Line 97: | ||
<li>the image must be square and in jpeg format.</li> | <li>the image must be square and in jpeg format.</li> | ||
<li>255 means no cell.</li> | <li>255 means no cell.</li> | ||
− | <li>128 means one | + | <li>128 means one differentiated cell.</li> |
<li>0 means one mother cell.</li> | <li>0 means one mother cell.</li> | ||
</ul> | </ul> | ||
Line 106: | Line 105: | ||
<ul> | <ul> | ||
<li>#FFFFFF (white) means no cell.</li> | <li>#FFFFFF (white) means no cell.</li> | ||
− | <li>#800000 (red) means one | + | <li>#800000 (red) means one differentiated cell.</li> |
<li>#000000 (black) means one mother cell.</li> | <li>#000000 (black) means one mother cell.</li> | ||
</ul> | </ul> | ||
Line 114: | Line 113: | ||
<img src="https://static.igem.org/mediawiki/2015/9/9a/IgemImg.png" style="width:20%;height:20%;" alt="Example of predetermined cells initial position with mother cells" title="Example of predetermined cells initial position with mother cells" > | <img src="https://static.igem.org/mediawiki/2015/9/9a/IgemImg.png" style="width:20%;height:20%;" alt="Example of predetermined cells initial position with mother cells" title="Example of predetermined cells initial position with mother cells" > | ||
<br /> | <br /> | ||
− | Here is an other example with mother cells (black) and | + | Here is an other example with mother cells (black) and differentiated cells (red). |
<br /> | <br /> | ||
− | <img src="https://static.igem.org/mediawiki/2015/a/a4/IgemParisBettencourtImg.png" style="width:20%;height:20%;" alt="Example of predetermined cells initial position with mother cells (black) and | + | <img src="https://static.igem.org/mediawiki/2015/a/a4/IgemParisBettencourtImg.png" style="width:20%;height:20%;" alt="Example of predetermined cells initial position with mother cells (black) and differentiated cells (red)" title="Example of predetermined cells initial position with mother cells (black) and differentiated cells (red)" > |
<br /> | <br /> | ||
Line 131: | Line 130: | ||
</ul> | </ul> | ||
<br /> | <br /> | ||
− | In the | + | In the program, the rate constants variable has the following pattern. |
<br /> | <br /> | ||
\(constantRate = [\mu_{1}, \sigma_{1}, \mu_{2}, \sigma_{2}, \mu_{3}, \sigma_{3}, k_{4}]\) | \(constantRate = [\mu_{1}, \sigma_{1}, \mu_{2}, \sigma_{2}, \mu_{3}, \sigma_{3}, k_{4}]\) | ||
Line 161: | Line 160: | ||
<br /> | <br /> | ||
− | In the | + | In the program, the action variable has the following pattern. |
<br /> | <br /> | ||
\(action = [createFolder, showAnimation, plotGraph\)] | \(action = [createFolder, showAnimation, plotGraph\)] | ||
Line 208: | Line 207: | ||
<h4>Raw data</h4> | <h4>Raw data</h4> | ||
<ul> | <ul> | ||
− | <li>\(mainTic\) : start of the | + | <li>\(mainTic\) : start of the program.</li> |
<li>\(MC_0\) : initial number of mother cells in the medium.</li> | <li>\(MC_0\) : initial number of mother cells in the medium.</li> | ||
<li>\(DC_0\) : initial number of differentiated cells in the medium.</li> | <li>\(DC_0\) : initial number of differentiated cells in the medium.</li> | ||
Line 254: | Line 253: | ||
<li>\(timeSpent\) : computation time (in seconds).</li> | <li>\(timeSpent\) : computation time (in seconds).</li> | ||
− | |||
</ul> | </ul> | ||
<h4>Folder creation</h4> | <h4>Folder creation</h4> | ||
+ | If the \(action\) variable \(createFolder\) is set, the program will save important results data in this folder. | ||
+ | <br /> | ||
+ | <ul> | ||
+ | <li>\(parameters.txt\) : text file containing differents simulation parameters and results</li> | ||
+ | <li>\(data.mat\) : MATLAB file containing simulation the raw data structure. To load the file, use this formula : \(load('data.mat')\).</li> | ||
+ | </ul> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | |||
<h4>Graphs</h4> | <h4>Graphs</h4> | ||
+ | If the \(action\) variable \(plotGraph\) is set, the program will show the graphs. | ||
+ | <br /> | ||
+ | Moreover if the \(action\) variable \(createFolder\) is set, the program will save the graphs in the folder. | ||
+ | |||
<h4>Animation</h4> | <h4>Animation</h4> | ||
+ | If the \(action\) variable \(showAnimation\) is set, the program will show the cell animation. | ||
+ | <br /> | ||
+ | Moreover if the \(action\) variable \(createFolder\) is set, the program will save the images in the folder. | ||
<h3>Examples</h3> | <h3>Examples</h3> | ||
+ | We present here some results obtained with the program. For more details about the model see the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling" title="Modeling wiki page" >modeling page</a>. | ||
+ | |||
<h4>Time evolution of mother cells, differentiated cells and vitamin</h4> | <h4>Time evolution of mother cells, differentiated cells and vitamin</h4> | ||
<h5>Graphs</h5> | <h5>Graphs</h5> | ||
+ | As explained in the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling" title="Modeling wiki page" >modeling page</a> the program give these results. | ||
+ | <br /> | ||
+ | <img width="100%" src="https://static.igem.org/mediawiki/2015/1/14/StochasticEvolution.png" title="Stochastic evolution of the system" alt="Stochastic evolution of the system" style="align:center;"> | ||
+ | <br /> | ||
+ | <img width="100%" src="https://static.igem.org/mediawiki/2015/0/0b/OptimizeK1Stochastic.png" title="Stochastic vitamin optimization" alt="Stochastic vitamin optimization" style="align:center;"> | ||
+ | <br /> | ||
+ | <img width="100%" src="https://static.igem.org/mediawiki/2015/9/97/StochasticEventTimeProbabilityDistribution.png" title="Distribution of event time probability" alt="Distribution of event time probability" style="align:center;"> | ||
+ | |||
<h5>Animation</h5> | <h5>Animation</h5> | ||
+ | Here is an example with mother cells (black) and differentiated cells (red). | ||
+ | <br /> | ||
+ | This image is the cell input. | ||
+ | <br /> | ||
+ | <img style="width:30%;height:30%;" src="https://static.igem.org/mediawiki/2015/a/a4/IgemParisBettencourtImg.png" alt="Example of predetermined cells initial position with mother cells (black) and differentiated cells (red)" title="Example of predetermined cells initial position with mother cells (black) and differentiated cells (red)" > | ||
+ | <br /> | ||
+ | The result is the following animation after a conversion in a gif file. | ||
+ | <br /> | ||
+ | The mother cells are in orange and the differentiated cells are in yellow. | ||
+ | <br /> | ||
+ | <img style="width:30%;height:30%;" src="https://static.igem.org/mediawiki/2015/7/73/IgemParisBettencourtGif.gif" alt="Animation example with predetermined cells initial position with mother cells and differentiated cells" title="Animation example with predetermined cells initial position with mother cells and differentiated cells" > | ||
+ | <br /> | ||
+ | |||
<h4>Vitamin optimization</h4> | <h4>Vitamin optimization</h4> | ||
+ | This program is designed to maximize the vitamin production. Here are some results. | ||
+ | <br /> | ||
+ | <img width="100%" src="https://static.igem.org/mediawiki/2015/0/0b/OptimizeK1Stochastic.png" title="Stochastic vitamin optimization" alt="Stochastic vitamin optimization" style="align:center;"> | ||
+ | |||
<h4>Deterministic and stochastic vitamin optimization comparison</h4> | <h4>Deterministic and stochastic vitamin optimization comparison</h4> | ||
− | + | Here is a comparison between the two models. | |
− | < | + | <br /> |
− | < | + | <img width="100%" src="https://static.igem.org/mediawiki/2015/3/3c/CompareStochasticAndDeterministic.png" title="Comparison of deterministic and stochastic vitamin optimization" alt="Comparison of deterministic and stochastic vitamin optimization" style="align:center;"> |
− | + | ||
<h3>Conclusion</h3> | <h3>Conclusion</h3> | ||
− | + | Feel free to use and modify this program. The source code is available in <a href="https://github.com/iGEMParisBettencourt2015" alt="Source code in GitHub"> GitHub : iGEM Paris Bettencourt 2015</a> under the <a href="http://www.gnu.org/licenses/gpl.txt" alt="GNU General Public License" >GNU General Public License version 3.0</a>. | |
+ | For more informations concerning the model see the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling" title="Modeling wiki page" >modeling page</a>. | ||
</html> | </html> | ||
{{Paris_Bettencourt/footer}} | {{Paris_Bettencourt/footer}} |
Revision as of 20:59, 12 September 2015