Difference between revisions of "Team:Dundee/Modeling/Appendix1"

Line 1: Line 1:
<html>
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
 
+
<head>
+
 
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
   <!--
 
   <!--
Line 66: Line 64:
  
  
   </style>
+
   </style></head><body><div class="content"><pre class="codeinput">
<script>
+
$('.chevron_toggleable').on('click', function() {
+
    $(this).toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
+
});
+
</script>
+
<script type="text/javascript">
+
  $(document).ready(function(){
+
  $('a[href^="#"]').on('click',function (e) {
+
      e.preventDefault();
+
 
+
      var target = this.hash,
+
      $target = $(target);
+
 
+
      $('html, body').stop().animate({
+
          'scrollTop': $target.offset().top
+
      }, 900, 'swing', function () {
+
          window.location.hash = target;
+
      });
+
  });
+
});
+
</script>
+
 
+
 
+
 
+
 
+
 
+
 
+
   
+
 
+
 
+
</head>
+
 
+
<body>
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+
 
+
 
+
<a class="anchor" id="overview"></a>
+
    <section id="overview">
+
      <div class="row3">
+
        <div class="row">
+
          <div class="">
+
              <img src="img/igem-sponsor.png" align="right" width="50%" height="auto" class="img-mockup">
+
              </div>
+
          <div class="col-lg-12 feature" style="">
+
            <div class="row">
+
               
+
            <p><font color="white"> Lorem Ipsum</font></p>
+
              </div> 
+
   
+
              </div>
+
            </div>
+
           
+
 
+
      </div>
+
    </section>
+
 
+
 
+
 
+
 
+
<a class="anchor" id="Blood_code"></a>
+
    <section id="Blood_code">
+
      <div class="row3">
+
        <div class="row">
+
       
+
          <div class="col-lg-12 feature" style="">
+
            <div class="row">
+
               
+
           
+
              </div> 
+
   
+
              </div>
+
            </div>
+
           
+
 
+
      </div>
+
    </section>
+
<a href="https://2015.igem.org/Team:Dundee/Modeling/Appendix3"  class="btn btn-primary btn-lg pull-right" role="button">Appendix 3: Chromate Detector</a> 
+
<a href="https://2015.igem.org/Team:Dundee/Modeling/Appendix2"  class="btn btn-primary btn-lg pull-right" role="button">Appendix 2: Fingerprint Aging </a> 
+
 
+
 
+
 
+
<div class="content"><pre class="codeinput">
+
 
   <span class="comment"><h2>MATLAB code from haptosen.m file</h2>%Function to define the non-dimensionalised system of ODEs describing the</span>
 
   <span class="comment"><h2>MATLAB code from haptosen.m file</h2>%Function to define the non-dimensionalised system of ODEs describing the</span>
 
<span class="comment">%binding between Haptoglobin and Haemoglobin. u is a 4 dimensional vector</span>
 
<span class="comment">%binding between Haptoglobin and Haemoglobin. u is a 4 dimensional vector</span>
Line 305: Line 221:
 
##### SOURCE END #####
 
##### SOURCE END #####
 
--></body></html>
 
--></body></html>
 
<script>
 
$('.chevron_toggleable').on('click', function() {
 
    $(this).toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
 
});
 
</script>
 
<script type="text/javascript">
 
  $(document).ready(function(){
 
  $('a[href^="#"]').on('click',function (e) {
 
      e.preventDefault();
 
 
      var target = this.hash,
 
      $target = $(target);
 
 
      $('html, body').stop().animate({
 
          'scrollTop': $target.offset().top
 
      }, 900, 'swing', function () {
 
          window.location.hash = target;
 
      });
 
  });
 
});
 
</script>
 
 
 
<body>
 
 
 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
 
 
 
 
    <header>
 
    <a class="anchor" id="top"></a>
 
        <center>
 
            <h1><highlight class="highlight">Dry Lab</highlight></h1>
 
            <h3><highlight class="highlight">Appendix 1: BioSpray Code</highlight></h3>
 
        </center>
 
      </header>
 
 
 
 
<a class="anchor" id="overview"></a>
 
    <section id="overview">
 
      <div class="row3">
 
        <div class="row">
 
          <div class="">
 
              <img src="img/igem-sponsor.png" align="right" width="50%" height="auto" class="img-mockup">
 
              </div>
 
          <div class="col-lg-12 feature" style="">
 
            <div class="row">
 
               
 
            <p><font color="white"> Lorem Ipsum</font></p>
 
              </div> 
 
   
 
              </div>
 
            </div>
 
           
 
 
      </div>
 
    </section>
 
 
 
 
 
