Difference between revisions of "Team:Paris Bettencourt/Software"
m |
|||
Line 6: | Line 6: | ||
<h3>Introduction</h3> | <h3>Introduction</h3> | ||
− | As explained | + | As explained on the <a href="https://2015.igem.org/Team:Paris_Bettencourt/Modeling" title="Modeling wiki page" >modeling page</a>, this program models the cell 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 13: | Line 13: | ||
The MATLAB code is available in <a href="https://github.com/iGEMParisBettencourt2015/modeling" title="Source code in GitHub" >GitHub</a> under the GNU General Public License version 3.0. | The MATLAB code is available in <a href="https://github.com/iGEMParisBettencourt2015/modeling" title="Source code in GitHub" >GitHub</a> under the GNU General Public License version 3.0. | ||
<br /> | <br /> | ||
− | Here is a quick explanation of the | + | Here is a quick explanation of the different files <i>i.e.</i> the different functions. |
<h4>Stochastic algorithm</h4> | <h4>Stochastic algorithm</h4> | ||
<ul> | <ul> | ||
− | <li>\(timeEvolutionStochastic\) : | + | <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 an other pixel.</li> | <li>\(elmPixel\) : find the coordinates of a pixel around an other pixel.</li> | ||
− | <li>\(errorProgramm\) : display an error and stop the | + | <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> | ||
<li>\(getComputerName\) : get the computer name.</li> | <li>\(getComputerName\) : get the computer name.</li> | ||
− | <li>\(getSizeMat\) : find the | + | <li>\(getSizeMat\) : find the matrix size.</li> |
<li>\(imageToMatrix\) : convert an image into a matrix.</li> | <li>\(imageToMatrix\) : convert an image into a matrix.</li> | ||
<li>\(initCells\) : initialize the cells.</li> | <li>\(initCells\) : initialize the cells.</li> | ||
Line 59: | Line 59: | ||
You can choose to generate a random or a predetermined position for the initial cells. | You can choose to generate a random or a predetermined position for the initial cells. | ||
<br /> | <br /> | ||
− | You have two | + | You have two cell 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 88: | Line 88: | ||
<h5>Predetermined initial position</h5> | <h5>Predetermined initial position</h5> | ||
− | In order to make an easy predetermined initial position input, we wrote a code | + | In order to make an easy predetermined initial position input, we wrote a code that understands images. |
<br /> | <br /> | ||
The input must contain the image path. | The input must contain the image path. | ||
<br /> | <br /> | ||
− | It is very easy to design a custom image <i> | + | It is very easy to design a custom image <i>i.e.</i> a custom spatial cell distribution. You must follow these four rules (we work only with the image red component) |
<ul> | <ul> | ||
<li>the image must be square and in jpeg format.</li> | <li>the image must be square and in jpeg format.</li> | ||
Line 101: | Line 101: | ||
0, 128 and 255 are red components of any colours that you want because the MATLAB code take into account only the image red component. | 0, 128 and 255 are red components of any colours that you want because the MATLAB code take into account only the image red component. | ||
<br /> | <br /> | ||
− | If you want, you can use the following hexadecimal | + | If you want, you can use the following hexadecimal colors codes. |
<ul> | <ul> | ||
<li>#FFFFFF (white) means no cell.</li> | <li>#FFFFFF (white) means no cell.</li> | ||
Line 156: | Line 156: | ||
<ul> | <ul> | ||
<li>\(createFolder\) : create a folder in the disk to save informations.</li> | <li>\(createFolder\) : create a folder in the disk to save informations.</li> | ||
− | <li>\(showAnimation\) : show the cell population animation. Warning : | + | <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> | ||
</ul> | </ul> | ||
Line 239: | Line 239: | ||
<li>\(time2Array\) : time distribution array 2 (see the \(initTimeEvent\) function).</li> | <li>\(time2Array\) : time distribution array 2 (see the \(initTimeEvent\) function).</li> | ||
<li>\(time3Array\) : time distribution array 3 (see the \(initTimeEvent\) function).</li> | <li>\(time3Array\) : time distribution array 3 (see the \(initTimeEvent\) function).</li> | ||
− | <li>\(cell\) : structure containing all the cells | + | <li>\(cell\) : structure containing all the cells' information.</li> |
<li>\(sizeMatCell\) : cells box size (in pixels).</li> | <li>\(sizeMatCell\) : cells box size (in pixels).</li> | ||
<li>\(timeNextEvent\) : time before the next event.</li> | <li>\(timeNextEvent\) : time before the next event.</li> | ||
Line 279: | Line 279: | ||
<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 | + | 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 /> | <br /> | ||
<br /> | <br /> | ||
Line 320: | Line 320: | ||
<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/modeling" title="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>. | Feel free to use and modify this program. The source code is available in <a href="https://github.com/iGEMParisBettencourt2015/modeling" title="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 | + | For more information 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 19:34, 17 September 2015