Difference between revisions of "Team:Paris Bettencourt/Software"
m |
m |
||
Line 18: | Line 18: | ||
<li>\(timeEvolutionStochastic\) : calculate the time evolution.</li> | <li>\(timeEvolutionStochastic\) : calculate the time evolution.</li> | ||
<li>\(checkInput\) : check the input and show an error message if the input is not good.</li> | <li>\(checkInput\) : check the input and show an error message if the input is not good.</li> | ||
− | <li>\(elmPixel\) : find the coordinates of a pixel around | + | <li>\(elmPixel\) : find the coordinates of a pixel around another pixel.</li> |
<li>\(errorProgramm\) : display an error and stop the program.</li> | <li>\(errorProgramm\) : display an error and stop the program.</li> | ||
<li>\(freePosition\) : create a list of free pixels around one pixel.</li> | <li>\(freePosition\) : create a list of free pixels around one pixel.</li> | ||
Line 26: | Line 26: | ||
<li>\(initCells\) : initialize the cells.</li> | <li>\(initCells\) : initialize the cells.</li> | ||
<li>\(initialization\) : initialize the program.</li> | <li>\(initialization\) : initialize the program.</li> | ||
− | <li>\(initTimeEvent\) : | + | <li>\(initTimeEvent\) : calculate the different time.</li> |
<li>\(initVariables\) : initialize the variables.</li> | <li>\(initVariables\) : initialize the variables.</li> | ||
<li>\(isBinary\) : check if a number is 0 or 1.</li> | <li>\(isBinary\) : check if a number is 0 or 1.</li> | ||
Line 38: | Line 38: | ||
<li>\(showPopulation\) : show the cells matrix.</li> | <li>\(showPopulation\) : show the cells matrix.</li> | ||
<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 | + | <li>\(launchStochasticProgramm\) : launch the stochastic time evolution simulation.</li> |
− | <li>\(k1OptimizationStochastic\) : | + | <li>\(k1OptimizationStochastic\) : calculate the number of differentiated cells and vitamin with different \(k_{1}\) 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 45: | Line 45: | ||
<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\) : | + | <li>\(k1OptimizationDeterministic\) : calculate the number of differentiated cells with different \(k_{1}\) in a deterministic way.</li> |
</ul> | </ul> | ||
<h3>Input</h3> | <h3>Input</h3> | ||
In order to launch a simulation, you must define five variables. | In order to launch a simulation, you must define five variables. | ||
<ul> | <ul> | ||
− | <li> | + | <li>Initial cells.</li> |
− | <li> | + | <li>Rate constants.</li> |
− | <li> | + | <li>Fermentation period.</li> |
− | <li> | + | <li>Action.</li> |
− | <li> | + | <li>Folder name.</li> |
</ul> | </ul> | ||
<h4>Cells input</h4> | <h4>Cells input</h4> | ||
Line 113: | 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 | + | Here is another example with mother cells (black) and differentiated cells (red). |
<br /> | <br /> | ||
<br /> | <br /> | ||
Line 153: | Line 153: | ||
You can use \(t = 5 \phantom{t} (hours)\) for example. | You can use \(t = 5 \phantom{t} (hours)\) for example. | ||
<h4>Action</h4> | <h4>Action</h4> | ||
− | In order to choose what you want to do, you must define three | + | In order to choose what you want to do, you must define three Boolean variables. |
<ul> | <ul> | ||
− | <li>\(createFolder\) : create a folder in the disk to save | + | <li>\(createFolder\) : create a folder in the disk to save information.</li> |
<li>\(showAnimation\) : show the cell population animation. Warning : requires a lot of computing power.</li> | <li>\(showAnimation\) : show the cell population animation. Warning : requires a lot of computing power.</li> | ||
<li>\(plotGraph\) : plot the results in graphs.</li> | <li>\(plotGraph\) : plot the results in graphs.</li> | ||
Line 200: | Line 200: | ||
Four types of output are generated. | Four types of output are generated. | ||
<ul> | <ul> | ||
− | <li>raw data : all the useful | + | <li>raw data : all the useful information.</li> |
− | <li>folder creation : if chosen in the \(action\) variable | + | <li>folder creation : if chosen in the \(action\) variable a folder is created.</li> |
− | <li>graphs : if chosen in the \(action\) variable | + | <li>graphs : if chosen in the \(action\) variable graphs are generated.</li> |
− | <li>animation : if chosen in the \(action\) variable | + | <li>animation : if chosen in the \(action\) variable cell animation is generated.</li> |
</ul> | </ul> | ||
Line 212: | Line 212: | ||
<li>\(DC_0\) : initial number of differentiated cells in the medium.</li> | <li>\(DC_0\) : initial number of differentiated cells in the medium.</li> | ||
<li>\(pasDistributionTimeEvent\) : resolution for the graph time event distribution plot (see the \(initVariables\) function).</li> | <li>\(pasDistributionTimeEvent\) : resolution for the graph time event distribution plot (see the \(initVariables\) function).</li> | ||
− | <li>\(frameRate\) : animation | + | <li>\(frameRate\) : animation frame rate (see the \(initVariables\) function).</li> |
<li>\(timeShowPopulation\) : simulation time between two animations (see the \(initVariables\) function).</li> | <li>\(timeShowPopulation\) : simulation time between two animations (see the \(initVariables\) function).</li> | ||
<li>\(simulationTime\) : fermentation period \(t\).</li> | <li>\(simulationTime\) : fermentation period \(t\).</li> | ||
Line 248: | Line 248: | ||
<li>\(folderName\) : folder where the results are stored. The pattern is the following : \(resultFolderName/DD-MM-YY\_hh\_mm\_ss\_mss\).</li> | <li>\(folderName\) : folder where the results are stored. The pattern is the following : \(resultFolderName/DD-MM-YY\_hh\_mm\_ss\_mss\).</li> | ||
<li>\(imgType\) : image type (see the \(initialization\) function).</li> | <li>\(imgType\) : image type (see the \(initialization\) function).</li> | ||
− | <li>\(parametersFileName\) : parameters file name where the parameters are saved (see the \( | + | <li>\(parametersFileName\) : parameters file name where the parameters are saved (see the \(initialization\) function).</li> |
<li>\(parametersDoc\) : file object where the parameters are saved.</li> | <li>\(parametersDoc\) : file object where the parameters are saved.</li> | ||
<li>\(maxMC\) : maximum number of mother cells.</li> | <li>\(maxMC\) : maximum number of mother cells.</li> | ||
Line 260: | Line 260: | ||
<br /> | <br /> | ||
<ul> | <ul> | ||
− | <li>\(parameters.txt\) : text file containing | + | <li>\(parameters.txt\) : text file containing different simulation parameters and results.</li> |
<li>\(data.mat\) : MATLAB file containing the raw data structure. To load the file, use this formula : \(load('data.mat')\).</li> | <li>\(data.mat\) : MATLAB file containing the raw data structure. To load the file, use this formula : \(load('data.mat')\).</li> | ||
</ul> | </ul> | ||
Line 267: | Line 267: | ||
If the \(action\) variable \(plotGraph\) is set, the program will show the graphs. | If the \(action\) variable \(plotGraph\) is set, the program will show the graphs. | ||
<br /> | <br /> | ||
− | Moreover if the \(action\) variable \(createFolder\) is set, the program will save the graphs in the folder. | + | 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. | If the \(action\) variable \(showAnimation\) is set, the program will show the cell animation. | ||
<br /> | <br /> | ||
− | Moreover if the \(action\) variable \(createFolder\) is set, the program will save the images in the folder. | + | 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 | + | We present here some results obtained with the program. For more details about the model sees 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> |
Revision as of 20:18, 17 September 2015