<a class="anchor" id="Blood_code"></a>
 
    <section id="Blood_code">
 
      <div class="row3">
 
        <div class="row">
 
       
 
          <div class="col-lg-12 feature" style="">
 
            <div class="row">
 
               
 
           
 
              </div> 
 
   
 
              </div>
 
            </div>
 
           
 
 
      </div>
 
    </section>
 
<a href="https://2015.igem.org/Team:Dundee/Modeling/Appendix3"  class="btn btn-primary btn-lg pull-right" role="button">Appendix 3: Chromate Detector</a> 
 
<a href="https://2015.igem.org/Team:Dundee/Modeling/Appendix2"  class="btn btn-primary btn-lg pull-right" role="button">Appendix 2: Fingerprint Aging </a> 
 
 
 
 
   
 
 
 
  </body>
 
 
 
 
</html>
 
 
{{:Team:Dundee/navbar}}
 
{{:Team:Dundee/footer}}
 

Revision as of 13:46, 9 August 2015

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> run_haptosen

  

MATLAB code from haptosen.m file

%Function to define the non-dimensionalised system of ODEs describing the
%binding between Haptoglobin and Haemoglobin. u is a 4 dimensional vector %where; % u(1)=Hp (Haptoglobin concentration) % u(2)=alphaHemo (Free Hemoglobin) % u(3)=alphaHemo/Hapto complex (Haptoglobin + alphaHemo complex) % u(4)=Hemo/Hapto complex (Full hemo/hapto complex). % t is the time that the simulation is run over. % lambda represents the parameter in the system determined by binding rates nd initial concentration of haemoglobin. % gamma represents the parameter in the system determined by binding rates. function f = haptosen(t,u,lambda,gamma); % define the system of ODEs by setting the vector f = left hand side of the system. f = [u(3)-lambda.*u(1)*u(2); u(3)-lambda.*u(1)*u(2); -u(3)+lambda.*u(1)*u(2)-gamma.*u(3); gamma.*u(3)]; % The function is then ended. end % This function can then be called in the run_haptosen.m file by using % @haptosen command.

MATLAB code from run_haptosen.m file

File to perform sensitivity analysis for Haptoglobin and Haemoglobin
% binding model. % a is the number of values chosen for each of the ranges of parameters. % Therefore 100 different values were chosen. a=100; %Lambda1 is the range of values for the parameter Lambda, chosen with the %expected value of (100/317)*0.3878494524 as the mean value. lambda1=linspace(0,((100/317)*0.3878494524)*2,a); %Gamma1 is the range of values for the parameter Gamma, chosen with the %expected value of (83/317) as the mean value. gamma1=linspace(0,(83/317)*2,a); %T is the final time of the simulation. T=30; % Store sets an empty matrix for the final concentrations of the complex % with the varied parameter values. Store = zeros(a,a); %figure(1) calls up a new figure. figure(1) % The for loop solves the ode system defined in haptosen function using ode23 for the range of values for both % parameters. for i=1:a for j=1:a [t,u]=ode23(@haptosen,[0 T],[4.17 1 0 0],[],lambda1(a+1-i),gamma1(j)); Store(i,j) = u(end,4); % Store(i,j) = (u(3,4)-u(2,4))/(t(3)-t(2)); end end %imagesc plots the surf plot of the parameters and the complex %concentration. imagesc(Store) % xlabel and ylabel add labels to the plot. xlabel('Increasing \lambda','FontSize',15,'FontWeight','bold'); ylabel('Increasing \gamma','FontSize',15,'FontWeight','bold'); %set removes the x and y axis set(gca,'YTick',[],'XTick',[]); % The following lines add a colour bar with defined labal and text. c=colorbar('Ticks',[0,0.99],'TickLabels',{'None','High'},'FontSize',15,'FontWeight','bold'); c.Label.String = 'Complex Concentration'; %the following lines add a text arrow to allow for annotation of the graph with defined colours positions and width. ta1 = annotation('textarrow', [0.13 0.79], [0.13 0.92]); h = text(0.5,0.5,'Complex Formation'); s = h.FontSize; h.FontSize = 12; j = h.Rotation; h.Rotation=45; k = h.Position; h.Position = [0.5 0.5 0]; b = ta1.Color; d=ta1.LineWidth; ta1.Color = 'red'; ta1.LineWidth= 4;