Team:TU Eindhoven/Modeling/Bacterial Cell Counter

From 2014.igem.org

(Difference between revisions)
Line 141: Line 141:
<h3>Droplet Detection</h3>
<h3>Droplet Detection</h3>
-
<p>To detect the cells <i>EdgeDetect</i>, a function of Mathematica using gradient methods, is used. It is then followed by a dilation in order to make the edges clearer. The results of these actions can be ssin in <a href="#Fig2">Figure 2</a>.</p>
+
<p>To detect the cells <i>EdgeDetect</i>, a function of Mathematica using gradient methods, is used. It is then followed by a dilation in order to make the edges clearer. The results of these actions can be seen in <a href="#Fig2">Figure 2</a>.</p>
-
<p>This results in clusters of pixels, all the pixels that are connected with only black pixels. The program then looks for the clusters bigger than 2000 pixels and smaller than 6000 pixels (<a href="#Fig2">Figure 3</a>).</p>
+
<p>This results in clusters of pixels, all the pixels that are connected with only black pixels. The program then looks for the clusters bigger than 2000 pixels and smaller than 6000 pixels (<a href="#Fig3">Figure 3</a>).</p>
<h3>Parameters of Droplets Detection</h3>
<h3>Parameters of Droplets Detection</h3>

Revision as of 00:36, 18 October 2014

iGEM Team TU Eindhoven 2014

iGEM Team TU Eindhoven 2014

Figure 1. The used sample image

Bacterial Cell Counter

Once photos of the microfluidics results have been made, the droplets and the cells inside the droplets have to be counted. In order to have reliable results, this has to be done on a large scale. A computer program has been designed to perform the counting on large numbers of photos. To give a better visualization of the process, a step by step analysis of the image shown in Figure 1 is given below.

The program has the following steps: firstly, to find and count the droplets, then to find and count the cells inside of the droplets and finally to create a histogram of the results. By adding up the histograms of multiple images one get a impression of how the cells are divided over the droplets.

Figure 2. The results after EdgeDetect

Droplet Detection

To detect the cells EdgeDetect, a function of Mathematica using gradient methods, is used. It is then followed by a dilation in order to make the edges clearer. The results of these actions can be seen in Figure 2.

This results in clusters of pixels, all the pixels that are connected with only black pixels. The program then looks for the clusters bigger than 2000 pixels and smaller than 6000 pixels (Figure 3).

Parameters of Droplets Detection

The parameters of this function are chosen so they have a very low false positive, because a false positive means a non-existing droplet and thus false data. A false negative only lowers the sample size, which can be increased by analyzing more images.

Figure 3. Results of selecting clusters

Bacterial Cell Detection

The program is now at the point where it has to count the number of cells in the droplets. Using the droplets from the edgedetect picture, erosion with value 1 is performed (resulting with the deletion of before in closing of the image). This makes sure the cells connected to the borders of the droplet are loose, the program deletes the border components so it only finds cells. The program uses EnclosingComponentCount instead of count now because a lot of cells became empty circles to get the results.

The results for this image are 9 false positives and 11 false negatives on a total of 93 cell in 126 droplets. Because some droplets had multiple false positives or false negatives the next step to improve this number is selecting to droplets better.
Click here to download the code

Figure 4. Histogram of the example image
iGEM Team TU Eindhoven 2014