Tools and methods for high-throughput single-cell imaging with the mother machine

  1. Ryan Thiermann
  2. Michael Sandler
  3. Gursharan Ahir
  4. John T Sauls
  5. Jeremy Schroeder
  6. Steven Brown
  7. Guillaume Le Treut
  8. Fangwei Si
  9. Dongyang Li
  10. Jue D Wang
  11. Suckjoon Jun  Is a corresponding author
  1. Department of Physics, University of California, San Diego, United States
  2. Department of Biological Chemistry, University of Michigan Medical School, United States
  3. Chan Zuckerberg Biohub, United States
  4. Department of Physics, Carnegie Mellon University, United States
  5. Division of Biology and Biological Engineering, California Institute of Technology, United States
  6. Department of Bacteriology, University of Wisconsin–Madison, United States
7 figures, 4 tables and 1 additional file

Figures

Figure 1 with 1 supplement
Mother machine workflow, schematic, and applications.

(1.1) Mother machine schematic. Growth channels flank a central flow cell that supplies fresh media and whisks away daughter cells. In a typical experiment, numerous fields of view (FOVs) are imaged for several hours. (1.2) Fluorescence images of E. coli strains expressing cytoplasmic YFP (Wang et al., 2010) (left) and markers for the replisome protein DnaN and division protein FtsZ (right) (Si et al., 2019). (1.3) The mother machine setup allows long-term monitoring of the old-pole mother cell lineage (Wang et al., 2010) and has other versatile applications, including (1.4) the study of the mechanical properties of bacterial cells by applying controlled Stokes forces (Amir et al., 2014).

Figure 1—figure supplement 1
Inexpensive fabrication of cell loader with 3D printing.

An inexpensive device for loading cells into the mother machine. The construction involves 3D printing a custom holder/rotor for a 50-mm WillCo dish, on which a mother machine is attached. The holder is printed in three parts (two blades and a central base) to account for 3D printers with small printing areas. This piece is then assembled and secured to a Honeywell fan from which the original blade has been removed. CAD files and details of the fan centrifuge construction are available at Thiermann, 2023.

Box 1—figure 1
Duplication and distribution of mother machine devices with epoxy molds.
MM3 workflow and example images.

(2.1) The MM3 image analysis pipeline takes raw mother machine images and produces cell objects. Processes (rounded rectangles) are modular; multiple methods are provided for each. (2.2) Example images from the processing of one growth channel in a single field of view (FOV). The growth channel is first identified, cropped, and compiled in time. All cells are segmented (colored regions). Lineages are tracked by linking segments in time to determine growth and division (solid and dashed lines, respectively), creating cell objects.

napari-MM3 interface.

The napari viewer enables interactive analysis of mother machine data with real-time feedback and fast debugging. Raw data shown is from MG1655 background E coli expressing the fluorescence protein YPet fused to the replisome protein DnaN (Si et al., 2019).

Box 2—figure 1
Background subtraction and segmentation via Otsu's method and random walker algorithm.
Figure 4 with 1 supplement
Comparison of various image analysis approaches.

(4.1) A time series of a typical cell growing in a nutrient-rich medium. The birth size, division size, and added size are indicated. (4.2) The adder principle ensures cell size homeostasis via passive convergence of cell size to the population mean. (4.3) We analyzed multiple datasets from our lab using MM3, DeLTA, and BACMMAN, and obtained robust correlations between birth length, doubling time, elongation rate, and added length. Representative results from one dataset (Si et al., 2019) for MG1655 background E. coli grown in MOPS glycerol + 11 amino acids are shown, with 9000–13,000 cells analyzed depending on the method. Error bars indicate standard error of the mean (note the standard error is smaller than marker size in most cases). (4.4) Distributions of key physiological parameters are independent of the analysis methods. The data and code used to generate this figure are available at Thiermann, 2024a.

Figure 4—figure supplement 1
Old-pole aging phenotype is strain specific.

Cells imaged with fluorescence often show signs of aging in the old-pole ‘mother’ cell. For instance, in the dataset analyzed in Figure 4 (E. coli MG1655 with the fluorescent protein YPet fused to DnaN), we observed systematic differences in cell elongation rate and size between the old-pole cell at the end of the growth channel and its sisters, which inherit the new pole (top center). However, this asymmetry is not universal. Using napari-MM3’s Otsu segmentation method, we re-analyzed previously published data obtained without fluorescence illumination (Taheri-Araghi et al., 2015a), and found that the old- and new-pole cell elongation rates varied only on the order of 1% (lower center), while in the dataset obtained under fluorescence imaging, the old-pole mother cells grow 7–10% slower than the new-pole cells. Cells born third or fourth from the closed end of the channel also grow slower than the old-pole mother (right). The asymmetry in growth rate between old- and new-pole cells persists across time (right, inset). These results are consistent with a previous survey (Rang et al., 2012), which found that most evidence for aging in E. coli comes from studies utilizing fluorescent proteins for visualization.

Figure 5 with 1 supplement
Effect of systematic deviation in segmentation output from different methods.

(5.1) Otsu/random walker and U-Net segmentation masks. The classical method systematically yields masks that are 5–10% larger than the other methods. (5.2) We confirmed that this discrepancy occurs consistently across the cell cycle. (5.3) We trained the Omnipose model on masks generated by either napari-MM3-Otsu or napari-MM3-U-Net separately. (5.4) The systematic discrepancy in the training data masks propagated to the output of the trained models.

