Skip to main content
Wiley Open Access Collection logoLink to Wiley Open Access Collection
. 2019 Nov 24;113(1):297–308. doi: 10.1111/mmi.14417

BactMAP: An R package for integrating, analyzing and visualizing bacterial microscopy data

Renske van Raaphorst 1,2, Morten Kjos 3, Jan‐Willem Veening 1,2,
PMCID: PMC7027861  PMID: 31693257

Abstract

High‐throughput analyses of single‐cell microscopy data are a critical tool within the field of bacterial cell biology. Several programs have been developed to specifically segment bacterial cells from phase‐contrast images. Together with spot and object detection algorithms, these programs offer powerful approaches to quantify observations from microscopy data, ranging from cell‐to‐cell genealogy to localization and movement of proteins. Most segmentation programs contain specific post‐processing and plotting options, but these options vary between programs and possibilities to optimize or alter the outputs are often limited. Therefore, we developed BactMAP (Bacterial toolbox for Microscopy Analysis & Plotting), a command‐line based R package that allows researchers to transform cell segmentation and spot detection data generated by different programs into various plots. Furthermore, BactMAP makes it possible to perform custom analyses and change the layout of the output. Because BactMAP works independently of segmentation and detection programs, inputs from different sources can be compared within the same analysis pipeline. BactMAP complies with standard practice in R which enables the use of advanced statistical analysis tools, and its graphic output is compatible with ggplot2, enabling adjustable plot graphics in every operating system. User feedback will be used to create a fully automated Graphical User Interface version of BactMAP in the future. Using BactMAP, we visualize key cell cycle parameters in Bacillus subtilis and Staphylococcus aureus, and demonstrate that the DNA replication forks in Streptococcus pneumoniae dissociate and associate before splitting of the cell, after the Z‐ring is formed at the new quarter positions. BactMAP is available from https://veeninglab.com/bactmap.

Keywords: Bacillus subtilis, bacterial cell biology, chromosome segregation, DNA replication, image analysis, Rtools, single cell analysis, Staphylococcus aureus, Streptococcus pneumoniae


High‐throughput analysis of single‐cell microscopy is a critical tool within the field of biology. We developed BactMAP, an R package that allows researchers to transform and combine cell segmentation and spot detection data by different programs, visualize the data and perform custom analysis. Using BactMAP, we visualized key cell cycle parameters in three Gram‐positive bacteria and analyzed the dynamics of the replisome in the human pathogen Streptococcus pneumoniae.

graphic file with name MMI-113-297-g006.jpg

1. INTRODUCTION

Segmentation tools for analyses of phase‐contrast microscopy images of bacterial cells are improving rapidly. Over a decade ago the first software packages became available, making it possible to track cells (semi‐) automatically using programs like Bacterial Home Vision (BHV), CellProfiler, Schnitzcells and MicrobeTracker (Lamprecht, Sabatini, & Carpenter, 2007; Sliusarenko, Heinritz, Emonet, & Jacobs‐Wagner, 2011; Stewart, Madden, Paul, & Taddei, 2005; Young et al., 2011). However, using these tools and transforming the data could be time‐consuming and still heavily relied on manual adjustments. In recent years, more user‐friendly and quicker tools have been developed to segment phase‐contrast images or fluorescence images, making cell segmentation a standard tool for bacterial microscopy analysis. With the creation of datasets of cell shape, size, growth and internal fluorescent signal information so readily at hand, the next challenge is to gain biologically useful insights.

Most of the current popular cell segmentation programs include basic tools for exploring the data in the form of histograms or fluorescence profiles. Oufti (Paintdakhi et al., 2016), ObjectJ (Vischer et al., 2015) and MicrobeJ (Ducret, Quardokus, & Brun, 2016) have excellent tools for exploring several characteristics of the dataset. Oufti has a few fast time‐lapse plotting and exploring tools, while MicrobeJ gives the user the possibility to plot characteristics of subgroups of cells in many different ways. Within ObjectJ, it is relatively easy to add custom measurements to the analysis and make quick visualizations. SuperSegger (Stylianidou, Brennan, Nissen, Kuwada, & Wiggins, 2016) includes a set of plotting and filtering tools inspired by flow cytometry analysis (Cass, Stylianidou, Kuwada, Traxler, & Wiggins, 2017).

While the options for analysis within these programs are improving and expanding, there are limitations to having the analysis toolbox and the detection tool within the same program. After exploring the quality of the detection and the general distribution of the data by for instance fluorescence histograms and dot plots of the cell size, more in‐depth custom analysis will often be necessary. Apart from that, multiple datasets containing data from different conditions or replicates will often need to be combined before analyzing them altogether. This is not always straightforward as the different software packages are mostly built to directly proceed from segmentation and detection. Finally, with so many new and excellent tools at hand for single molecule tracking, cell segmentation and cell shape identification, it can be very useful to combine datasets generated from different programs or to compare the output of similar programs to see which one is optimal for different purposes.

