Team:Paris/Modeling/BOB/Simulations/Codes

From 2008.igem.org

(Difference between revisions)
(New page: {{Paris/Menu}} * Here are the different MatLab codes used for our simulations = FIFO = * Code to Test the FIFO without FliA '' beta=[1200/1450 150/450 100/450 50/350]; %% parameters valu...)
m
 
(10 intermediate revisions not shown)
Line 1: Line 1:
{{Paris/Menu}}
{{Paris/Menu}}
-
* Here are the different MatLab codes used for our simulations
+
* Here are the different codes used for our simulations
 +
 
= FIFO =
= FIFO =
* Code to Test the FIFO without FliA
* Code to Test the FIFO without FliA
-
''
 
-
beta=[1200/1450 150/450 100/450 50/350]; %% parameters value
 
-
Tspan=[0:0.1:40]
+
[[Image:FIFO_sans_FliA_code.jpg]]
 +
* Code to Test the FIFO with FliA
-
%% function to generate FlhDC evolution
+
[[Image:FIFO_avec_FliA_code.jpg]]
-
    function Y = step(T)
+
=Alternatives of the core system in BIOCHAM=
-
        for i = 1:length(T)
+
<code><pre>
-
            if (T(i) < 20)
+
%degradations
-
                Y(i) = 1;
+
MA(gamma) for Flia => _.
-
            else
+
MA(gamma) for FlhDC => _.
-
                Y(i) = 0;
+
MA(gamma) for EnvZ => _.
-
            end
+
-
        end
+
-
    end
+
-
 
+
-
%% function to set the equations
+
-
    function Y = Vp(t,V)
+
-
        Y(4,1)=0;
+
-
        for i = 1:3
+
-
            Y(i,1) = beta(i) * V(5) + ((1-beta(i)) * V(4)) - V(i);
+
-
        end
+
-
        Y(5,1) = step(t) - V(5);
+
-
    end
+
-
 
+
-
C0=zeros(5,1); %% initial conditions
+
-
 
+
-
%% ODE solver
+
-
[bar C]=ode23(@Vp,Tspan,C0);
+
-
 
+
-
plot(Tspan,C)
+
-
legend('CFP','YFP','RFP','FliA','FlhDC')
+
-
end
+
-
''
+
-
 
+
-
* Code to Test the FIFO without FliA
+
-
''
+
-
beta=[1200/1450 150/450 100/450 50/350]; %% parameters value
+
-
Tspan=[0:0.1:40]
+
%FlhDC action
 +
MA(beta_Flia) for FlhDC => Flia + FlhDC.
 +
MA(beta_EnvZ) for FlhDC => TetR + FlhDC.
 +
%Flia action
 +
MA(betap_Flia) for Flia => Flia + Flia.
 +
MA(betap_EnvZ) for Flia => EnvZ + Flia.
-
%% function to generate FlhDC evolution
+
%TetR action
 +
beta_FlhDC*(theta_FlhDC^n)/(theta_FlhDC^n+[EnvZ]^n) for _  => FlhDC.
-
    function Y = step(T)
+
parameter(gamma,1).
-
        for i = 1:length(T)
+
parameter(beta_Flia,0.1429).
-
            if (T(i) < 20)
+
parameter(betap_Flia,0.8581).
-
                Y(i) = 1;
+
parameter(beta_EnvZ,0.2222).
-
            else
+
parameter(betap_EnvZ,0.7778).
-
                Y(i) = 0;
+
parameter(beta_FlhDC,1).
-
            end
+
parameter(theta_FlhDC,0.5).
-
        end
+
parameter(n,4).
-
    end
+
-
%% function to set the equations
+
%Alternative 1
-
    function Y = Vp(t,V)
+
%parameter(beta_Flia,1).
-
        for i = 1:4
+
%parameter(betap_Flia,0).
-
            Y(i,1) = beta(i) * V(5) + ((1-beta(i)) * V(4)) - V(i);
+
-
        end
+
-
        Y(5,1) = step(t) - V(5);
+
-
    end
+
-
C0=zeros(5,1); %% initial conditions
+
%Alternative 2
 +
%parameter(beta_EnvZ,0).
 +
%parameter(betap_EnvZ,1).
-
%% ODE solver
+
%Alternative 3
-
[bar C]=ode23(@Vp,Tspan,C0);
+
%parameter(theta_FlhDC,0.1)
-
plot(Tspan,C)
+
</pre></code>
-
legend('CFP','YFP','RFP','FliA','FlhDC')
+
-
end''
+

Latest revision as of 23:04, 29 October 2008

  • Here are the different codes used for our simulations


FIFO

  • Code to Test the FIFO without FliA

FIFO sans FliA code.jpg

  • Code to Test the FIFO with FliA

FIFO avec FliA code.jpg

Alternatives of the core system in BIOCHAM

%degradations
MA(gamma) for Flia => _.
MA(gamma) for FlhDC => _.
MA(gamma) for EnvZ => _.

%FlhDC action
MA(beta_Flia) for FlhDC => Flia + FlhDC.
MA(beta_EnvZ) for FlhDC => TetR + FlhDC.

%Flia action
MA(betap_Flia) for Flia => Flia + Flia.
MA(betap_EnvZ) for Flia => EnvZ + Flia.

%TetR action
beta_FlhDC*(theta_FlhDC^n)/(theta_FlhDC^n+[EnvZ]^n) for _  => FlhDC.

parameter(gamma,1).
parameter(beta_Flia,0.1429).
parameter(betap_Flia,0.8581).
parameter(beta_EnvZ,0.2222).
parameter(betap_EnvZ,0.7778).
parameter(beta_FlhDC,1).
parameter(theta_FlhDC,0.5).
parameter(n,4).

%Alternative 1
%parameter(beta_Flia,1).
%parameter(betap_Flia,0).

%Alternative 2
%parameter(beta_EnvZ,0).
%parameter(betap_EnvZ,1).

%Alternative 3
%parameter(theta_FlhDC,0.1)