Figure 5—figure supplement 1
Evaluating segmentation output of napari-MM3 Otsu and U-Net methods.

To evaluate the quality of the segmentation masks generated by MM3’s Otsu and U-Net segmentation methods, we computed the Jaccard index (Laine et al., 2021; Jeckel and Drescher, 2021) as a function of the intersection-over-union (IoU) threshold.

Tables

Table 1
Performance metrics for napari-MM3.

Processing times were measured on an iMac with a 3.6-GHz 10-Core Intel Core i9 processor with 64 GB of RAM and an AMD Radeon Pro 5500 XT 8 GB GPU. Tensorflow was configured to use the AMD GPU according to Apple Inc, 2023. The GPU was used in U-Net training and segmentation steps. The dataset analyzed is from Si et al., 2019 and consists of 26 GB of raw image data (12 hr, 262 time frames, 2 imaging planes, 34 fields of view [FOVs], and ~35 growth channels per FOV). Note that while the Otsu segmentation method is slightly faster than the U-Net, it also requires a background subtraction step, such that the total runtimes of the two methods are comparable.

Channel detectionBackground subtractionSegmentation (Otsu)Segmentation (U-Net)TrackingTotal (Otsu)Total (U-Net)
Frame processing timeN/A2 ms4 ms5.3 msN/AN/AN/A
Channel stack processing time (262 time frames)N/A0.54 s1.14 s1.4 s0.7 s3.1 s2.1 s
FOV processing time (35 channels)14.1 s17.5 s36.5 s46 s46.7 s2 min1.7 min
Exp. processing time (26 GB, 34 FOVs, ~20,000 cells)3.2 min9.9 min20.6 min26 min26.4 min60 min55 min
Table 2
Testing napari-MM3 on external datasets.

Quality of segmentation masks produced by running napari-MM3 on a subset of published datasets from other groups (Sachs et al., 2016; Ollion et al., 2019; Lugagne et al., 2020; Jug et al., 2014). As exact boundaries are difficult to determine by eye, we considered a cell to be correctly segmented if the Intersection over Union of the predicted mask and ground truth mask was greater than 0.6 (Methods). To evaluate the quality of the segmentation, we report the Jaccard index (Laine et al., 2021; Taha and Hanbury, 2015).

DatasetCorrectly segmented cellsFalse positivesFalse negativesJaccard index
Ollion et al. (BACMMAN) (Ollion et al., 2019)228410.98
Lugagne et al. (DeLTA) (O’Connor et al., 2022; Lugagne et al., 2020)2472210.92
Sachs et al. (molyso) (Sachs et al., 2016)247400.98
Jug et al. (MoMA) (Jug et al., 2014)80001
Table 3
Overview of mother machine image analysis tools.

A comparison of several published imaging methods. ‘2D’ or ‘1D’ segmentation indicates whether the cells are labeled in an image and analyzed in two dimensions, or projected onto a vertical axis and analyzed in one dimension. Several tools support the use of deep learning (in place of or in addition to classical computer vision techniques).

SoftwareImplementationSegmentationDeep learning support
BACMMAN Ollion et al., 2019/DistNet Ollion and Ollion, 2020ImageJ plugin2D
DeLTA O’Connor et al., 2022; Lugagne et al., 2020Python package2D
napari-MM3 Sauls et al., 2019b, this worknapari plug-in2D
SAM Banerjee et al., 2020MATLAB2D
MMHelper Smith et al., 2019ImageJ plugin2D
molyso Sachs et al., 2016Python package1D
MoMA Jug et al., 2014ImageJ plugin1D
Table 4
MM3 parameter values for processed external datasets.

Parameters which were changed from the default values are shaded in yellow. Ollion et al., Jug et al., and Sachs et al. datasets were segmented with the non-learning method, while the Lugagne et al. dataset was segmented using the U-Net method.

Default valueOllion et al.Lugagne et al.Jug et al.Sachs et al.
CompileChannel width (px)1020101010
Channel separation (px)4590454545
SubtractAlign pad (px)1010101010
Segment1st opening (px)23N/A33
Distance threshold (px)23N/A33
2nd opening (px)12N/A12
Otsu threshold scale11.2N/A1.01.0
Min object size (px2)2525252525
TrackGrowth length ratio (min, max)(0.8, 1.3)(0.9, 1.5)(0.8, 1.3)(0.8, 1.3)(0.8, 1.3)
Growth area ratio (min, max)(0.8, 1.3)(0.9, 1.5)(0.8, 1.3)(0.8, 1.3)(0.8, 1.3)
Lost cell time (frames)33333
New cell y cutoff (px)150300150150150

Additional files

Download links

A two-part list of links to download the article, or parts of the article, in various formats.

Downloads (link to download the article as PDF)

Open citations (links to open the citations from this article in various online reference manager services)

Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)

  1. Ryan Thiermann
  2. Michael Sandler
  3. Gursharan Ahir
  4. John T Sauls
  5. Jeremy Schroeder
  6. Steven Brown
  7. Guillaume Le Treut
  8. Fangwei Si
  9. Dongyang Li
  10. Jue D Wang
  11. Suckjoon Jun
(2024)
Tools and methods for high-throughput single-cell imaging with the mother machine
eLife 12:RP88463.
https://doi.org/10.7554/eLife.88463.4