Therefore, we created BactMAP (Bacterial toolbox for Microscopy Analysis & Plotting), an R package (https://www.r-project.org/), which acts as a funnel for segmentation and fluorescence detection data (Figure 1). BactMAP orders the input data in a standard way, filtering out the most‐used information, but keeping all original data attached. It is possible to gather data from different sources and combine them, visualize the data and perform custom analysis using the BactMAP toolbox together with the vast number of tools already available in R. BactMAP, its code and a user guide is available at https://veeninglab.com/bactmap and https://github.com/veeninglab/bactmap.

Figure 1.

Figure 1

Visualization and analysis of microscopy data using BactMAP [Colour figure can be viewed at https://www.wileyonlinelibrary.com]

We benchmarked the various options of BactMAP by analyzing the localization of the replication fork and origin of replication in three different Gram‐positive organisms: Bacillus subtilis, Streptococcus pneumoniae and Staphylococcus aureus. These organisms all have a different cell shape, leading to different challenges in segmentation. Indeed, we show that certain programs perform segmentation better on specific cell types than others (Figures S1 and S2). All data generated with these programs was transformed using BactMAP. To obtain useful biological insights from the data, the BactMAP toolbox was used to perform exploratory localization plotting, time‐lapse analyses and finally we show how BactMAP can be used as a starting point for custom analysis with R.

2. RESULTS

2.1. Visualization and analysis of microscopy data using BactMAP

BactMAP was built for automated import of segmentation data and for visualization of cells and their internal fluorescence signals (Figure 1). BactMAP is built as an R package: a set of command‐line based functions which can be used within the R framework. This allows for more flexibility in the analysis and visualization and a seamless connection with other available functions in R. This functionality, however, comes with the drawback of a steep learning curve. The most‐used functionality of BactMAP will be further developed into a graphical user interface (GUI), to make it more user‐friendly for those unfamiliar with command lines. To communicate with users and gain insights into which parts of BactMAP should be changed and updated, users can follow progress and make suggestions in the “Issues” section of our GitHub page (https://github.com/veeninglab/bactmap/issues).

To make BactMAP as useful as possible for the bacterial cell biology community, we standardized the import of datasets from five popular segmentation programs and one single‐molecule tracking program: SuperSegger (Stylianidou et al., 2016), MicrobeJ (Ducret et al., 2016), Oufti (Paintdakhi et al., 2016), Morphometrics (Ursell et al., 2017), ObjectJ/ChainTracer (Syvertsson, Vischer, Gao, & Hamoen, 2016; Vischer et al., 2015) and iSBatch (Caldas, Punter, Ghodke, Robinson, & Oijen, 2015). Furthermore, new programs with improved or specialized cell segmentation capabilities are being developed constantly, as recently for instance BacStalk (Hartmann, van Teeseling, Thanbichler, & Drescher, 2018), a specialized tool for segmentation of cells with complex morphologies and the deep learning and machine‐learningbased segmentation programs DeepCell (Bannon et al., 2018), DeLTA (Lugagne, Lin, & Dunlop, 2019) and Ilastik (Berg et al., 2019). Therefore, to make BactMAP compatible with a wide range of current and future segmentation software packages, we also implemented a generic import function for segmentation input.

The visualization options of BactMAP are summarized in Figure 2. In short, there are three main categories of plotting functions in BactMAP: (a) the visualization of intracellular fluorescence using information from the image itself, (b) visualization of subcellular localization of spots and objects as identified by any of the software packages, and (c) plots which can be used in the analysis of time‐lapse movies.

Figure 2.

Figure 2

Overview of BactMAP's plotting functions. Intracellular (raw) fluorescence. plotRaw() and bactKymo() are both useful visualization tools that use cell outlines and the original image in TIFF format. plotRaw() shows the original microscopy pictures with the cellular outlines and/or the localization data. bactKymo() makes kymographs and demographs of single cells and cell groups. Subcellular localization. For plotting of subcellular fluorescent spot localizations createPlotList() is used. This function returns a list of demographs, histograms an projections. For larger fluorescent objects, plotObjects() plots intracellular object shapes and localization through cell projections. When MicrobeJ or iSBatch are used to track fluorescent spots over time, plotTrack() can be used to visualize them. Moreover, plotOverlay() can be used to plot cell towers and localization over time of different fluorescent channels and/or experimental conditions. Time‐lapse analysis. percDivision() will categorize each cell based on growth speed and determine when a cell underwent a full division. plotTreeBasic() uses the package ggtree (Yu, Smith, Zhu, Guan, & Lam, 2017) to plot Oufti's or SuperSegger's genealogy information as a tree plot. To visualize single‐cell growth and fluorescence, plotCellsTime() uses cell outlines and raw microscopy images to create single‐cell towers or movies [Colour figure can be viewed at https://www.wileyonlinelibrary.com]

2.2. Exploratory localization plotting using BactMAP of the origin of replication in three differently shaped bacteria.

To demonstrate the functionality of exploratory localization plotting using BactMAP, we analyzed the subcellular localization of the origin of replication in three Gram‐positive bacteria: B. subtilis, S. pneumoniae and S. aureus. In B. subtilis, the origin of replication was visualized using a TetR/tetO system (tetR‐RFP, ori::tetO, [Veening, Murray, & Errington, 2009]), while in S. pneumoniae the origin was marked with a ParBp/parSp‐marker (ParBp‐GFP, ori:parSp, [van Raaphorst, Kjos, & Veening, 2017]). In S. aureus, a protein‐fusion of the native, origin‐binding ParB to GFP was used as a marker for the origin of replication (Pinho & Errington, 2004). These three bacteria have their own challenges in segmentation analysis due to differences in cell shape and mechanisms of growth and division.

B. subtilis divides by forming a cross‐wall septum, which cannot be visualized by phase‐contrast imaging. In this case, segmentation based on fluorescence images (e.g., cells stained with a fluorescent cell wall or membrane dye) is therefore necessary. The only currently available program which combines phase‐contrast segmentation with semi‐automated septum detection based on fluorescence is ChainTracer (Syvertsson et al., 2016). Other programs segment the B. subtilis chains well, but cannot locate septa. Morphometrics (Ursell et al., 2017) has an option for segmentation of peripheral fluorescence, which can be used for B. subtilis segmentation.

Encapsulated, oval‐shaped S. pneumoniae cells can be difficult to segment, because they are small and form chains of cells under certain conditions (Domenech, Slager, & Veening, 2018). As part of a BactMAP test session, we asked three of our lab members to use their program of choice to segment the same image of S. pneumoniae cells. The number of cells detected by each program was comparable, however, measured cell widths and lengths were strikingly different between programs as well as between parameter settings (see Figure S1). This underlines the importance of keeping the same global segmentation parameters within experiments, as well as of visual inspection of the segmentation results to make sure that these are consistent. It is important to note and be aware that the preferences and interpretations of the user have a major influence on segmentation results. Since all programs are in principle capable of segmentation of phase‐contrast images of S. pneumoniae cells, the program choice largely depends on the goal of the experiment (e.g., comparing cell sizes, measuring internal fluorescence or tracking cells). To aid in this decision, we summarized the options and strengths of the five segmentation programs that we tested in Figure 3.

Figure 3.

Figure 3

Overview of the functionality of five programs compatible with BactMAP. Of the five tested programs, three are MATLAB‐Based (SuperSegger, Morphometrics and Oufti) and two are ImageJ Plugins (MicrobeJ, ObjectJ). While Oufti is MATLAB‐Based, it comes as a standalone program for 64x operating systems. In addition to measuring the outlines, Oufti, MicrobeJ, Morphometrics and SuperSegger can track cells over time and provide information on growth speed and cell genealogy. Oufti, MicrobeJ, Morphometrics and ObjectJ estimate the cell length and curvature over the longitudinal axis. MicrobeJ offers a range of options for detection and counting of cell chains and clumps, while both MicrobeJ and ObjectJ offer options to detect cell features such as curvatures or invaginations as specified by the user. Finally, both SuperSegger and MicrobeJ give users the option to group cells based on user‐specified cell features. All programs offer some options for manual editing of the results. In Oufti, a user can split or join cells, delete cells and draw new cell outlines. In Morphometrics, MicrobeJ and ObjectJ, it is also possible to delete or add cells. For both Morphometrics and Oufti, it is not possible to move septa to a manually chosen subcellular location. In MicrobeJ this is possible, just as ObjectJ's ChainTracer allows users to check, add and delete detected septa manually. Also in SuperSegger, it is possible to delete cells, but it is only possible to delete or add septa on pre‐calculated positions. The right panel shows which program performs cell segmentation best on which kind of shaped cells in our experience [Colour figure can be viewed at https://www.wileyonlinelibrary.com]

S. aureus detection and segmentation is notoriously difficult because the cells are small cocci, not completely homogeneous in phase‐contrast and they divide in multiple perpendicular planes (Pinho, Kjos, & Veening, 2013). For the analysis of S. aureus, it was thus challenging to find a segmentation algorithm which created an outline of the whole cell based on phase‐contrast images. Both Oufti and ObjectJ are capable of creating a mask around S. aureus cells taken with phase‐contrast microscopy, but both software packages have trouble attributing cell parameters to the mask because the algorithms are assuming a rod‐shaped cell with a medial axis. Morphometrics and MicrobeJ both have the option of medial‐axis based segmentation, and they also offer other options for subpixel segmentation, while SuperSegger only creates a pixel‐resolution cell mask. We tested the last three programs and used BactMAP to display and compare the optimal segmentation result of the three programs (Figure S2). All three programs performed well at segmenting the cells. Both MicrobeJ and Morphometrics, using a variety of different settings, however, still missed detection of many cells, while SuperSegger detected almost twice as many (Figure S2). SuperSegger is therefore our program of choice for segmentation of S. aureus cells based on phase‐contrast images (see section below). Another option is to use fluorescence‐based segmentation using a membrane dye or protein‐fusion. While most segmentation programs have options for fluorescence‐based segmentation, of the programs tested here, Morphometrics is the only program which combines segmentation options specifically developed for membrane‐bound fluorescence with segmentation options for cells that are not rod‐shaped.

While different software packages were used for detection of cell outlines in the different species (as explained above), the single‐molecule fluorescence detection program iSBatch (Caldas et al., 2015) was used to detect fluorescent foci for all three bacterial species (Figure 4a). After imaging, fluorescence spot detection and cell detection, all datasets were imported using BactMAP.

Figure 4.

Figure 4

BactMAP output of the segmentation and origin localization of three differently shaped bacteria. (a) For all three bacteria; a cutout of the raw image file with an overlay of the cell segmentation and detected fluorescent spots is shown. The raw images, segmentation data and spot detection data was loaded into R using BactMAP's extr.‐functions, and the overlay images where created using bactMAP::plotRaw(). (b) Cell towers showing the x,y‐projection of the origin/ParB inside the cell. The five groups are divided by cell length and contain an equal number of cells. Localizations are displayed as a heatmap; brighter color indicates more localization in this x,y position. (c) Projection of the localization of the origin/ParB on the longest axis of the cell, where all cells are ordered by cell length [Colour figure can be viewed at https://www.wileyonlinelibrary.com]

Using BactMAPs createPlotList‐function we plotted a projection of the subcellular localization of the origin of replication in five cell‐size groups (Figure 4b). B. subtilis was grown in lysogeny broth at 30°C. Due to multifork replication under these conditions, a median of 4 ± 2 origins/cell were detected (± indicating the standard deviation). The variable number of spots lead to a diffuse signal in the density plots of the different cell size groups (Figure 4b), but when only the coordinates of the origins on the length axis are plotted (Figure 4c), a splitting of the origins between the two cell halves is visible. For S. pneumoniae, the origin of replication segregates early in the cell cycle, after which it moves to the future septa of the cell. In the dataset presented here, we detected 2 ± 2 spots/cell.

Similar to S. pneumoniae, S. aureus only initiates DNA replication one time per cell division. However, contrary to both B. subtilis and S. pneumoniae, S. aureus divides in consecutive perpendicular planes, making it especially hard to extract cell cycle information from microscopy snapshots. S. aureus cells only elongate slightly when the septal cross wall is being formed (Monteiro et al., 2015), after which they quickly split into two new daughter cells. To facilitate cell size grouping, we chose to record connected daughter cells as one cell (Figure 4a,b, right panel). In this way, we could not only observe cells dividing in one plane, but also connected daughter cells that started to grow and divide in the perpendicular direction. Thus, in Figure 4b, the two first cell groups represent cells before splitting, while the three last cell groups are cells already undergoing splitting. As observed in Figure 4b, the average grouped cells indeed get mainly larger by length first, then by cell width. The origin is segregated in small cells, prior to splitting, without preference for location on the width axis (Figure 4b). However, as observed in the third cell group, the second segregation takes place over the width axis (perpendicular to the initial segregation) and four spots are visible in the last three cell groups (Figure 4b). This corresponds to the average number of detected ParB‐GFP spots in the S. aureus dataset (4 ± 3 spots/cell). In total, this analysis shows that BactMAP is capable of handling different input data and converting it into intuitive and qualitative as well as quantitative insightful reproductions of key cell cycle parameters.

2.3. Single‐cell time‐lapse analysis of the replication fork of S. pneumoniae using BactMAP

In S. pneumoniae, the origin of replication moves to the new division sites very early in the cell cycle (Figure 4b,c). The movement of the origin of replication is restricted, while the replication fork of S. pneumoniae is very mobile (van Raaphorst et al., 2017), in contrast to the replication fork of Escherichia. coli (Wallden, Fange, Lundius, Baltekin, & Elf, 2016) or B. subtilis (Liao, Schroeder, Gao, Simmons, & Biteen, 2015; Mangiameli, Cass, Merrikh, & Wiggins, 2018). Snapshots of fast‐moving DnaX (the clamp loader of the replication fork) fused to GFP lead to blurred demographs, making it hard to interpret the localization of the replisome. Previously, we saw in single‐cell movies using epifluorescence microscopy that the bulk of FtsZ and DnaX often localize on the same plane on the length axis of the cell. A recent study employing total internal reflection fluorescence (TIRF) microscopy (Perez et al., 2019) showed that FtsZ is not moving en masse from the division plane to the ¼‐positions of the cell, but few treadmilling FtsZ clusters move along with MapZ, after which the concentration of FtsZ polymers colocalizing with MapZ gradually increases into the ring as seen by epifluorescence microscopy.

For our previous work (van Raaphorst et al., 2017), we imaged cells with DnaX‐GFP and FtsZ‐RFP (strain MK396) every 20 s for 1 hr. For this study, we re‐analyzed these movies. We first used Oufti to track the cells and iSBatch to track internal FtsZ‐RFP filaments and DnaX‐GFP foci. After tracking of cells, filaments and foci, we used BactMAP to combine the information. Figure 5 displays some examples on how such data can be plotted with BactMAP. Figure 5a shows kymographs of the fluorescence intensity across the length axis in a single cell over time. While the bulk of FtsZ has arrived at the ¼‐positions of the cell around 10 min from the start of the movie, there is already an increase in fluorescence visible next to mid‐cell from 4 min on. This is confirmed by the trajectories recorded by iSBatch (Figure 5b). Interestingly, the timing of movement from mid‐cell to the quarter positions of the cell is not completely the same in the left and the right side of the cell, as was also shown by Perez et al., 2019. As shown in Figure 5c, the FtsZ‐RFP tracks are short and sometimes even static. It is not surprising that we do not observe treadmilling in these conditions, since we imaged the cells in HiLo‐mode (highly inclined and laminated optical sheet mode) where we focused on the middle of the cell and not in TIRF mode as performed by (Perez et al., 2019). While these conditions are good to follow DnaX and to see the general localization of FtsZ, we miss the focus on the edge of the cell and thereby the movement of FtsZ along the Z‐ring.

Figure 5.

Figure 5

Single‐cell time‐lapse analysis of the replication fork and FtsZ in Streptococcus pneumoniae. (a) Kymographs of a single cell (strain MK396, dnaX::dnaX‐GFP‐eryR, ftsZ::ftsZ‐RFP‐kanR) imaged every 20 s for 1 hr. Cell outlines recorded with Oufti and combined with the raw image data using BactMAP. Left/right of the kymographs are movie strips of the single cell, created with BactMAP. (b) Trajectory over the length axis of the cell over time of FtsZ‐RFP bundles and DnaX‐GFP foci in the same cell as shown in (a). Foci/bundles were tracked with iSBatch. (c) x/y trajectory over time of the cell shown in (a) and (b). Outlines recorded with Oufti, tracks recorded with iSBatch. (d) The growth curves of all cells were determined and curves of non‐growing cells and cells with incomplete cell cycles were discarded. Cell parameters were binned in ten groups by % of division. Bottom: average intensity of GFP signal over the length axis of the cell per % of division. Top: density plots of x/y coordinates of recorded GFP foci per binned % of division. x/y coordinates were recorded with iSBatch, cell outlines with Oufti and the raw image files were used by BactMAP to determine the average intensity per bin. (e) Clustering results: average cellular intensity over division percentage. Mean cellular fluorescence intensity (arbitrary units) over percentage of division (pink, standard deviation in shade), with single‐cell fluorescence intensity paths shown in grey. Top‐bottom shows each cluster, the number of clusters (N) and the percentage of the total number of cells (%). (f) Average intensity profile. Average intensity of the length axis of the cell binned in 10 groups based on percentage of division for each of the three clusters (top‐bottom). (g) Single cells. Example kymographs of single‐cell members of each cluster. (h) Schematic models of the various dynamics that were observed for pneumococcal DnaX [Colour figure can be viewed at https://www.wileyonlinelibrary.com]

While FtsZ moves to the new septa early during the cell cycle, DnaX seems to disassociate at mid‐cell and assemble at the new quarter positions within a timeframe of 8 min. To see if we can observe association and dissociation in more cells, we re‐analyzed a time‐lapse movie of pneumococcus with DnaX‐GFP imaged every 2 min for 4 hr (van Raaphorst et al., 2017). The lower time resolution allowed us to record multiple divisions while keeping the time resolution high enough to be able to see DnaX appear and disappear in single cells. BactMAPs function perc_Division() uses cell length as a proxy to determine when a cell in a time‐lapse has divided, if this is not yet determined by the segmentation software used as input. After this, it uses the division time to determine how far into the cell cycle every single cell is at a given point in time. In this way, BactMAP can order and compare cells. Figure 5d shows a demograph of the fluorescence intensity over the length axis of the cell averaged by the percentage of division. Notably, no drop in fluorescence intensity is visible during cell division in this demograph, meaning that at the population level, DnaX association and dissociation is not measurable. This can be due to the lower time‐resolution, difference in fluorescence intensity per cell or a high variability in association/dissociation timing between cells. This exploratory analysis shows that to follow the timing and localization of DnaX accurately, one needs to examine individual cells in time.

2.4. Timing and localization of DnaX association/dissociation at the replication fork: custom analysis

Visual inspection of kymographs of individual cells over time showed that there is indeed a high variability in the localization of DnaX between cells. Using the R package TSclust (Montero & Vilar, 2014), we created a dissimilarity matrix and performed hierarchical clustering based on the fluorescence profile over the course of division of each cell (see Figure S3). Before clustering, 10% of the cells were discarded because they showed no growth or too little fluorescence. After the clustering analysis, we grouped the cells into three main groups (Figure 5e–h). In 38% of the remaining cells, the mean fluorescence drops just before division, after which it slightly increases again. This corresponds to cells where DnaX moves as in Figure 5a–c: after moving around mid‐cell, DnaX disappears for a few minutes, after which it reappears at the two new septa. However, in 42% of the cells, we observed no drop in fluorescence: DnaX moves gradually to the two cell poles. It could be that for this cell group, dissociation and association happened within our 2 min interval. In 20% of the cells, DnaX remains at the old septum until division (Figure 5e–h). It might be possible that the segmentation software split these cells earlier in their division cycle than the cells of the largest group, leading to an early drop in fluorescence instead of a late one. Segmenting cells based on membrane or cell wall markers could give more insight into whether this is the case. Nevertheless, this analysis using BactMAP provides new insights into DnaX dynamics during the pneumococcal cell cycle. We now show that the replication forks dissociate and associate before the cell splits and after the Z‐ring is formed at the new ¼ positions.

3. DISCUSSION

In this work, we have developed BactMAP, a tool for visualization of microscopy data obtained from different image analysis programs. Using BactMAP, cell segmentation, fluorescence intensity and fluorescence spot detection results obtained from different software packages are all converted to the same format and can be plotted the same way. This allows for easy comparison of results by eye or by quantitative measures. BactMAP thus enables users to not only compare outputs from different software packages, but also combine them in one analysis. Finally, data from different experiments and different color channels can be easily combined in a uniform manner.

BactMAP is currently available as an R package, which is a set of functions to be executed in scripts or command‐line. With R being one of the most‐used languages in biological analysis, this has the advantage that functions from BactMAP can be added to existing workflows. Another advantage of using the functions within R is that plots generated with BactMAP can be adapted using standard functions from the R package ggplot2. To make it easier for users unfamiliar with R code to use BactMAP, we are currently working on a GUI. To keep users informed on the progress and get feedback on the functionality of BactMAP, we have opened an issues page on our GitHub page (https://github.com/veeninglab/bactmap/issues).

When creating BactMAP, our focus was to make a tool for plotting of intracellular fluorescence and automated import of different datasets. However, there are more types of analyses possible, some of which we slightly touched; for instance single molecule tracking, cell shape classification, analysis of cell lineages or visualization of localization microscopy. For advanced single molecule tracking, there are already software packages available, which can combine tracking analysis with single‐cell outlines from other programs (e.g., iSBatch [Caldas et al., 2015] and SMTracker [Rösch, Oviedo‐Bocanegra, Fritz, & Graumann, 2018]).

One of the more alarming outcomes of our analysis of segmentation outputs is that both the software and the user influence the outcome of the analysis to a great extent. Only keeping the same software parameters between experiments are not enough to keep wconsistent segmentation, because background noise and other day‐to‐day differences influence the parameters needed to segment the cells. This is why all segmentation programs rely on the user to check whether the segmentation reflects the biology (e.g., when a cell divides) of the cell. Especially when comparing cell sizes from different experiments or when switching software within a lab, it is important to keep these limitations in mind and to document the differences. As exemplified in Figures S1 and S2, BactMAP can be used to investigate these differences.

Using our newly developed R package BactMAP, we could revisit our previously analyzed microscopy images and time‐lapse movies and gather new information. Most notably, using averaged datasets and observations of single‐cell movies of DnaX‐GFP movement during cell division, we concluded previously that the formation of the new replisome happens simultaneously with Z‐ring formation. Using single cell analysis instead of looking at the cells at the population level, we see that the situation is more nuanced. In 38% of the cases, the replisome is formed after Z‐ring formation, but in the remaining 62% of the cells we see DnaX foci moving gradually to the new septum or not moving away from the septum at all. In many cells, association and dissociation of the replication forks probably happens within a very short time interval. We also could get a more detailed view of global FtsZ movement during cell division.

Recently, more R packages and Shiny apps have been developed to enable researchers with little experience in R to use the plotting tools available with little effort, for example PlotsOfData (Postma & Goedhart, 2019). With BactMAP, researchers can use advanced plotting of microscopy data in R and have autonomy over both the way of plotting as well as the layout presented. After plotting, the data output can be used further for custom analysis. All in all, BactMAP is a tool for both initial data investigation and publication‐ready plotting, and as a starting point for more in‐depth data analysis. A user guide and the source code of BactMAP is available at https://veeninglab.com/bactmap.

4. EXPERIMENTAL PROCEDURES

4.1. Conversion to standard data structure

BactMAP converts data from segmentation and localization analysis tools into R dataframes with a standard structure, depending on the information enclosed in the input data: (a) meshframe, containing cell contours, (b) spotframe, containing spot x/y coordinates, (c) objectframe, with x/y coordinates of the outline of fluorescent objects, (d) spots_relative and object_relative, with the x/y coordinates of the spots or object translated to intercellular coordinates, (e) time‐lapse data, containing information on cell genealogy, and (f) cellList, where the original input data are saved with as little change as possible.

BactMAP's import functions are at least compatible with the current versions of segmentation and fluorescence detection software: Oufti (2015‐current), Morphometrics (version >0.1, October 25, 2016), ObjectJ (version 1.04), MicrobeJ (version >5.13), SuperSegger (version 1.0.1) and isBatch (version >0.3.5).

Segmentation data standardly creates a meshframe, containing x/y‐coordinates of the contours of the cells, the length and width of the minimal bounding box, cell and frame ID and the coordinates of the cell when the cells are turned on their long axis with their mid‐point at [0,0]. The R package shotGroups (https://CRAN.R-project.org/package=shotGroups) was used to create the function of finding the minimal bounding box and the cell angle needed to turn every cell on their length axis. For importing MATLAB (.mat) files directly into R, the R package R.matlab (https://CRAN.R-project.org/package=R.matlab) was used.

Similarly, when localization information is transformed by BactMAP, a spotframe is created which contains the coordinates of the spots and the frame ID. When segmentation and localization data are imported together, the data are combined to finally create the dataframe spots_relative. The R package SMDTools (VanDerWal, Falconi, Januchowski, Shoo, & Storlie, 2014) was used to build the function to connect the spot data to the cell outline data.

While the spotframe, meshframe and spots_relative dataframes are the most common output formats of transformation of BactMAP data, BactMAP also has standard functions to transform fluorescent object coordinates, cell genealogy information and raw TIFF microscopy images. A summary of transformation functions and their output can be found in the documentation of the BactMAP package available at https://veeninglab.com/bactmap.

4.2. Visualization

The BactMAP plotting toolbox can be divided in three groups (see Figure 2): (a) visualization of cells based on the raw image data and unprocessed cell outlines, (b) plots used to visualize, combine and categorize information on subcellular localization, and (c) plots intended for time‐lapse analysis (e.g., genealogy trees and extraction of single‐cell movies).

One of the primary goals of this project was to make it easy to generate and edit publication‐ready plots. For this reason, all plots generated using the BactMAP package are made using ggplot2 (Wickham, 2016). Since ggplots are easy to edit and build upon by adding layers of layouts, it is possible to change the color schemes and fonts or add new layers of data. All plotting functions also return the data used to make the plot, so a user can also decide to build the plot from scratch. Plots generated in R can be saved in vector‐format PDFs. The standard color schemes used in BactMAP are colorblind‐friendly (the viridis diverging heatmap color schemes or the palette designed by (Ichihara, Kojima, & Ito, 2010)). Using the R package gganimate (https://gganimate.com/) both time‐lapse and localization plots faceted by cell size can easily be converted into movies. BactMAP plot outputs are compatible with the interactive plotting package plotly (https://plot.ly), which enables a user to change the axes manually, zoom by dragging/dropping or make interactive movies.

4.3. Data availability, tutorials & documentation

The source code and full documentation of all functions included in BactMAP can be found on https://veeninglab.com/bactmap, on the GitHub page of the Veening Lab (https://github.com/veeninglab), and are included in the BactMAP package.

The datasets used in this study can be downloaded as example datasets from https://veeninglab.com/bactmap. Consequently, in a set of tutorials we explain how to recreate these plots using the example data on https://veeninglab.com/bactmap.

4.4. Bacterial strains

Strain Genotype Reference
Bacillus subtilis    
VL429/JW147 sp168; hutM::tetO, KmR, amyE::Pxyl‐tetR‐mCherry, SpecR, PdnaN‐gfp‐dnaN, CmR (Veening et al., 2009)
Staphylococcus aureus    
IM67 SH1000, pLOW‐parB‐m(sf)gfp Laboratory collection
Streptococcus pneumoniae    
VL369/RR23 D39V; dnaX::dnaX‐m(sf)GFP, eryR (van Raaphorst et al., 2017)
VL451/MK359 D39V, ΔbgaA::PZntetR‐mKate2_parBpmut‐gfp; tetR; comCDE, parSp, kanR; pulA, tetO48, spcR (van Raaphorst et al., 2017)
VL469/MK396 D39V, ftsZ::ftsZ‐mKate2, kanR, dnaX::dnaX‐m(sf)GFP, eryR (van Raaphorst et al., 2017)

4.5. Growth conditions

B. subtilis was incubated in Lysogeny Broth (LB, Miller) and grown O/N shaking (220 rpm) at 37°C. The culture was diluted 200 times in fresh LB and allowed to grow for 2 hr at 30°C. The culture was induced with d‐Xylose (1% w/v, Sigma‐Aldrich) for 30 min before the cells were washed in PBS containing 0.5 ug/mL Mitotracker Far Red (Invitrogen). The cells were washed again in PBS and where immobilized on 1% agarose in PBS as described before (de Jong, Beilharz, Kuipers, & Veening, 2011) for microscopy.

S. aureus SH1000 carrying pLOW‐parB‐m(sf)gfp was grown in BHI broth (Oxoid) containing 5 µg/ml of erythromycin overnight. The culture was diluted 100 times in fresh medium containing 100 µM of IPTG and incubated for 2.5 hr. Cells were then immobilized on 1% agarose in PBS for microscopy.

S. pneumoniae with DnaX‐GFP (strain VL369/RR23) and DnaX‐GFP/FtsZ‐RFP (strain VL469/MK396) were grown as described before (van Raaphorst et al., 2017). S. pneumoniae strain VL451/MK359 was grown in C+Y medium recipe 2018 (Domenech et al., 2018) until an OD of 0.1 and diluted 100 times in fresh medium containing 0.1 μM of ZnCl2. The culture was grown up to OD 0.1 again and immobilized on 1% agarose in PBS as described before for microscopy (de Jong et al., 2011).

4.6. Microscopy

The images of B. subtilis and S. pneumoniae VL451/MK359 were acquired on a Leica DMi8 microscope with a DFC9000 GT camera, a 100x/1.40 NA phase‐contrast objective (Leica) and a Lumencor SpectraX light engine with the following filter settings: GFP: SpectraX‐Quad cube (Chroma #89000) 470/24 excitation & 515/40 emission; RFP: SpectraX‐Quad cube (Chroma #89000) 575/35 excitation & 595/40 emission; far‐red (MitoTracker Red): Alexa 633 cube (Leica #11103136): 610/655 excitation & 620/720 emission.

S. aureus was imaged using a Zeiss AxioObserver with ZEN Blue software. Images were captured using an ORCA‐Flash4.0 V2 Digital CMOS camera (Hamamatsu Photonics), a 100x phase‐contrast objective. HPX 120 Illuminator (Zeiss) was used as a fluorescence light source. The following filter settings were used for GFP: filter set 38 HE (Zeiss) 470/40 excitation and 525/50 emission.

S. pneumoniae with DnaX‐GFP (strain VL369/RR23) and DnaX‐GFP/FtsZ‐RFP (strain VL469/MK396) were imaged as described before (van Raaphorst et al., 2017). In short, the cells were imaged on a Deltavision Elite microscope in HiLo mode using a 488 nm (GFP) and 568 (RFP) laser through a Quad cube (Chroma #89000), either every 20 s at 30°C for 1 hr or every 2 min at 37°C for 3 hr an 48 min.

4.7. Image analysis

Images where converted to TIFF files using FIJI (Schindelin et al., 2012). Cell segmentation and fluorescence detection/segmentation was done with isBatch (Caldas et al., 2015), MicrobeJ (Ducret et al., 2016), SuperSegger (Stylianidou et al., 2016), Morphometrics (Ursell et al., 2017), ObjectJ (Vischer et al., 2015), ChainTracer (Syvertsson et al., 2016) and Oufti (Paintdakhi et al., 2016) as indicated in the results section. The parameters used for each experiment are documented in the tutorials and documentation on https://veeninglab.com/bactmap.

For testing the segmentation of S. pneumoniae, we asked members of the Veening lab to segment one single microscopy image with their segmentation program of choice. Four lab members including one of the authors participated, of which one lab member performed segmentation twice, using two different programs, resulting in five datasets. These datasets where analyzed as described in the results section. A full transcript of the analysis including the datasets can be found as a tutorial on https://veeninglab.com/bactmap.

AUTHOR CONTRIBUTIONS

RvR and JWV designed the research. RvR built BactMAP. RvR and MK performed microscopy. RvR analyzed data. RvR and JWV wrote the manuscript with input from MK.

CONFLICT OF INTEREST

The authors declare no conflict of interest.

5.

Supporting information

 

ACKNOWLEDGEMENTS

We would like to thank Ine Myrbråten (Norwegian University of Life Sciences) for help with construction of the S. aureus strain. We would like to thank the Veening lab for testing the package functionality, and specifically Clement Gallay, Lance Keller and Jun Kurushima for providing segmentation data to build the package and participating in the pneumococcus segmentation comparison test. We would like to thank Vincent de Bakker and Doran Pauka for reading through & correcting the R code and Xue Liu for testing the installation on MacOS. Work in the Veening lab is supported by the Swiss National Science Foundation (SNSF) (project grant 31003A_172861), JPIAMR grant (40AR40_185533) from SNSF and ERC consolidator grant 771534‐PneumoCaTChER. M. Kjos is supported by the Research Council of Norway (RCN, project number 250976) and JPIAMR grant from RCN (project number 296906).

van Raaphorst R, Kjos M, Veening J‐W. BactMAP: An R package for integrating, analyzing and visualizing bacterial microscopy data. Molecular Microbiology. 2020;113:297–308. 10.1111/mmi.14417

Contributor Information

Renske van Raaphorst, https://twitter.com/vrrenske.

Morten Kjos, https://twitter.com/Morten3891.

Jan‐Willem Veening, Email: jan-willem.veening@unil.ch, https://twitter.com/JWVeening.

DATA AVAILABILITY STATEMENT

Data availability, Tutorials & Documentation The source code and full documentation of all functions included in BactMAP can be found on https://veeninglab.com/bactmap, on the GitHub page of the Veening Lab (https://github.com/veeninglab), and are included in the BactMAP package. The datasets used in this study can be downloaded as example datasets from https://veeninglab.com/bactmap. Consequently, in a set of tutorials we explain how to recreate these plots using the example data on https://veeninglab.com/bactmap.

REFERENCES

  1. Bannon, D. , Moen, E. , Borba, E. , Ho, A. , Camplisson, I. , Chang, B. , … Van Valen, D. (2018). DeepCell 2.0: Automated cloud deployment of deep learning models for large‐scale cellular image analysis [preprint]. bioRxiv. 10.1101/505032 [DOI] [Google Scholar]
  2. Berg, S. , Kutra, D. , Kroeger, T. , Straehle, C. N. , Kausler, B. X. , Haubold, C. , … Kreshuk, A. (2019). ilastik: Interactive machine learning for (bio)image analysis. Nature Methods. 10.1038/s41592-019-0582-9 [DOI] [PubMed] [Google Scholar]
  3. Caldas, V. E. A. , Punter, C. M. , Ghodke, H. , Robinson, A. , & van Oijen, A. M. (2015). iSBatch: A batch‐processing platform for data analysis and exploration of live‐cell single‐molecule microscopy images and other hierarchical datasets. Molecular BioSystems, 11, 2699–2708. 10.1039/C5MB00321K [DOI] [PubMed] [Google Scholar]
  4. Cass, J. A. , Stylianidou, S. , Kuwada, N. J. , Traxler, B. , & Wiggins, P. A. (2017). Probing bacterial cell biology using image cytometry. Molecular Microbiology, 103, 818–828. 10.1111/mmi.13591 [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. de Jong, I. G. , Beilharz, K. , Kuipers, O. P. , & Veening, J.‐W. (2011). Live cell imaging of Bacillus subtilis and Streptococcus pneumoniae using automated time‐lapse microscopy. Journal of Visualized Experiments, 53, e3145 10.3791/3145 [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Domenech, A. , Slager, J. , & Veening, J.‐W. (2018). Antibiotic‐induced cell chaining triggers pneumococcal competence by reshaping quorum sensing to autocrine‐like signaling. Cell Reports, 25, 2390–2400.e3. 10.1016/j.celrep.2018.11.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Ducret, A. , Quardokus, E. M. , & Brun, Y. V. (2016). MicrobeJ, a tool for high throughput bacterial cell detection and quantitative analysis. Nature Microbiology, 1, 16077 10.1038/nmicrobiol.2016.77 [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Hartmann, R. , van Teeseling, M. C. F. , Thanbichler, M. , & Drescher, K. (2018). BacStalk: A comprehensive and interactive image analysis software tool for bacterial cell biology [preprint]. bioRxiv. 10.1101/360230 [DOI] [PubMed] [Google Scholar]
  9. Ichihara, Y. G. , Kojima, N. , & Ito, K. (2010). Color universal design: Analysis of color category dependency on color vision type. Color Imaging XV: Displaying, Processing, Hardcopy, and Applications, 752805 10.1117/12.838802 [DOI] [Google Scholar]
  10. Lamprecht, M. R. , Sabatini, D. M. , & Carpenter, A. E. (2007). CellProfiler™: Free, versatile software for automated biological image analysis. BioTechniques, 42, 71–75. 10.2144/000112257 [DOI] [PubMed] [Google Scholar]
  11. Liao, Y. , Schroeder, J. W. , Gao, B. , Simmons, L. A. , & Biteen, J. S. (2015). Single‐molecule motions and interactions in live cells reveal target search dynamics in mismatch repair. Proceedings of the National Academy of Sciences of the United States of America, 112, E6898–E6906. 10.1073/pnas.1507386112 [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Lugagne, J. B. , Lin, H. , & Dunlop, M. J. (2019). DeLTA: Automated cell segmentation, tracking, and lineage reconstruction using deep learning. bioRxiv. 10.1101/720615 [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Mangiameli, S. M. , Cass, J. A. , Merrikh, H. , & Wiggins, P. A. (2018). The bacterial replisome has factory‐like localization. Current Genetics, 64, 1029–1036. 10.1007/s00294-018-0830-z [DOI] [PubMed] [Google Scholar]
  14. Monteiro, J. M. , Fernandes, P. B. , Vaz, F. , Pereira, A. R. , Tavares, A. C. , Ferreira, M. T. , … Pinho, M. G. (2015). Cell shape dynamics during the staphylococcal cell cycle. Nature Communications, 6, 8055 10.1038/ncomms9055 [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Montero, P. , & Vilar, J. A. (2014). TSclust: AnRPackage for time series clustering. Journal of Statistical Software, 62, 1–43, 10.18637/jss.v062.i01 [DOI] [Google Scholar]
  16. Paintdakhi, A. , Parry, B. , Campos, M. , Irnov, I. , Elf, J. , Surovtsev, I. , & Jacobs‐Wagner, C. (2016). Oufti: An integrated software package for high‐accuracy, high‐throughput quantitative microscopy analysis. Molecular Microbiology, 99, 767–777. 10.1111/mmi.13264 [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Perez, A. J. , Cesbron, Y. , Shaw, S. L. , Bazan Villicana, J. , Tsui, H.‐C.‐ T. , Boersma, M. J. , … Winkler, M. E. (2019). Movement dynamics of divisome proteins and PBP2x:FtsW in cells of Streptococcus pneumoniae . Proceedings of the National Academy of Sciences of the United States of America, 116, 3211–3220. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Pinho, M. G. , & Errington, J. (2004). A divIVA null mutant of Staphylococcus aureus undergoes normal cell division. FEMS Microbiology Letters, 240, 145–149. [DOI] [PubMed] [Google Scholar]
  19. Pinho, M. G. , Kjos, M. , & Veening, J.‐W. (2013). How to get (a)round: Mechanisms controlling growth and division of coccoid bacteria. Nature Reviews Microbiology, 11, 601–614. 10.1038/nrmicro3088 [DOI] [PubMed] [Google Scholar]
  20. Postma, M. , & Goedhart, J. (2019). PlotsOfData—A web app for visualizing data together with their summaries. PLoS Biology, 17, e3000202 10.1371/journal.pbio.3000202 [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Rösch, T. C. , Oviedo‐Bocanegra, L. M. , Fritz, G. , & Graumann, P. L. (2018). SMTracker: A tool for quantitative analysis, exploration and visualization of single‐molecule tracking data reveals highly dynamic binding of B. subtilis global repressor AbrB throughout the genome. Scientific Reports, 8, 15747 10.1038/s41598-018-33842-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Schindelin, J. , Arganda‐Carreras, I. , Frise, E. , Kaynig, V. , Longair, M. , Pietzsch, T. , … Cardona, A. (2012). Fiji: An open‐source platform for biological‐image analysis. Nature Methods, 9, 676–682. 10.1038/nmeth.2019 [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Sliusarenko, O. , Heinritz, J. , Emonet, T. , & Jacobs‐Wagner, C. (2011). High‐throughput, subpixel precision analysis of bacterial morphogenesis and intracellular spatio‐temporal dynamics. Molecular Microbiology, 80, 612–627. 10.1111/j.1365-2958.2011.07579.x [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Stewart, E. J. , Madden, R. , Paul, G. , & Taddei, F. (2005). Aging and death in an organism that reproduces by morphologically symmetric division. PLoS Biology, 3, e45 10.1371/journal.pbio.0030045 [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Stylianidou, S. , Brennan, C. , Nissen, S. B. , Kuwada, N. J. , & Wiggins, P. A. (2016). SuperSegger: Robust image segmentation, analysis and lineage tracking of bacterial cells. Molecular Microbiology, 102, 690–700. [DOI] [PubMed] [Google Scholar]
  26. Syvertsson, S. , Vischer, N. O. E. , Gao, Y. , & Hamoen, L. W. (2016). When phase contrast fails: ChainTracer and NucTracer, Two ImageJ methods for semi‐automated single cell analysis using membrane or DNA staining. PLoS One, 11, e0151267 10.1371/journal.pone.0151267 [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Ursell, T. , Lee, T. K. , Shiomi, D. , Shi, H. , Tropini, C. , Monds, R. D. , … Huang, K. C. (2017). Rapid, precise quantification of bacterial cellular dimensions across a genomic‐scale knockout library. BMC Biology, 15, 17 10.1186/s12915-017-0348-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. van Raaphorst, R. , Kjos, M. , & Veening, J.‐W. (2017). Chromosome segregation drives division site selection in. Proceedings of the National Academy of Sciences of the United States of America, 114, E5959–E5968. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. VanDerWal, J. , Falconi, L. , Januchowski, S. , Shoo, L. , & Storlie, C. (2014). Species distribution modelling tools: Tools for processing dataassociated with species distribution modelling exercises. Retrieved from http://www.rforge.net/SDMTools/ [Google Scholar]
  30. Veening, J.‐W. , Murray, H. , & Errington, J. (2009). A mechanism for cell cycle regulation of sporulation initiation in Bacillus subtilis . Genes & Development, 23, 1959–1970. 10.1101/gad.528209 [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Vischer, N. O. E. , Verheul, J. , Postma, M. , van den Berg van Saparoea, B. , Galli, E. , Natale, P. , … den Blaauwen, T. (2015). Cell age dependent concentration of Escherichia coli divisome proteins analyzed with ImageJ and ObjectJ. Frontiers in Microbiology, 6, 586 10.3389/fmicb.2015.00586 [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Wallden, M. , Fange, D. , Lundius, E. G. , Baltekin, Ö. , & Elf, J. (2016). The synchronization of replication and division cycles in individual E. coli cells. Cell, 166, 729–739. [DOI] [PubMed] [Google Scholar]
  33. Wickham, H. (2016). ggplot2: Elegant graphics for data analysis. New York: Springer‐Verlag. [Google Scholar]
  34. Young, J. W. , Locke, J. C. W. , Altinok, A. , Rosenfeld, N. , Bacarian, T. , Swain, P. S. , … Elowitz, M. B. (2011). Measuring single‐cell gene expression dynamics in bacteria using fluorescence time‐lapse microscopy. Nature Protocols, 7, 80–88. 10.1038/nprot.2011.432 [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Yu, G. , Smith, D. K. , Zhu, H. , Guan, Y. , & Lam, T. T. Y. (2017). ggtree: An R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. Methods in Ecology and Evolution, 8(1), 28–36. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

 

Data Availability Statement

The source code and full documentation of all functions included in BactMAP can be found on https://veeninglab.com/bactmap, on the GitHub page of the Veening Lab (https://github.com/veeninglab), and are included in the BactMAP package.

The datasets used in this study can be downloaded as example datasets from https://veeninglab.com/bactmap. Consequently, in a set of tutorials we explain how to recreate these plots using the example data on https://veeninglab.com/bactmap.

Data availability, Tutorials & Documentation The source code and full documentation of all functions included in BactMAP can be found on https://veeninglab.com/bactmap, on the GitHub page of the Veening Lab (https://github.com/veeninglab), and are included in the BactMAP package. The datasets used in this study can be downloaded as example datasets from https://veeninglab.com/bactmap. Consequently, in a set of tutorials we explain how to recreate these plots using the example data on https://veeninglab.com/bactmap.


Articles from Molecular Microbiology are provided here courtesy of Wiley

RESOURCES