Team:Paris/Modeling/modele

From 2008.igem.org

(Difference between revisions)
(New page: {{Paris/Menu}} {|cellspacing="5" cellpadding="10" style="background:#649CD7; width: 965px;" |-valign="top" |style="background:#ffffff"| |}<br style="clear:both" />)
 
(2 intermediate revisions not shown)
Line 3: Line 3:
|-valign="top"
|-valign="top"
|style="background:#ffffff"|
|style="background:#ffffff"|
 +
 +
To go back to the previous page : [[Team:Paris/Modeling#Corresponding codes|Clic here]].
 +
 +
 +
<html xmlns:v="urn:schemas-microsoft-com:vml"
 +
xmlns:o="urn:schemas-microsoft-com:office:office"
 +
xmlns:w="urn:schemas-microsoft-com:office:word"
 +
xmlns="http://www.w3.org/TR/REC-html40">
 +
 +
<head>
 +
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
 +
<meta name=ProgId content=Word.Document>
 +
<meta name=Generator content="Microsoft Word 11">
 +
<meta name=Originator content="Microsoft Word 11">
 +
<link rel=File-List href="modele_fichiers/filelist.xml">
 +
<title>function dx = modele(t,x)</title>
 +
<!--[if gte mso 9]><xml>
 +
<o:DocumentProperties>
 +
  <o:Author> </o:Author>
 +
  <o:LastAuthor> </o:LastAuthor>
 +
  <o:Revision>1</o:Revision>
 +
  <o:TotalTime>1</o:TotalTime>
 +
  <o:Created>2008-08-08T15:36:00Z</o:Created>
 +
  <o:LastSaved>2008-08-08T15:37:00Z</o:LastSaved>
 +
  <o:Pages>1</o:Pages>
 +
  <o:Words>273</o:Words>
 +
  <o:Characters>1503</o:Characters>
 +
  <o:Company> Supélec</o:Company>
 +
  <o:Lines>12</o:Lines>
 +
  <o:Paragraphs>3</o:Paragraphs>
 +
  <o:CharactersWithSpaces>1773</o:CharactersWithSpaces>
 +
  <o:Version>11.6408</o:Version>
 +
</o:DocumentProperties>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<w:WordDocument>
 +
  <w:HyphenationZone>21</w:HyphenationZone>
 +
  <w:PunctuationKerning/>
 +
  <w:ValidateAgainstSchemas/>
 +
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
 +
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
 +
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
 +
  <w:Compatibility>
 +
  <w:BreakWrappedTables/>
 +
  <w:SnapToGridInCell/>
 +
  <w:WrapTextWithPunct/>
 +
  <w:UseAsianBreakRules/>
 +
  <w:DontGrowAutofit/>
 +
  </w:Compatibility>
 +
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 +
</w:WordDocument>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 +
</w:LatentStyles>
 +
</xml><![endif]-->
 +
<style>
 +
<!--
 +
/* Style Definitions */
 +
p.MsoNormal, li.MsoNormal, div.MsoNormal
 +
{mso-style-parent:"";
 +
margin:0cm;
 +
margin-bottom:.0001pt;
 +
mso-pagination:widow-orphan;
 +
font-size:12.0pt;
 +
font-family:"Times New Roman";
 +
mso-fareast-font-family:"Times New Roman";}
 +
@page Section1
 +
{size:612.0pt 792.0pt;
 +
margin:70.85pt 70.85pt 70.85pt 70.85pt;
 +
mso-header-margin:36.0pt;
 +
mso-footer-margin:36.0pt;
 +
mso-paper-source:0;}
 +
div.Section1
 +
{page:Section1;}
 +
-->
 +
</style>
 +
<!--[if gte mso 10]>
 +
<style>
 +
/* Style Definitions */
 +
table.MsoNormalTable
 +
{mso-style-name:"Tableau Normal";
 +
mso-tstyle-rowband-size:0;
 +
mso-tstyle-colband-size:0;
 +
mso-style-noshow:yes;
 +
mso-style-parent:"";
 +
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 +
mso-para-margin:0cm;
 +
mso-para-margin-bottom:.0001pt;
 +
mso-pagination:widow-orphan;
 +
font-size:10.0pt;
 +
font-family:"Times New Roman";
 +
mso-ansi-language:#0400;
 +
mso-fareast-language:#0400;
 +
mso-bidi-language:#0400;}
 +
</style>
 +
<![endif]--><!--[if gte mso 9]><xml>
 +
<o:shapedefaults v:ext="edit" spidmax="2050"/>
 +
</xml><![endif]--><!--[if gte mso 9]><xml>
 +
<o:shapelayout v:ext="edit">
 +
  <o:idmap v:ext="edit" data="1"/>
 +
</o:shapelayout></xml><![endif]-->
 +
</head>
 +
 +
<body lang=FR style='tab-interval:35.4pt'>
 +
 +
<div class=Section1>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>function</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> dx =
 +
modele(t,x)</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% This
 +
function defines the ordinary differential equations that provides</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% a large
 +
scale description of our system.</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% CALL:
 +
[dx] = modele(t, x)</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>t<span style='mso-spacerun:yes'>  </span>=
 +
scalar value, time</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>x<span style='mso-spacerun:yes'>  </span>=
 +
vector representing the concentrations of the genes ( 5 genes )</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%<span
 +
style='mso-spacerun:yes'>  </span>dx = derivative of the concentrations</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% This
 +
function uses the following formalism dx=x'=f(x)</span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% nombre
 +
cellules</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> Ncell</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> Next</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> B</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> b</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> R</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> D</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> O</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>global</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> g</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%%
 +
Auxilliary Functions, describing a decreasing step function</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%cell1</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>    </span></span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:blue'>function</span><span style='font-size:
 +
10.0pt;font-family:"Courier New";color:black'> xs = f(x)</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>        </span>T(1)=noise(10);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>        </span>Pa(1)=noise(10);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>        </span></span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:blue'>if</span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:black'> x&gt;T(1)</span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>            </span>xs=0;</span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>        </span></span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:blue'>else</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>            </span>xs=Pa(1);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>        </span></span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:blue'>end</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>    </span></span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:blue'>end</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%%
 +
Ordinary Differential Equations</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% calc
 +
intermediate sum</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>y = 0;</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>for</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> k=1:Ncell</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>    </span>y = y + (D(2,k))*(x(5+8*(k-1)) - x(Next));</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>end</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>x=max(x,0);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>for</span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'> k=1:Ncell</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'><span
 +
style='mso-spacerun:yes'>  </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>% int
 +
cells<span style='mso-spacerun:yes'>    </span></span><span style='font-family:
 +
"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(1+8*(k-1)) =
 +
-(g(1+8*(k-1)))*x(1+8*(k-1)) + (B(1,k))*x(8+8*(k-1)) + (b(1,k))*x(1+8*(k-1)) ; </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% fliA</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(2+8*(k-1)) =
 +
-(g(2+8*(k-1)))*x(2+8*(k-1)) + (B(2,k))*x(8+8*(k-1)) + (b(2,k))*x(1+8*(k-1)) ; </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% fliL</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(3+8*(k-1)) =
 +
-(g(3+8*(k-1)))*x(3+8*(k-1)) + (B(3,k))*x(8+8*(k-1)) + (b(3,k))*x(1+8*(k-1)) ; </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% flgA</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(4+8*(k-1)) =
 +
-(g(4+8*(k-1)))*x(4+8*(k-1)) + (B(4,k))*x(8+8*(k-1)) + (b(4,k))*x(1+8*(k-1)) ; </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% flhB</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(5+8*(k-1)) =
 +
-(g(5+8*(k-1)))*x(5+8*(k-1)) + (B(5,k))*x(4+8*(k-1)) - (D(1,k))*(x(5+8*(k-1)) -
 +
x(Next)) ; </span><span style='font-size:10.0pt;font-family:"Courier New";
 +
color:forestgreen'>%% HSL int</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(6+8*(k-1)) =
 +
-(g(6+8*(k-1)))*x(6+8*(k-1)) + ((R(k))*x(5+8*(k-1)))/(1 + x(5+8*(k-1))) ; </span><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% tetR
 +
mRNA</span><span style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(7+8*(k-1)) =
 +
(O(k))*(x(6+8*(k-1)) - x(7+8*(k-1))) ; </span><span style='font-size:10.0pt;
 +
font-family:"Courier New";color:forestgreen'>%% tetR</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(8+8*(k-1)) =
 +
- (g(8+8*(k-1)))*x(8+8*(k-1)) + f(x(7+8*(k-1))); </span><span style='font-size:
 +
10.0pt;font-family:"Courier New";color:forestgreen'>%% flhDC</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>end</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'>%% Outside
 +
of the cells</span><span style='font-family:"Courier New";mso-bidi-font-family:
 +
"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx(Next)=
 +
-(g(Next))*x(Next) + y; </span><span style='font-size:10.0pt;font-family:"Courier New";
 +
color:forestgreen'>%% HSL ext</span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:forestgreen'><span
 +
style='mso-spacerun:yes'> </span></span><span style='font-family:"Courier New";
 +
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:black'>dx=dx(:);</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-size:10.0pt;font-family:"Courier New";color:blue'>end</span><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
 +
 +
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
 +
style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p>
 +
 +
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 +
 +
</div>
 +
 +
</body>
 +
 +
</html>
 +
|}<br style="clear:both" />
|}<br style="clear:both" />

Latest revision as of 15:43, 8 August 2008

To go back to the previous page : Clic here.


function dx = modele(t,x)

function dx = modele(t,x)

% This function defines the ordinary differential equations that provides

% a large scale description of our system.

%

% CALL: [dx] = modele(t, x)

% t = scalar value, time

% x = vector representing the concentrations of the genes ( 5 genes )

% dx = derivative of the concentrations

%

% This function uses the following formalism dx=x'=f(x)

%

% nombre cellules

global Ncell

global Next

global B

global b

global R

global D

global O

global g

%% Auxilliary Functions, describing a decreasing step function

%cell1

function xs = f(x)

T(1)=noise(10);

Pa(1)=noise(10);

if x>T(1)

xs=0;

else

xs=Pa(1);

end

end

%% Ordinary Differential Equations

% calc intermediate sum

y = 0;

for k=1:Ncell

y = y + (D(2,k))*(x(5+8*(k-1)) - x(Next));

end

x=max(x,0);

for k=1:Ncell

% int cells

dx(1+8*(k-1)) = -(g(1+8*(k-1)))*x(1+8*(k-1)) + (B(1,k))*x(8+8*(k-1)) + (b(1,k))*x(1+8*(k-1)) ; %% fliA

dx(2+8*(k-1)) = -(g(2+8*(k-1)))*x(2+8*(k-1)) + (B(2,k))*x(8+8*(k-1)) + (b(2,k))*x(1+8*(k-1)) ; %% fliL

dx(3+8*(k-1)) = -(g(3+8*(k-1)))*x(3+8*(k-1)) + (B(3,k))*x(8+8*(k-1)) + (b(3,k))*x(1+8*(k-1)) ; %% flgA

dx(4+8*(k-1)) = -(g(4+8*(k-1)))*x(4+8*(k-1)) + (B(4,k))*x(8+8*(k-1)) + (b(4,k))*x(1+8*(k-1)) ; %% flhB

dx(5+8*(k-1)) = -(g(5+8*(k-1)))*x(5+8*(k-1)) + (B(5,k))*x(4+8*(k-1)) - (D(1,k))*(x(5+8*(k-1)) - x(Next)) ; %% HSL int

dx(6+8*(k-1)) = -(g(6+8*(k-1)))*x(6+8*(k-1)) + ((R(k))*x(5+8*(k-1)))/(1 + x(5+8*(k-1))) ; %% tetR mRNA

dx(7+8*(k-1)) = (O(k))*(x(6+8*(k-1)) - x(7+8*(k-1))) ; %% tetR

dx(8+8*(k-1)) = - (g(8+8*(k-1)))*x(8+8*(k-1)) + f(x(7+8*(k-1))); %% flhDC

end

%% Outside of the cells

dx(Next)= -(g(Next))*x(Next) + y; %% HSL ext

dx=dx(:);

end