IGEM:IMPERIAL/2008/Prototype/Drylab/Data Analysis/BSub Charac

From OpenWetWare
Jump to navigationJump to search

<html> <style type="text/css"> .firstHeading {display: none;} </style> </html> <html> <style type="text/css">

   table.calendar          { margin:0; padding:2px; }

table.calendar td { margin:0; padding:1px; vertical-align:top; } table.month .heading td { padding:1px; background-color:#FFFFFF; text-align:center; font-size:120%; font-weight:bold; } table.month .dow td { text-align:center; font-size:110%; } table.month td.today { background-color:#3366FF } table.month td {

   border:2px;
   margin:0;
   padding:0pt 1.5pt;
   font-size:8pt;
   text-align:right;
   background-color:#FFFFFF;
   }
  1. bodyContent table.month a { background:none; padding:0 }

.day-active { font-weight:bold; } .day-empty { color:black; } </style> </html>

<html><script language="JavaScript">

var timeout = 250; var closetimer = 0; var ddmenuitem = 0;

// open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ddmenuitem = document.getElementById(id); ddmenuitem.style.visibility = 'visible'; } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } // go close timer function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } // close layer when click-out //document.onclick = mclose; </script>




</html>
<html><style type="text/css">

div.Section { font:11pt/16pt Calibri, Verdana, Arial, Geneva, sans-serif; background-image: url(http://openwetware.org/images/a/a0/Background.PNG); background-size: 100%; background-origin: content; }

/* Text (paragraphs) */ div.Section p { font:11pt/16pt Calibri, Verdana, Arial, Geneva, sans-serif; text-align:justify; margin-top:0px; margin-left:30px; margin-right:30px; }

/* Headings */ div.Section h1 { font:22pt Calibri, Verdana, Arial, Geneva, sans-serif; text-align:left; color:#3366FF; font-weight:bold; }

/* Subheadings */ div.Section h2 { font:18pt Calibri, Verdana, Arial, Geneva, sans-serif; color:#3366FF; margin-left:5px; font-weight:bold; }

/* Subsubheadings */ div.Section h3 { font:22pt Calibri, Verdana, Arial, sans-serif; color:#E5EBFF; margin-left:10px; font-weight:bold; }

/* Subsubsubheadings */ div.Section h4 { font:22pt Calibri, Verdana, Arial, sans-serif; color:#2B48B3; margin-left:10px; font-weight:bold; }

/* Subsubsubsubheadings */ div.Section h5 { font:12pt Calibri, Verdana, Arial, sans-serif; color:#3366FF; margin-left:20px; }

/* References */ div.Section h6 { font:12pt Calibri, Verdana, Arial, sans-serif; font-weight:bold; font-style:italic; color:#3366FF; margin-left:25px; }

/* Hyperlinks */ div.Section a { }

div.Section a:hover { }

/* Tables */ div.Section td { font:11pt/16pt Calibri, Verdana, Arial, Geneva, sans-serif; text-align:justify; vertical-align:top; padding:2px 4px 2px 4px; }

/* Lists */ div.Section li { font:11pt/16pt Calibri, Verdana, Arial, Geneva, sans-serif; text-align:left; margin-top:0px; margin-left:30px; margin-right:0px; }

/* TOC stuff */ table.toc { margin-left:10px; }

table.toc li { font: 11pt/16pt Calibri, Verdana, Arial, Geneva, sans-serif; text-align: justify; margin-top: 0px; margin-left:2px; margin-right:2px; }

/* [edit] links */ span.editsection { color:#BBBBBB; font-size:10pt; font-weight:normal; font-style:normal; vertical-align:bottom; }

span.editsection a { color:#BBBBBB; font-size:10pt; font-weight:normal; font-style:normal; vertical-align:bottom; }

span.editsection a:hover { color:#3366FF; font-size:10pt; font-weight:normal; font-style:normal; vertical-align:bottom; }

/* Drop-down Menu */

  1. sddm {

margin: 0; padding: 0; z-index: 30 margin: 0; padding: 0; float: center; font: bold 12pt Calibri, Verdana, Arial, Geneva, sans-serif; border: 0px; list-style: none; }

  1. sddm a {

display: block; margin: 0px 0px 0px 0px; padding: 0 0 12px 0; color: #FFFFFF; text-align: center; text-decoration: none; }

  1. sddm a:hover {

border: 0px }

  1. sddm div {

position: absolute; visibility: hidden; margin: 0; padding: 0; background: #66aadd; border: 1px solid #66aadd } #sddm div a { position: relative; left: 0; display: block; margin: 0; padding: 5px 10px; width: auto; white-space: nowrap; text-align: left; text-decoration: none; background: #FFFFFF; color: #2875DE; font: 11pt Calibri, Verdana, Arial, Geneva, sans-serif } #sddm div a:hover { background: #66aadd; color: #FFFFFF } </style></html>

Generating Bacteria Characteristics

Shape and Light Intensity

Real Bacteria
Real Bacteria
Synthetic Bacteria
Synthetic Bacteria

The light intensity of the bacteria was assumed to vary with a normal distribution across frames. The body of each bacteria had a homogenous light intensity, while the membrane was lighter in intensity than the cell body. The shape of the bacteria was also assumed to vary with a normal distribution across frames. It is evident from microscopy videos that the bacteria are rod shaped, and may appear to change shape as they tumble along the z-axis. The intensity of the membrane was assumed to be half the light intensity of that of the cell body.

MATLAB Code

   %Generates Bacteria Shape and Color Intensity 
   function [bactshape,bactinten]=shape(nframes,dframe,L, W, SigSize, I, SigInt)
   
   %Where L and W are the length and width of bacteria and I is the intensity.
   %SigSize and SigInt are standard deviation in cell dimensions and intensity.
   %nframes is the total number of frames and dframe is the frame step for which 
   %cell transition takse place. Total number of frames must be a multiple of frame step
   
   %Determines Size of Array
   i=1:dframe:nframes;
   ShpSize=max(i)+dframe;
   
   %Initialising Parameters
   bactshape=zeros(ShpSize,3);   
   bactinten=zeros(ShpSize,1);
   
   %Generate step characteristics
   for n=1:dframe:ShpSize
       bactshape(n,1)=abs(normrnd(L,SigSize));
       bactshape(n,2)=abs(normrnd(W,SigSize));
       bactshape(n,3)=randraw('vonmises',[0,1]);
   
       %Ensures ColorSpec value to be from 0 to 1
       if bactinten(n,1)>64 || bactinten(n,2)>64
           bactinten(n,1)=I;
           bactinten(n,2)=I*2;
       end;
   end;
   
   %Generating Bacteria Size and Color Intensity
   for n=1:dframe:nframes
       for i=(n+1):(n+dframe-1)
           bactshape(i,:)=bactshape(i-1,:)+(bactshape(n+dframe,:)-bactshape(n,:))/dframe;
           bactinten(i,:)=bactinten(i-1,:)+(bactinten(n+dframe,:)-bactinten(n,:))/dframe;
       end;
   end;
   
   %Returns Bacinten in the form of ColorSpec
   bactinten=bactinten/64; 
   

<html>
    </html>[[IGEM:IMPERIAL/2008/New/{{{1}}}|< Previous]]<html>
    <a href="#">Back to top</a>
    </html>[[IGEM:IMPERIAL/2008/New/{{{2}}}|Next >]]<html>
</html>