Open Access Article
Cameron Boggon
a,
Jeremy P. H. Wong
ad,
Arpita Sahoo
b,
Annelies S. Zinkernagel
c,
Markus A. Seeger
b,
Eleonora Secchi
*d and
Lucio Isa
*a
aLaboratory for Soft Materials and Interfaces, Department of Materials, ETH Zürich, Switzerland. E-mail: lucio.isa@mat.ethz.ch
bInstitute of Medical Microbiology, University of Zurich, Switzerland
cDepartment of Infectious Diseases and Hospital Epidemiology, University Hospital Zurich, University of Zurich, Switzerland
dInstitute of Environmental Engineering, Department of Civil, Environmental, and Geomatic Engineering, ETH Zürich, Switzerland. E-mail: secchi@ifu.baug.ethz.ch
First published on 29th January 2026
Bacteria in surface-attached communities often engage in social interactions with neighbouring microbes. Spatial structure within these communities is thought to strongly influence these interactions, yet there is a significant lack of experimental platforms which allow for the tight spatial control of microbial interactions at the microscale, severely limiting our ability to investigate the relationship between spatial structure and community development. Here, we demonstrate a workflow for patterning and growing two bacterial species on a template with high throughput (∼105 patterned cells per template) and micron-scale precision. We demonstrate a methodology for directional sequential capillary assembly of colloidal particles in combination with nanobody-functionalised particles that enable highly specific, bio-orthogonal binding reactions between bacteria and surface deposited particles. Using Staphylococcus aureus and Escherichia coli as model systems, we demonstrate how these organisms can be patterned in any desired spatial configuration where resulting communal growth can be monitored under the microscope. This technique enables careful investigations into the role of initial spatial structure on microbial interactions at low cell density, which is crucial to understanding and manipulating microbial community development.
A significant body of ecological theory supports the idea that spatial structuring in microbial communities helps to mediate the interaction strength between organisms and thus promote community stability and diversity.6,11,12 In vivo imaging (using Fluorescence In situ Hybridisation based techniques) of bacterial communities taken from diverse environments, e.g. including the human mouth, skin, chronic wound infections, cystic fibrosis sputum and soil, further indicate that spatial structuring is widespread in microbial communities.13–22 As a consequence, several in vitro platforms have been proposed for controlling the initial spatial organization of microbial communities and observing how the community develops. Firstly, droplet microfluidics has been used to compartmentalise batch liquid cultures into ‘microchambers’ that limit the distribution of metabolites and constrain the number of organisms interacting with each other.23,24 Secondly, various microfluidic platforms that physically separate cells via a nutrient-permeable membrane, allowing for the study of cross-feeding between organisms, have been developed.10,25,26 Third, 3D printing-based assays have been used to print microbial communities27–29 and directly demonstrated that spatial structure can help protect susceptible bacteria from antagonistic compounds.30,31
While these methods have served to highlight the importance of spatial organisation in social interactions, it remains challenging to control spatial organisation at the microscopic length scales characteristic of most microbial interactions. Measurements of interaction distances in dense environments indicate that these length scales are on the order of 1–100 microns.8,32,33 Assays used to probe interaction distance, however, have relied on randomly seeding organisms either in microfluidic chambers34,35 or on agar,36,37 thus offering little control in directly studying the role that initial spatial structure and interaction length-scales play in shaping community dynamics. Previously mentioned approaches for controlling spatial structure typically operate at the hundreds of microns to millimeter scale. For example, 3D printing, which is currently the only method for truly controlling the initial spatial structure of multiple organisms, generally involves printing droplets hundreds of microns in diameter thus far exceeding these length scales.27,31
In this work, we leverage a technique known as sequential Capillarity-Assisted Particle Assembly (sCAPA)38–41 to enable the controlled design of spatial structure at micrometer scales. We pattern micron-sized colloidal particles via controlled evaporation of a particle suspension across an array of cavities (which we refer to as ‘traps’) on a substrate. These traps capture particles as the droplet's meniscus passes over them (described in detail in ref. 42). This procedure can be performed sequentially to obtain heterogeneous particle patterns on one template, either by depositing particles of the same size into the same trap39,41 or differently sized particles into traps of different sizes.43,44 The resulting pattern is entirely determined by the arrangement of traps on the template and the filling sequence.
We make two key developments to this procedure to allow for the patterning of different microbial species in a defined spatial structure. Firstly, we show that by functionalising particles with species-selective nanobodies, we can selectively bind bacteria to our particle-patterned template thus achieving any desired spatial configuration with near-single-cell precision. Secondly, we show that asymmetric, wedge-shaped traps can be used to selectively pattern different particles of the same size, thus keeping the ‘nanobody patch size’ for cell binding constant and potentially substantially increasing the number of different particles that can be patterned on one template.
To showcase this method, we demonstrate a protocol for patterning pairs of particles, in varying spatial structures, functionalised with three separate nanobodies, which target either Staphylococcus aureus or two strains of Escherichia coli. We outline how cells can be patterned, then placed in nutrient agar and cultured under the microscope, allowing measurements of statistically relevant distributions of lag-time, fraction of growing cells and growth rate. We believe this approach is a powerful tool for investigating the role of length scale and spatial structure in shaping microbial community interactions.
We utilise sCAPA to deposit particles functionalised with nanobodies, which capture and localise different bacteria in defined locations. Crucially, we use particles of the same size, but with different nanobody functionalisations, in order to keep a constant ‘patch size’ that the bacteria will bind to. Since conventional sCAPA is based on the size match between the traps and deposited particles, it cannot select where similarly-sized but differently-functionalised particles are deposited. To overcome this limitation, we developed an asymmetric, wedge-shaped trap design. We demonstrated that selective deposition of same-sized particles could be achieved exclusively by controlling the direction of deposition (Fig. 1a–d). When the deposition direction aligns with the slope of the trap, particles get trapped between the straight back wall of the wedge and the meniscus. In all other deposition directions, the particle does not encounter a back wall and thus does not get trapped but rolls out along with the receding meniscus. We can therefore control where particles are deposited by simply changing the orientation of the PDMS roof, which determines the deposition direction relative to the wedge orientation. This is easily achieved using double-sided sticky tape to stick the PDMS roof to the template, enabling easy removal and exchange of the roof (Fig. 1e).
To demonstrate the versatility of sCAPA using this wedge-shaped trap design and to quantify the deposition yields, we fabricated templates for depositing two particle types with varying spatial structures (Fig. 2a and b). We conjugated 2.7 μm streptavidin-functionalised particles with either Atto-488 (green) or Atto-550 (red) biotin to distinguish between deposited particles. In Fig. 2a, we demonstrate that spatial structure can be varied while maintaining a constant ratio of green to red particles, in this case 1
:
1, by altering the spatial autocorrelation. We quantify spatial correlation between red and green particles using the commonly employed metric of Moran's I (calculation detailed in SI S2). A value of I = −1 corresponds to a perfectly negatively correlated spatial structure, i.e. meaning that a red particle is surrounded only by green particles and vice versa, leading to a “sodium chloride crystal” pattern. Completely randomly distributed particles lead to a value of I = 0 and a value of I > 0 corresponds to a positive correlation, implying that particles have similarly coloured neighbours. The template used in Fig. 2a iii is designed with 8 × 8 red/green alternating squares which corresponds to I = 0.75.
Spatial structure can also be modified by tuning the relative ratio of red and green particles. In Fig. 2b, we demonstrate control over the relative fraction of particles and their arrangements by designing arrays with a ratio of 1
:
24 red to green particles arranged in square lattices (i) and regular 1
:
8 ratio arrays with red particles surrounded by a circle of green particles (ii).
In order to achieve 2-particle depositions, we found a heating step between particle depositions to be critical in the procedure. Functionalising the silica particles with protein (either fluorescent-biotin or nanobodies) leads to weaker adhesion of the particles to the PDMS template after deposition, which leads to the particles deposited in the first deposition being removed upon the 2nd deposition. This was resolved by including a heating step of 1 minute between depositions (SI S3 for temperature screen). In order to determine what temperature the particles actually ‘experience’ on the PDMS surface during this heat treatment, we measured the surface temperature using a thermistor. We found that when the heat plate was set to a nominal temperature of 130 °C, the measured surface temperature of the heat plate was 120 ± 1 °C and the surface of the PDMS template (∼0.4 mm thick) was 87 ± 1 °C. While this heat step is usually not required for non-functionalised particles,42 the necessity of such heat treatment has previously been reported for particles functionalised with DNA.41 We think that a hydration layer is retained by the DNA/streptavidin–biotin functionalised layer at the particle surface, which reduces van der Waals adhesion, and which is evaporated by the heating step. Our findings suggest that a heating step of 87 ± 1 °C was sufficient to ensure reliable adhesion without noticeably damaging the biotin or the nanobodies, at least after 2 heating steps (see discussion below).
In Fig. 2c and d, we quantify deposition yields using standard particle localisation techniques on the brightfield, green and red fluorescent channels after one deposition of each particle in each direction for the I = −1, I = 0 and I = 0.75 templates. In Fig. 2c, we measure the fraction of traps that were correctly filled, finding that an average of 86.3 ± 5.4% of traps are filled with the correctly coloured particle (cumulative average of 5 separate templates with 1
:
1 ratio of red and green particles). Incorrectly filled traps (traps containing one or more of the incorrect colour) and empty traps constituted 5.2 ± 1.2% and 8.6 ± 4.9%, respectively. In Fig. 2d, we quantify the number of particles per trap showing that a total of 88.3% contain only one particle per trap. Together, these data indicate that the wedge trap design is highly effective at selective, directional depositions and we can generate patterned particle configurations with high accuracy on micron length scales.
We designed nanobody-functionalised particles by binding our streptavidin-functionalised particles via a biotin – PEG-11 – Maleimide linker to cysteine residues incorporated at the C-terminus of the nanobody (see graphic in Fig. 3a–c). Our nanobodies selectively bind to proteins on the membranes of E. coli or S. aureus (Fig. 3a–c). For E. coli, the nanobodies bind to two different isoforms of outer membrane protein A, which we denote as OmpA-short and OmpA-long.48–51 We designed fluorescent strains that each express one of these two isoforms (see SI S12 for details). E. coli MC1061 natively producing OmpA-short is bound by Nb01 and E. coli ΔompA expressing OmpA-long from a plasmid is bound by Nb41 (E. coli strains hereafter referred to as E. coli (OmpA-short) and E. coli (OmpA-long), respectively). For S. aureus, we use synthetic nanobody F1 (SbF1), which binds to protein A, a highly abundant cell surface protein of S. aureus. Detailed comments on the choice of target proteins and nanobodies are provided in SI S3. It should be noted, however, that protein A binds to the Fc-part of IgG-type antibodies as well as to a large proportion of nanobody scaffolds.52,53 Indeed, we observed that Nb01, which is directed against OmpA-short, cross-reacts with protein A. Conversely, Nb41 directed against OmpA-long does not cross-react with protein A. As a consequence, we have two, strain-selective nanobody pairs: S. aureus and E. coli (OmpA-long), E. coli (OmpA-short) and E. coli (OmpA-long).
In Fig. 3, we demonstrate successful binding of the target organisms when nanobody-functionalised-particles and bacteria are mixed together in bulk liquid culture. We observe that S. aureus and E. coli (OmpA-short) bind tightly and with high specificity to SbF1 and Nb01, respectively, often leading to the assembly of large particle aggregates >50 μm in diameter (Fig. 3a and b).
We find that E. coli (OmpA-long), on the other hand, generally does not form aggregates (Fig. 3c), which likely reflects either a lower binding affinity or lower expression of OmpA-long on the cell surface. Nonetheless, single particles with robustly adhered bacterial cells can easily be observed. By combinatorial screening of all particles against each bacterial strain, we confirmed the selectivity of our particle binding assay (Fig. 3a–c and SI S3). We therefore successfully engineered a colloidal system that binds bacteria with high specificity.
Fig. 4 a summarised the protocol for binding and growth of one bacterial species (a more detailed graphical protocol is provided in SI S5). We first deposited nanobody-functionalised particles via sCAPA into target patterns. We then heat-treated the template, as above, before transferring it to a glass-bottomed Petri dish. It was crucial to ensure that the bacteria did not passively bind to the template and only bound to the target particles. We found that treating the template with bovine serum albumin (BSA) was very efficient passivating the PDMS surface without blocking access to the nanobodies. After exposure, we replaced the BSA with a washed bacterial suspension for 10 minutes before repeatedly washing the template with fresh PBS. With this approach, we reliably bound bacteria to our particles with high species-selectivity and minimal non-specific binding to the PDMS surface.
To grow the initially bound cells into micro-colonies, we exchanged the PBS with molten tryptone soy broth agar kept at 50 °C and placed the well in the microscope for imaging. A detailed protocol on the agar exchange is provided in SI S5 together with a graphical outline of the full method. Fig. 4b and c and Movies S1 and S2 demonstrates targeted binding of E. coli and S. aureus and time-lapse imaging of colony growth after binding. Bacteria form into growing colonies that can be easily monitored from their initial particle-bound configuration. We found that single cells of E. coli mNeonGreen did not exhibit very strong fluorescence compared to the autofluorescence of the agar during growth at exponential phase. The fluorescence intensity of both E. coli mNeonGreen and mScarlet changed during the growth phase with the average cell fluorescence decreasing as the cells entered exponential phase (SI S6). This weak fluorescence profile is due to a combination of promoter choice combined with our choice to express the fluorophore on the chromosome of the E. coli strains, rather than using high copy number plasmids for fluorophore expression (as in the case of S. aureus). We chromosomally integrated the fluorophore to avoid plasmid competition with the OmpA-long expression plasmid, but this had the downside that there was only one fluorescence gene in the cell. Despite this, we found that bacteria growth could be monitored in the brightfield or phase contrast channel thus fluorescent reporting during cell growth was not a critical requirement of the technique (Fig. 4c and d).
We quantified the growth dynamics and binding efficiency of cells in our method using an image analysis pipeline designed to identify the location of deposited particles and track growing colonies (Fig. 4d–g). Importantly, colonies could only be tracked until the point where they merge with neighbouring colonies (Fig. 4b–d iii and SI S7 show representative colony merge events after which tracking colonies reliably is no longer viable). Thus, the maximum time frame over which bacteria growth can be analysed depends on the template design, specifically the distance between traps. In Fig. 4e, we find that for all bacterial strains tested, cells grew at almost all bound particles indicating that the protocol does not induce substantial stress or mortality on the cells. In Fig. 4f and SI S8, we observe large differences in the number of bacteria bound per particle, with the average number of bound S. aureus as high as 9.07 ± 0.08 cells per particle but E. coli binding at 3.52 ± 0.05 and 2.19 ± 0.03 for E. coli (OmpA-short) and E. coli (OmpA-long) respectively. This is in line with what was qualitatively observed in Fig. 3.
We measured the distribution in time taken for individual colonies to reach a radius of 15 μm in Fig. 4g and found a clear difference between S. aureus and E. coli with average lag-time and variance at 249 ± 28, 161 ± 41, 178 ± 32 minutes for S. aureus, E. coli mScarlet (OmpA-short) and E. coli mNeonGreen (OmpA-long), respectively. We benchmark these measurements from sCAPA against growth curve measurements in TSB media (Fig. 4h), which show strong agreement in lag-time data. By fitting a Gompertz growth law to these curves, we extract lag times and growth rates for all cells (see SI S9 for details on fit), measuring 390 ± 4, 284 ± 4, 263 ± 3 minutes for S. aureus, E. coli mScarlet (OmpA-short) and E. coli mNeonGreen (OmpA-long), respectively. While the definition of lag time is not directly comparable to the time to reach a 15 μm radius colony, they show similar trends. We further observe that mScarlet E. coli strains have a slightly delayed lag time of ≈20 minutes compared to mNeonGreen strains, suggesting a small fitness disadvantage associated with the fluorophore expression (SI S9).
:
24 ratio to E. coli (OmpA-long).
In order to perform sequential depositions, we had to include a heating step as previously noted. In order to determine how robust the nanobodies were to this heating step, we screened bacteria binding yield against repeated heating steps of the template before binding (SI S10). We found that while the binding yield after 1 heating step was 93 ± 1%, it dropped to 50 ± 5% after 3 heating steps and <2% after 5 heat steps. We therefore found that an upper bound of 3 particle depositions was the highest, realistically achievable number of depositions using this approach to resolve the adhesion problem.
In Fig. 5d, we quantify the fraction of bound bacteria compared to target controls after 2 particle depositions and binding both bacteria species. We observed good agreement between the target configuration and the measured configuration. We measure that the fraction of empty traps is 0.14 ± 0.02, 0.06 ± 0.03, 0.07 ± 0.01 and that the fraction of traps with both green and red is 0.07 ± 0.01, 0.07 ± 0.01, 0.003 ± 0.01 for configurations a, b and c, respectively. These values are in good agreement with the deposition yields measured in Fig. 1e, indicating that imperfections in the target lattice derive primarily from imperfections in the particle deposition, rather than incomplete cell binding to the particles. Finally, in Fig. 5e, we measure a high fraction of total growing cells at each trap, demonstrating that both species grow and the cells are highly viable. Taken together, our data demonstrates that we can selectively deposit two bacteria species in well-defined spatial configurations, grow these cells and accurately quantify cell growth. We have, therefore, successfully developed a methodology that can be leveraged to investigate bacterial interactions with defined spatial structure.
A key feature of our method is the fact that the spatial patterning is decoupled from the bacteria binding. While previous work has demonstrated that bacteria can be directly patterned into traps using capillary assembly,45,46 this is largely limited to patterning single organisms due to poor adhesion of the cells to the template, leading to cells being removed from the traps after the second deposition and therefore preventing sequential depositions of different organisms.54 It further requires a desiccation step, which has been shown to be problematic for certain organisms45 as desiccation is a known cause of stress.55,56 Our procedure resolves both these issues by depositing particles, instead of bacteria, and thus allows any cell to be bound in liquid culture followed by growth and imaging with minimal stress to the organism.
Our results also extend the versatility of sCAPA by demonstrating that particles of the same size can be patterned in wedge-shaped traps. While this in principle can be used to deposit up to 4 particles of the same size on one template, it can also be combined with different-sized traps that fit smaller or larger particles.43,44 This approach, in principle, allows for the extension of this technique to much larger numbers of particle combinations. We note that changing the particle size, however, would impact the number of bacteria that bind per particle (Fig. 4e). By reducing the particle size (sCAPA is routinely performed with 1 μm particles38,42), the bacteria/particle ratio would move closer to 1 cell per particle, while increasing the particle size (sCAPA has been performed with particles up to 10 μm in diameter57) would increase this ratio.
A critical requirement for our approach is the access to selective binding moieties that can be used to selectively capture different bacterial species or strains. In principle, there is a wide range of binding moieties that can be used including antibodies, lectins, DNA aptamers, phage-tail proteins and others. While screening kits of antibodies and lectins can be bought from a range of vendors, these typically cannot achieve sufficient target specificity at the species level.47 For this reason, we focused on nanobodies, which can be generated using nanobody libraries (as in this work)58 and are small enough to access conserved regions on the cell membranes enabling high species-selectivity.47,48 While not tested here, DNA aptamers may also be a promising approach as novel binding moieties can be rapidly generated via Cell-SELEX.59
To investigate the robustness of our method, we used nanobodies that bind to long and short forms of E. coli outer membrane protein (OmpA). We demonstrated that we could achieve fully selective cell patterning based solely on expression of 2 variants of the same protein. In order to demonstrate this, we designed an E. coli knockout mutant expressing OmpA-long on a high copy number plasmid. To avoid plasmid competition and plasmid loss within these cells, we therefore chromosomally integrated the fluorescent genes mScarlet and mNeonGreen into these cells which had the effect of lowering the maximum fluorescence of the strain compared to if we were to use a high copy number fluorescence plasmid. For this reason, the cell fluorescence of the E. coli strains was too weak to be visible during growth under the microscope (Fig. 4c and SI S6), unlike the case of S. aureus which expressed GFP on a high copy number plasmid. We found this not to be problematic for showcasing our methodology as non-fluorescent colony growth can be easily tracked (Fig. 4d). Fluorescence was only required for identification of the initial location of bacteria at the start of the time-lapse. Nonetheless, we emphasise that the choice of nanobody, protein target and fluorescence expression approaches should be chosen wisely.
Finally, as mentioned above, the heating step required to improve particle adhesion during sequential depositions constitutes an important practical limitation to extending our protocol beyond 2–3 bacterial species. Furthermore, while previous work showed that biotin–streptavidin bound DNA40,60 withstands a similar heating step, we cannot fully rule out the possibility of denaturation of larger proteins such as antibodies or lectins. In order to apply the technique developed here to larger numbers of species, therefore, alternative, i.e. chemical, strategies to improve particle adhesion after deposition need to be explored.
In conclusion, bacteria are social organisms that live in diverse, competitive and spatially structured communities. Fundamental questions regarding the limits of microbial coexistence and what determines the composition of microbial communities abound. We envisage the method presented here will help to better understand the role that length-scales and spatial structure play in shaping microbial interactions, starting from minimal models and paving the way towards more complex communities.
Molds for the chip roofs were designed as performed previously.46 Briefly, a Prusa SL1 3D printer was used to print roof molds, which were washed in isopropanol solution, cured under UV overnight, left in the oven at 100 °C overnight to remove any non-cured resin and silanised as above.
Templates and chip roofs were prepared using polydimethylsiloxane (PDMS; Sylgard 184 silicone elastomer kit, Dow Corning, Midland, MI). PDMS was mixed and degassed in a 10
:
1 ratio of polymer
:
crosslinker using a Thinky ARE-250. For the chip roofs, 20 g of PDMS was poured onto the 3D printed mold, wrapped with aluminium to form a box around the mold. For the template, printed slides were placed in a 60 mm plastic Petri dish, and 2 g of PDMS was poured over such that a uniform layer of thin PDMS covered the whole area of the glass and the bottom of the Petri dish. After curing overnight at 75 °C, PDMS was cut out using a scalpel and 1 mm diameter holes were punched into the PDMS roofs. The PDMS chips were assembled by bonding the roofs to the templates using microscope spacers (Grace Bio-Labs SecureSeal), which were designed on a cutting plotter (Silhouette Cameo 4). This process made it simple to remove the roofs from the templates after deposition.
All overnight cultures for binding assays were grown by the following: frozen stocks kept at −80 °C were plated on agar plates containing either lysogeny broth (LB) agar, LB agar + 100 μg ml−1 ampicillin or tryptone soy broth (TSB) agar + 10 μg ml−1 erythromycin for E. coli (OmpA-short), E. coli (OmpA-long) and S. aureus, respectively. Liquid cultures were prepared by inoculating single colonies from plates in 50 ml falcon tubes containing 5 ml TSB and either no antibiotic, 100 μg ml−1 ampicillin or 10 μg ml−1 erythromycin for E. coli (OmpA-short), E. coli (OmpA-long) and S. aureus, respectively. Cultures were placed in an incubator (Edmund Buehler TH30 Incubation Hood), with lids loosely closed, at 37 °C with orbital shaking at 220 rpm and grown overnight. 1 hour before beginning an experiment, we added 0.02 wt/v% L-arabinose to the E. coli (OmpA-long) cultures to induce OmpA-long expression.
For orthogonal labelling, the three nanobodies were cloned into the pSBinit_cys plasmid where a cysteine residue is incorporated at the C-terminus of the nanobody.48 The nanobodies were expressed in E. coli MC1061 ΔompA (for Nb01) or E. coli MC1061 (for Nb41 and SbF1) as described in ref. 58. Following periplasmic extraction, supernatants were subjected to Ni-NTA affinity chromatography (Qiagen) and Size Exclusion Chromatography (SRT SEC-100 or SRT SEC-300, Sepax) using PBS as running buffer.
To attach the PEG linker (PEG11-Biotin, Catalog # 21911, ThermoFisher) using maleimide chemistry, the free thiol group needs to be protected from oxidation before exposure to the linker. Therefore, purification of these cysteine-containing nanobodies was performed in the presence of 2 mM DTT. After nanobody purification, DTT was removed using a PD MidiTrap G-25 desalting column equilibrated with degassed PBS, pH 7.0. Maleimide functionalised PEG11-Biotin, was added at 3.6-fold molar excess and the reaction was carried out for 1 h at 4 °C. Excess label was removed using another PD MidiTrap G-25 column, equilibrated with PBS, pH 7.4. Stock concentrations of 300.8 μM NB01, 62.1 μM SbF1 or 15.6 μM NB41 were aliquoted and stored at −20 °C.
Background correction of images was first performed on ImageJ before importing images onto MATLAB. For the fluorescence channel, all frames in the time-lapse were divided by a strongly Gaussian-blurred image (sigma = 200 pixels) of the first frame in the time-lapse. As the relative brightness in the brightfield channel changed substantially throughout the time-lapse, background normalisation of the brightfield channel was performed by dividing each frame in the time-lapse by a strongly Gaussian blurred (sigma = 200 pixels) version of the same frame. Particle localisation was performed using the MATLAB version64 of the Crocker and Grier algorithm65 on the first frame in the time-lapse, to identify the centroid of all fluorescent cells (when performed in the fluorescence channel) and the location of particles (when performed on the brightfield channel). A minimum brightness thresholds to identify a particle was set as 3× the average brightness noise in the image and the length scales of objects identified in the image (used in the band pass filter to select objects based on size), were set to: length scale of salt and pepper noise = 1 pixel (0.32 μm), length scale of bacteria set to 3 pixels (0.98 μm), length scale of particle per trap set to 15 pixels (4.88 μm).
To identify growing bacteria, all background-subtracted images in the time-lapse were binarised using a fixed brightness threshold. For non-fluorescent tracking, i.e. E. coli growth, we inverted the brightfield channel such that growing colonies appeared bright on a dark background before thresholding. The area of the identified growing colonies was determined at each time point allowing the colony area and radius (calculated as
to accommodate non-circular colonies) to be extracted.
We linked colonies across time frames via the following procedure: firstly, an image registration step was performed against the first frame in the time-lapse, in order to account for spatial drift during the time-lapse. This ensured all identified bacteria positions were in the same coordinate system. To do this, we performed intensity-based image registration on a representative area in the brightfield channel that could easily be tracked throughout the entire time-lapse despite growth e.g. the corner of the template. For the time update, all colony centroids and radii were identified in frame ti and ti+1 and a colony track was updated if a colony in ti+1 overlapped with another colony in ti. If no colonies in ti overlapped with one in ti+1, a new cell was considered to have begun to grow, so a new colony was defined. If two colonies in ti overlapped in ti+1, the colonies were considered to have merged (e.g. SI S7). In this case, the tracking update was attributed to the larger of the two colonies, and the small colony was no longer updated. In practice, however, at the point where colonies start merging, the tracking is no longer reliable as the colony area of the larger colony jumps substantially.
Once colonies have been linked through time into tracks, a clean up step was performed. An identified growing colony was used in the analysis (i.e. considered to be a true growing colony) only if it fulfilled certain criteria: 1) the colony radius increases with time, 2) the colony is tracked for at least 5 consecutive frames, 3) the colony does not grow out of the field of view (whereupon the colony area would not be correctly determined), 4) the colony grows to a radius of at least 15 μm. For colonies that fulfill these criteria, the colony lag-time was defined as the time point when the colony diameter is >30 μm. As a consequence of these strict criteria, the analysis code may slightly underestimate the number of growing colonies in the time-lapse.
Supplementary information (SI) is available. See DOI: https://doi.org/10.1039/d6lc00040a.
| This journal is © The Royal Society of Chemistry 2026 |