Core genes can have higher recombination rates than accessory genes within global microbial populations
Abstract
Recombination is essential to microbial evolution, and is involved in the spread of antibiotic resistance, antigenic variation, and adaptation to the host niche. However, assessing the impact of homologous recombination on accessory genes which are only present in a subset of strains of a given species remains challenging due to their complex phylogenetic relationships. Quantifying homologous recombination for accessory genes (which are important for niche-specific adaptations) in comparison to core genes (which are present in all strains and have essential functions) is critical to understanding how selection acts on variation to shape species diversity and genome structures of bacteria. Here, we apply a computationally efficient, non-phylogenetic approach to measure homologous recombination rates in the core and accessory genome using >100,000 whole genome sequences from Streptococcus pneumoniae and several additional species. By analyzing diverse sets of sequence clusters, we show that core genes often have higher recombination rates than accessory genes, and for some bacterial species the associated effect sizes for these differences are pronounced. In a subset of species, we find that gene frequency and homologous recombination rate are positively correlated. For S. pneumoniae and several additional species, we find that while the recombination rate is higher for the core genome, the mutational divergence is lower, indicating that divergence-based homologous recombination barriers could contribute to differences in recombination rates between the core and accessory genome. Homologous recombination may therefore play a key role in increasing the efficiency of selection in the most conserved parts of the genome.
Editor's evaluation
Homologous recombination is an important process driving the evolution of bacterial genomes. This paper addresses how the rate of homologous recombination varies between core and accessory genes. The authors quantify recombination using an approach based on the decline of linkage between polymorphic sites over distance. The analysis indicates that core genes can be under higher rates of homologous recombination than accessory genes, which is an interesting observation that contrasts with the prevailing wisdom. Together, it suggests that homologous recombination may play a key role in increasing the efficiency of selection in conserved components of the genome.
https://doi.org/10.7554/eLife.78533.sa0Introduction
Intrinsic to bacterial genome evolution is the process of recombination (Fraser et al., 2007; Hanage, 2016; Smith, 1991; Thomas and Nielsen, 2005), which can enhance the ability of microbes to adapt to their environment (Arnold et al., 2022; Maiden, 1998; van der Woude and Bäumler, 2004). Recombination in bacteria occurs in two forms. One is ‘homologous recombination’, in which fragments of DNA taken up from the environment are incorporated into homologous sites in the genome resulting in allele replacement and no gain or loss of chromosomal DNA (recently this has also been referred to as ‘allele transfer’ [Arnold et al., 2022]). The second is ‘nonhomologous recombination’ or ‘horizontal gene transfer’ (HGT), in which DNA fragments are inserted or removed from the genome, changing the amount of chromosomal DNA and potentially leading to gene gain or loss events (Arnold et al., 2022; Hanage, 2016). Both of these processes obfuscate clonal signals and confound phylogenetic analyses (Feil et al., 2001; Guttman and Dykhuizen, 1994; Spratt et al., 2001), and recombination is so ubiquitous in certain bacteria that whether or not bacterial genome evolution can truly be characterized as tree-like is the subject of much debate (Creevey et al., 2004; Doolittle, 1999; Sakoparnig et al., 2021; Spratt et al., 2001). Recombination rates vary greatly both between and within different bacterial species (Castillo-Ramírez et al., 2012; Chaguza et al., 2016; Chewapreecha et al., 2014; Croucher et al., 2013; Hanage, 2016; Hanage et al., 2009), and this variance is attributed to a complex interplay of selective pressure, molecular mechanisms, and ecological factors which have yet to be disentangled. Along the genome, recombination rates vary among specific genes (i.e., recombination ‘hotspots’) (Didelot et al., 2012; Everitt et al., 2014) and between gene classes such as ‘informational genes’ (those involved with transcription/translation) and ‘operational genes’ (those involved with biosynthesis, metabolism, and regulatory functions) (Jain et al., 1999; Novick and Doolittle, 2019).
This inter- and intragenomic variation in recombination rates has presented difficulties with using individual genes (e.g., 16S rRNA) to define genotypic clusters and species, and approaches such as multilocus sequence typing (MLST) have been developed to address this (Hanage et al., 2005; Hanage et al., 2006a; Maiden et al., 1998). Multilocus approaches attempt to resolve this issue by concatenating sequences from several housekeeping genes, thereby minimizing the chance that local inter- and intraspecific recombination at a single locus distorts our interpretation of clonal relationships. These housekeeping genes are part of the ‘core’ genome, which is found in nearly all strains of a given species and is thought to be less prone to recombination events (at least in the form of HGT) compared to the collections of genes found in only subsets of strains of a given species known as the ‘accessory’ genome (Daubin et al., 2002; Lan and Reeves, 2001; McInerney et al., 2017).
Quantifying the variation of homologous recombination rates across core and accessory genes is important for understanding of how selection and recombination interact to shape sequence diversity, as core genes are thought to be under strong, purifying selection (Bohlin et al., 2014; Bohlin et al., 2017; den Bakker et al., 2013; McInerney et al., 2017; Moulana et al., 2020) whereas many accessory genes are thought to be important for niche specialization and under positive or diversifying selection (Azarian et al., 2020; McInerney et al., 2017; Vernikos et al., 2015). Moreover, characterizing homologous recombination rates in niche-adaptive accessory genes will have far-reaching implications for understanding how bacteria adapt to stresses such as antibiotics, host immune responses, and nutrient conditions (Didelot et al., 2016; Povolo and Ackermann, 2019; Seifert, 1996; van der Woude and Bäumler, 2004). However, measuring homologous recombination rates across accessory genes has been stymied by the frequent gene loss and gain events that they experience, which cause difficulties in applying phylogeny-based approaches to infer homologous recombination rates (Arnold et al., 2018; Ansari and Didelot, 2014; Croucher et al., 2015; Didelot et al., 2010; Didelot et al., 2012; Didelot and Falush, 2007; Didelot and Wilson, 2015; Iranzo et al., 2019; Lefébure and Stanhope, 2007; Marttinen et al., 2012; Mostowy et al., 2017). For this reason, variation in recombination rates has primarily been studied across core genes (Didelot et al., 2012; Everitt et al., 2014; Jain et al., 1999). Whereas previous studies indicate that the core genome experiences fewer HGT events (Daubin et al., 2002; Haegeman and Weitz, 2012; Lan and Reeves, 2001; Lobkovsky et al., 2013; Wolf et al., 2016), direct comparisons of homologous recombination rates between the core and accessory genomes are currently lacking.
Here, we determine how homologous recombination rates differ between core and accessory genes. We focus on Streptococcus pneumoniae, which frequently engages in homologous recombination, has been extensively sequenced (Chaguza et al., 2016; Chewapreecha et al., 2014; Croucher et al., 2013; Hanage, 2016; Hanage et al., 2009), and is clinically relevant (O’Brien et al., 2009). For these reasons, S. pneumoniae provides a key case study for quantifying variation in homologous recombination rates across the core and accessory genome and, by analyzing additional species, we determine the generality of these trends across several bacterial species.
Results
Inferring recombination parameters for analyzed samples and unobserved gene pools using correlated substitutions
To infer the parameters of homologous recombination, we apply and extend the mcorr method (Lin and Kussell, 2017), an approach that avoids phylogenetic reconstruction by using a coalescent-based population genetics model with recombination to capture the statistics of large-scale sequencing data (see Lin and Kussell, 2019 for details). We define a ‘sample’ to be a set of lineages with mean coalescence time , which mutate and exchange homologous DNA fragments with a much larger, unobserved ‘pool’ of sequences having mean coalescence time (Figure 1A). By fitting the model to the data, we infer recombination parameters of both the sample (i.e., the specific set of sequences used for analysis) and its pool; sample construction and collection are discussed in the next section. We obtain the pool’s mutational divergence, , the pool’s recombinational divergence, , the sample’s recombination coverage, , and the mean recombined fragment size, (where and are the synonymous substitution rate and recombination rate, respectively). Together, and estimate the number of synonymous substitutions and recombination events that have occurred per site since coalescence of the pool, and estimates the fraction of the genome that has been replaced by homologous recombination with the pool since coalescence of the given sample. Unlike the synonymous substitutions, which we assume to be largely neutral, recombination events may be due to selective pressure or neutral drift.
The model predicts the conditional probability of a difference at genome site given a difference at site i, which we refer to as the ‘correlation profile’, , where is the distance between sites in basepairs (bp). We take a set of whole genome sequences (WGS) to constitute a sample, and use alignments of protein coding (CDS) regions to measure profiles of synonymous substitutions for all possible sequence pairs, yielding an average profile for the sample. For each pair of sequences in the sample at genomic position i, a binary variable is assigned 1 for a difference or 0 for identity. The correlation profile is given by , where i is restricted to third position sites of codons. While the profiles are computed using gene alignments, recombined fragments may span multiple genes, and the mean fragment size in the coalescent model can take values larger than the length of single genes. Fitting the model to these correlation profiles yields the parameters of homologous recombination described above (see Lin and Kussell, 2019 and Materials and methods for details of model and fitting); flat profiles indicate a lack of recombination, while in the presence of recombination has a monotonic decay with , and declines more rapidly with increasing recombination (Lin and Kussell, 2017). Example profiles and inferred parameters are shown in Figure 1B, C using sets of S. pneumoniae and Campylobacter jejuni WGS; these sequences are part of the larger datasets used in the analysis that follows. Thus, the method infers parameters of both the sample and the pool of sequences with which it has recombined without using or inferring any phylogenetic relationships, offering a key advantage in determining homologous recombination rates across accessory genes.
Homologous recombination rates are higher in the core versus accessory genes for S. pneumoniae
To study recombination across the core and accessory genome of a given bacterial species, we analyze a wide range of samples from the global microbial population. In our model, each ‘sample’ is composed of collections of genomes from nature; they are statistical samples from a larger, unobserved bacterial population or gene pool. By examining a diverse set of samples from a given species, we are able to infer the distribution of recombination parameters for their unobserved gene pools. However, as many genomes are collected from specific geographic regions or individual hospitals (Chaguza et al., 2016; Chewapreecha et al., 2014; Pelton et al., 2007), a sample can be artificially overweighted by a single collection site accounting for many genomes. Therefore, to obtain a more meaningful set of samples for a given species, and ameliorate some of the compositional biases inherent in nonrandom sampling, we use sequence clusters obtained by clustering WGS solely based on sequence similarity using the average linkage algorithm (Wheeler and Kececioglu, 2007) with the pairwise synonymous diversity (ds) as the distance metric. Such approaches are widely used to define well-resolved genotypic clusters within bacterial populations without the inference of phylogenetic relationships (Hanage et al., 2006a). We then analyze single clusters or pairs of clusters to infer the distribution of pool parameters. For each cluster or cluster pair, we infer both the divergences of the unobserved gene pool with which they recombine (i.e., and ), as well as the amount of recombination that has taken place within the set of analyzed sequences (i.e., the cluster or cluster pair) since coalescence (). For single clusters, we fit correlation profiles measured by averaging over all of a given cluster’s sequence pairs, which yields the parameters of the unobserved pool that the cluster interacts with. For cluster pairs, we fit correlation profiles measured by averaging exclusively over sequence pairs consisting of one sequence from each of the two clusters. By analyzing all possible pairs of clusters, we use diverse sets of sequences as our samples, yielding a parameter distribution that accounts for the full range of potential interactions between different sequences, regardless of their distance in sequence space and agnostic to population structure or sampling biases.
To sample the global population of S. pneumoniae, we used the PubMLST database (see Supplementary file 5) which includes WGS of strains from across the world. For each WGS, we aligned all sequencing reads to a reference genome to create an alignment of all CDS regions (see Materials and methods for details). We then measured ds across all genes (i.e., core and accessory) for each strain pair, clustered based on these distances to make a dendrogram, and split the sequences into flat clusters, where no two sequences within a cluster were more distant than the 10th percentile of pairwise distances, which corresponded to (Figure 2A, Materials and methods for details; mean values within and between clusters for core and accessory genes are given in Supplementary file 3). This resulted in 44 major clusters (where a major cluster has >100 strains) which we used as our samples (946 total cluster pairs; Figure 2B shows an example correlation profile from a cluster), and we inferred recombination parameters for the core (defined here as present in >95% of strains) and accessory genes of each of the samples and the unobserved pools with which they recombine (Figure 2C–E).
We found that the core and accessory genes of S. pneumoniae have distinct distributions of and (Figure 2C, D), and the median of is lower in core versus accessory genes, indicating that core genes are less mutationally diverged than accessory genes. Moreover, we observed that is higher for the core genes, implying that core gene pools have experienced a greater number of recombination events per site compared to accessory genes (Figure 2D). We examined this further using the relation , which removes the dependence on coalescence time to yield the relative recombination rates of the unobserved gene pools (from hereon we will append the subscript pool to indicate this, i.e., ). The inferred distribution of shows that for S. pneumoniae, the core genome has a higher relative recombination rate than the accessory genome (Figure 2E), again indicating that core genes recombine more frequently. While the inferred distribution of recombination coverage for the samples initially suggests that the accessory genome may recombine more (Figure 2—figure supplement 1A), this can be reconciled by considering the mean size of the recombined fragments (), which is higher for the accessory genes (Figure 2—figure supplement 1B). Taken together, we find that while accessory genes incorporate larger fragments, the core genes of the sampled genomes experience more recombination events on a per site basis (Figure 2—figure supplement 1C).
We tested the robustness of these results in several ways. As there are various thresholds used to define ‘core’ genes (Livingstone et al., 2018; McInerney et al., 2017; Page et al., 2015; Vernikos et al., 2015), we tested how the parameter distributions shifted with different thresholds and found similar trends (Figure 2—figure supplement 2). To determine whether the difference in the abundance of the core and accessory genes (i.e., how many strains a gene appears in) influences our inference of recombination parameters, for each cluster we artificially ‘thinned’ the core genome by replacing each accessory gene sequence with a randomly chosen core gene sequence. This yielded a thinned core genome where each core gene had the same number of sequence pairs as the accessory genome. We found that this thinned core genome showed similar recombination trends as the actual core genome (Figure 2—figure supplement 3).
Aligning raw reads to a reference genome to build consensus genomes allows for access to a much larger set of WGS, as there are comparably fewer whole genome assemblies for S. pneumoniae, which are typically a requirement for reference-free alignment (Ding et al., 2018; Lin and Kussell, 2019; Page et al., 2015) (as of the time of this analysis NCBI GenBank had 81 complete genome assemblies for S. pneumoniae versus the ~26,000 WGS accessed through PubMLST). However, a potential drawback of aligning reads to a single reference genome is that a subset of accessory genes will be missed. New approaches for aligning to reference graphs appear promising in this regard, yet remain computationally expensive for large numbers of reads (Colquhoun et al., 2021). We therefore sought to address this issue by testing how the parameters changed when more accessory genes were included by building a reference pangenome from all the genome assemblies in NCBI GenBank using Roary (Page et al., 2015) and aligned all the raw reads from PubMLST to this (see Materials and methods). Pangenome analysis suggests that this number of genomes should encompass the majority of genes in the S. pneumoniae pangenome (Donati et al., 2010). While the pangenome alignment included more genes (6200 versus 2018 genes), we found very similar trends for the inferred recombination parameters to those inferred using a single reference alignment (Figure 2—figure supplement 4).
To assess the generality of the trends in recombination parameters between the core and accessory genome, we analyzed 11 additional microbial species (encompassing >100,000 genomes including those already analyzed for S. pneumoniae). We used the same procedure described above to cluster sequences and measure correlation profiles for clusters and cluster pairs, and inferred distributions of recombination rates for the unobserved pools for these species. Pairing the inferred recombination rates of core and accessory genomes for each pool, we examined the effect sizes for each species using Cohen’s d statistic (Cohen, 1988; Nakagawa and Cuthill, 2007) to determine the magnitude and direction of the effect (Figure 3A; Supplementary file 1). We found that, in line with our observations in S. pneumoniae, certain species (e.g., Escherichia coli, Shigella flexneri, Neisseria meningitidis, and C. jejuni) showed markedly higher recombination rates for core genes, whereas others showed slightly higher recombination rates in the core genome. Helicobacter pylori had higher recombination rates in the accessory genome which were statistically significant, yet the magnitude of the effect was small (Cohen’s d = 0.18). Among the nine species for which Cohen’s d was nonzero (within 95% confidence intervals) all but H. pylori showed higher recombination rates (d < 0) in the core versus accessory genome. Similarly, of the 10 species with significantly different median recombination rates in core and accessory genomes (within 95% confidence intervals) (Supplementary file 1), all but H. pylori and N. gonorrhoeae showed higher median recombination rates in the core versus accessory genome. Different metrics thus yield largely consistent results regarding differences in recombination rates between core and accessory genomes across species. Lastly, to understand if core gene pools are less diverged than accessory pools as we had found for S. pneumoniae, we also assessed differences in between the core and accessory genome for these same 12 species (Figure 3B; Supplementary file 2). We found that a majority of species had accessory gene pools which were markedly more diverged than core genes, and the few exceptions (e.g., N. gonorrhoeae and N. meningitidis) had small effect sizes.
Gene frequency as a recombination barrier in the core and accessory genome
One testable hypothesis consistent with our observation that core genes generally undergo more homologous recombination when compared with accessory genes is that the least frequent genes experience less recombination because they have fewer recombination partners. In other words, gene frequency could act as a recombination barrier. We tested this by binning the genes for the microbial species in Figure 3 into four gene frequency classes consistent with prior delineations of the pangenome as follows ( is frequency across strains) (Koonin and Wolf, 2012; Page et al., 2015): ‘cloud’ genes (), ‘shell’ genes (divided into two segments, ), and core genes (). We then inferred the distributions of recombination parameters within each gene class for each of the 12 microbial species (Figure 3—figure supplement 1A, B). We found that certain species displayed trends consistent with a gene frequency barrier, particularly for the recombination coverage (Figure 3—figure supplement 1A). When considering the recombination rates (displayed as empirical cumulative distribution functions here because of disparate rates across and within species), C. jejuni, S. agalactiae, and P. aeruginosa showed trends most consistent with this hypothesis. For some of the exceptions in which cloud genes showed high recombination rates (e.g., N. gonorrhoeae, N. meningitidis, E. coli, and S. flexneri), this could be related to the high gene replacement rate experienced by rare genes such as ‘ORFans’ (Wolf et al., 2016), or diversifying selection experienced by these genes. Overall, we see a modest positive correlation with both recombination coverage and rates when considering the 50th and 25th percentiles of the matched parameter distributions for all species (Figure 3—figure supplement 1C, D).
Discussion
There is appreciable interest in understanding why microbes have pangenomes and how different parts of the genome have evolved (Lobkovsky et al., 2013; McInerney et al., 2017; Vernikos et al., 2015; Wolf et al., 2016). While it is known that homologous recombination plays a key role in shaping the genome (Fraser et al., 2007; González-Torres et al., 2019; Hanage, 2016; Iranzo et al., 2019; Thomas and Nielsen, 2005), large-scale analysis of this aspect of genome evolution has been limited. This was due to both computational bottlenecks and a reliance on phylogenetic methods (Arnold et al., 2018; Ansari and Didelot, 2014; Croucher et al., 2015; Didelot et al., 2010; Didelot and Falush, 2007; Didelot and Wilson, 2015; Marttinen et al., 2012; Mostowy et al., 2017), the latter of which hindered determination of recombination parameters for accessory genes, whose phylogenies are challenging to ascertain. Here, we expanded our non-phylogenetic, computationally efficient mcorr framework to overcome these obstacles, and present a detailed analysis of the variation in recombination rates between core and accessory genes for S. pneumoniae, along with several other microbial species.
We found that despite the high gene replacement rates and sequence variability experienced by some accessory genes (Iranzo et al., 2019; Kuenne et al., 2013; Kuhn et al., 2006; Wolf et al., 2016), core genes experience markedly higher recombination rates than the accessory genes in S. pneumoniae. In 8 out of 12 microbial species, we observe higher recombination rates in core genes relative to accessory genes. In a subset of microbial species, the magnitude of the effect is large (e.g., S. pneumoniae, E. coli, S. flexneri, N. meningitidis, and C. jejuni). While some work has previously shown housekeeping (Vos and Didelot, 2009) and core genes (Lin and Kussell, 2017; Park and Andam, 2020) can experience extensive recombination consistent with our results, our work offers a direct, quantitative comparison between the core and accessory genomes spanning multiple species and >100,000 sampled genomes. In certain species, mechanisms that give rise to higher recombination rates in the core genome are known; for example, some members of the Neisseriaceae (e.g., N. meningitidis and N. gonorrhoeae) and Pasteurellaceae families (e.g., H. influenzae) have DNA uptake sequences and uptake signal sequences accumulated in their core genomes which promote homologous recombination (Frye et al., 2013; Treangen et al., 2008).
We found that in S. pneumoniae, core gene pools had lower mutational divergence relative to accessory gene pools. Furthermore, we found that for the majority of the species we analyzed this was the case, and 9 out of 12 species analyzed had large effect sizes indicating core gene pools have lower mutational divergence (Cohen’s d = 0.92–2.8). Previous studies indicate that the core genome is under strong, purifying selection (Bohlin et al., 2014; Bohlin et al., 2017; den Bakker et al., 2013; McInerney et al., 2017; Moulana et al., 2020), and it is well known that purifying selection reduces mean coalescence times (Charlesworth et al., 1993; Nicolaisen and Desai, 2012). An additional consideration is that some accessory genes are used for niche specialization (Azarian et al., 2020; McInerney et al., 2017; Vernikos et al., 2015); if different alleles of the same accessory gene are adaptive to different niches, this could result in allelic diversity due to balancing selection, which would increase coalescence times of accessory genes. The lower value of in core genes is therefore consistent with shorter coalescence times of core relative to accessory genes. While another possible explanation could involve codon usage biases (Plotkin and Kudla, 2011) causing differences in synonymous substitution rates between core and accessory genes, the selective coefficients for this process are tiny ( Hershberg and Petrov, 2008); for S. pneumoniae (Bobay and Ochman, 2018) and thus effectively neutral over the timescales that we can observe in these data (i.e., coalescence times of S. pneumoniae samples and pools). Accordingly, evidence from long-term microbial evolution experiments has shown that on average the synonymous substitution rate is fairly homogeneous across the core and accessory genomes (Maddamsetti et al., 2015; Maddamsetti et al., 2017). Therefore, we attribute the difference in between core and accessory genes to the difference in their coalescence times, which is consistent with core genes being under stronger purifying selection, and additionally with the possibility that a subset of accessory genes are under diversifying selection. We note that because higher levels of recombination in core genes are expected to reduce the effects of background selection (Charlesworth et al., 1993), the relative reduction in observed in core versus accessory genes of S. pneumoniae and other species likely underestimates the difference in strength of purifying selection acting on these gene classes.
Experiments in numerous species show that homologous recombination rates decay with increasing sequence divergence (Fraser et al., 2007; Majewski, 2001; Majewski et al., 2000; Vulić et al., 1997; Zawadzki et al., 1995), and the role of this recombination barrier in bacterial speciation has been analyzed (Falush et al., 2006; Hanage et al., 2006b). This effect is primarily ascribed to the ubiquity of RecA and mismatch repair systems, both of which are essential for recombination and whose molecular mechanisms depend on sequence similarity. Consistent with these experimental and analytical results, the higher recombination rates and lower pool divergence we observe here for the core genome of S. pneumoniae and several other microbial species may suggest that the increased homology of the core genes reduces the barrier for homologous recombination in this part of the genome. This is also in line with modeling, which has suggested that homologous recombination slows sequence divergence in the core genome by homogenizing this part of the genome, whereas accessory genes do not have the opportunity to be homogenized as they are subject to continual gene gain and loss (Iranzo et al., 2019). Thus, we propose that an evolutionary feedback loop may operate in certain species of bacteria: purifying selection acting on core genes causes higher levels of homology at these loci, this increases their homologous recombination rates, which in turn enables more efficient purifying selection by breaking linkages between genes, effectively minimizing Hill–Robertson interference and hitchhiking effects (Barton, 1995; Barton, 2010; Felsenstein and Yokoyama, 1976) across the core genome. Further investigations are needed to examine whether such an evolutionary mechanism can act to fine-tune recombination rate variation across microbial genomes. Moreover, our work suggests that another recombination barrier for accessory genes may be related to their lower abundance in the population, as we found that the levels of homologous recombination are correlated with gene frequency in a subset of species.
In summary, we have presented a quantitative analysis of the variation in recombination rates between core and accessory genomes. As these two parts of the genome are under different forms of selective pressures, this work contributes broadly to our understanding of how selection and recombination act to shape diversity. The expansion of this approach to more specific gene classes could lead to a better understanding of how selective pressure and homologous recombination interplay to shape niche-adaptive genes such as those involved with drug resistance and antigen variation, for which allele shuffling due to homologous recombination can play a central role in their evolution (Bowler et al., 1994; Maiden, 1998; Seifert, 1996).
Materials and methods
Data and code availability
Request a detailed protocolLists of SRA accession numbers corresponding to the raw reads used to build the multi-sequence alignments analyzed here are included as source data. All SRA files, reference genomes, and complete genome assemblies are available through NCBI. All sequence collections used are listed in Supplementary file 5. For the PubMLST sequence collections, PubMLST was used to identify WGS (by filtering for strains in the ‘Genome Collection’ of each species where the sequence length is at least that of the reference genome), then the raw reads were downloaded from NCBI using their SRA numbers. Accession numbers for reference genomes used for each microbial species are also listed in Supplementary file 5.
All original code has been deposited at GitHub and is publicly available (links provided throughout Methods).
Description of coalescent-based population genetics model with recombination
Request a detailed protocolThe details of the model derivation and parameters are given in the ‘Supplementary Notes’ of Lin and Kussell, 2019. Here, we provide the model equations necessary for the fitting procedure used in this work.
The measured synonymous diversity of the sample, , is a linear combination of the pool diversity, (due to recombination), and the clonal diversity of the sample, , as follows:
where is the recombination coverage in the sample, and is given by the classic population genetics expression for heterozygosity (Wakeley, 2009) (see table below). The predicted form of the correlation profile is
where the functional forms of () and are given in the table below. As described in Lin and Kussell, 2019, we can reexpress Equation 2 in terms of the three parameters , , and , determined by fitting the profiles. From these, the pool parameters are obtained using the following relations: and ; see table below for values of constants and .
Term | Expression | Description |
---|---|---|
or | Mutational divergence of the sample or pool | |
or | Recombinational divergence of the sample or pool | |
Mean fragment size of homologous recombination | ||
Distance (bp) between two loci | ||
The following constants are used below: and . | ||
Synonymous diversity (heterozygosity) for divergence | ||
Recombination coverage of the sample | ||
Probability that the most recent event was a recombination affecting only one locus | ||
Probability that the most recent event was a recombination affecting both loci | ||
Probability that the most recent event at either locus was not a recombination | ||
Probability of a difference at both loci in the pool |
Calculation of correlation profiles
Request a detailed protocolFor a given sample of aligned sequences, we measured the substitution profile, , for each pair of sequences , at each position along each gene , where = 1 for a difference and = 0 for identity. In all calculations below, we only consider positions that are third position sites of codons yielding synonymous substitutions. We computed the pairwise synonymous diversity of each gene as:
where the bar denotes averaging over all sequence pairs and the bracket denotes averaging over all positions i. The joint probability of synonymous substitutions for two sites separated by a distance was calculated for each gene as:
We averaged these over all genes to obtain the sample diversity, , and the joint probability of substitutions at two sites in the sample, , where is the total number of genes. The correlation profile is then given by .
For calculations of within-pool parameters, all possible sequence pairs within a cluster were considered. This was done with the original command-line (CLI) program mcorr-xmfa program in the mcorr package which takes as input a single extended multi-fasta (XMFA) file. For calculations of between-pool parameters using pairs of clusters, only sequence pairs where each sequence was from a different cluster were considered. This was done with the CLI program created for this paper called mcorr-xmfa-2clades, which uses two XMFA files (one from each sequence cluster) as inputs. These can be found in the mcorr GitHub repository: https://github.com/kussell-lab/mcorr.
Fitting of correlation profiles and model selection using Akaike information criterion
Request a detailed protocolThe basic fitting procedure used was previously described in Lin and Kussell, 2019. We used the python package LMFIT (Newville et al., 2014) version 0.9.7 (https://lmfit.github.io/lmfit-py/) to fit to the analytical form given in Equation 2; in this work, we used the least-squares minimization with Trust Region Reflective method instead of the default Levenberg–Marquardt algorithm and increased the maximum number of function evaluations from 104 to 106. As described in the text, as an additional test of goodness of fit, we compared the fit of the data with Equation 2 where all parameters vary freely (which we refer to as the ‘full-recombination model’), to the ‘null-recombination model’ in which we set , which yields , that is, a constant correlation profile which is fit by taking the average over of the measured values, yielding a single parameter, . We perform model selection between the null- and full-recombination models by evaluating the Akaike information criterion (AIC) for each model, then computing the Akaike weight for each model, which can be roughly interpreted as the probability that a given model yields the best prediction of the data (Bois, 2020; Wagenmakers and Farrell, 2004). The AIC was computed using LMFIT using , where is the number of data points, is the number of parameters being varied in the fitting, and is the sum of the squared residuals for each data point . The Akaike weight for model can then be calculated as:
where and denote the AIC values for the null- and full-recombination models, respectively, and . The evidence ratio, which corresponds to the likelihood of one model being favored over the other in terms of minimizing Kullback–Leibler discrepancy (Wagenmakers and Farrell, 2004), can be computed as , where and are the Akaike weights of the full- and null-recombination models, respectively. Fits to correlation profiles where / were not included in the analyses presented in the main text. We also did not include fits to correlation profiles which yielded unphysical parameter values (, ), or extreme values of recombination coverage where parameter fitting becomes less reliable due to too few recombination events () or the over-fitting of a flat profile (). The CLI program mcorrFitCompare was built for this study to fit correlation profiles to both models and can be found in the mcorr GitHub repository: https://github.com/kussell-lab/mcorr.
Clustering using pairwise synonymous diversity
Request a detailed protocolIn this study, we extended the mcorr method to measure the synonymous diversity separately for each sequence pair, denoted by . This is the same as the calculation of described in ‘Calculation of correlation profiles’ without averaging over sequence pairs . The CLI program mcorr-pair measures for all possible sequence pairs from an XMFA file. We also built a CLI program called mcorr-pair-sync, which calculates a subset of all pairwise diversities from a given set of sequences. We primarily relied on the latter program, as it allows for parallelization of jobs on a high-performance computing cluster. The CLI programs mcorr-dm and mcorr-dm-chunks were built to collect outputs from mcorr-pair and mcorr-pair-sync, respectively, and write them to a square distance matrix for use with standard clustering algorithms. Lastly, we built a program (clusterSequences) relying on the python scipy package to cluster sequences using the unweighted pair group method with arithmetic mean or average linkage method with as the distance metric. All necessary code to perform these calculations can be found in the github repository: https://github.com/kussell-lab/mcorr-clustering.
Generation of multisequence alignments for core and accessory genes using WGS
Request a detailed protocolFor all collections of WGS (Supplementary file 5), with the exception for H. pylori (where the multisequence alignment was already assembled), we used reference-guided alignment to build consensus genomes from raw reads for each sequence, then extracted the CDS regions of each gene to make extended multi-fasta (XMFA) files. For the collections from the PubMLST database, we identified WGS by filtering for all sequences in the ‘Genome Collection’ for a given organism which had lengths greater than or equal to the length of the reference genome. We then exported tables which included the corresponding SRA numbers for each strain, and downloaded the reads from NCBI using the corresponding SRA. For the other sequence collections used, we used their associated NCBI Bioproject ID to obtain the SRA numbers for each strain, and downloaded reads in the same way. Reads were mapped against a reference genome (listed in Supplementary file 5 for each microbial species) using SMALT (version 0.7.6; https://www.sanger.ac.uk/tool/smalt-0/), and consensus genomes were created using SAMtools mpileup (Li et al., 2009). We then extracted the alignments of CDS regions from these consensus genomes using genomic coordinates provided from the general feature format (GFF) file of the reference genome to create an XMFA file of CDS regions for each gene. We filtered out any gene alignments where the gene sequence was gaps. We then measured the percentage of the entire strain collection which had each gene (based on presence/absence of a gene sequence) to determine if a gene should be considered core or accessory. Code to perform this analysis is provided in the GitHub repository: https://github.com/kussell-lab/ReferenceAlignmentGenerator.
Generation of multisequence alignment to pangenome reference genome for S. pneumoniae
Request a detailed protocolWe downloaded all complete genome assemblies from NCBI for S. pneumoniae as of December 18, 2020 (81 genomes), and used Prokka (Seemann, 2014) to reannotate the assemblies and generate general feature format version 3 (GFF3) files for use with Roary (Page et al., 2015). Roary was then used to generate a multi-FASTA for each gene CDS region in the pangenome (which we refer to as the ‘pangenome reference’). We aligned reads to this pangenome reference in the same manner described in ‘Generation of multisequence alignments for core and accessory genes using WGS’, then collected each gene alignment to create an XMFA file for the pangenome. We split the XMFA into files for the core and accessory genome by measuring the percentage of strains which had each gene. In this case, because alignment quality was not as high as when we aligned reads to a single reference genome (as described in the main text), we counted a gene as present if there was only a partially aligned sequence for the gene, and absent if there was no aligned sequence. Code to perform this analysis can be found in the following GitHub repository: https://github.com/kussell-lab/PangenomeAlignmentGenerator.
Generation of artificially ‘thinned’ core genome alignment for S. pneumoniae
Request a detailed protocolTo create the artificially ‘thinned’ core genome alignment described in the main text, we took the core and accessory genome alignments for S. pneumoniae generated as described in ‘Generation of multisequence alignments for core and accessory genes using WGS’, and we replaced each of the accessory gene alignments for each sequence cluster with randomly selected core gene alignments from the same cluster until all accessory gene alignments were replaced. A CLI program called ReduceCoreGenome is used to generate these thinned core genome alignments (https://github.com/kussell-lab/ReferenceAlignmentGenerator).
Statistical analysis
Request a detailed protocolFor the 95% bootstrap CIs appearing in Figure 1C, the same procedure was used as in Lin and Kussell, 2019. In brief, bootstrap replicates of the set of genes were created by resampling the list of all genes in the genome with replacement, then recalculating , , and for each replicate. We then performed the same fitting procedure which was done on the actual dataset to infer recombination parameters on each of the bootstrap replicates to generate 95% confidence intervals. The resampling was done 1000 times.
For all other 95% bootstrap CIs, the procedure used for bootstrapping can be found in the figure legends of the corresponding figures. The process of model selection using AIC is described in ‘Fitting of correlation profiles and model selection using Akaike information criterion’. The number of major clusters and sequences used for each microbial species is given in Supplementary file 3.
Data availability
Lists of SRA accession numbers corresponding to the raw reads used to build the multisequence alignments analyzed in this manuscript are included as Figure 2—source data 1 and Figure 3—source data 1. All SRA files, reference genomes, and complete genome assemblies are available through NCBI. All sequence collections used are listed in Supplementary file 5. For the PubMLST sequence collections, PubMLST was used to identify whole genome sequences (by filtering for strains in the 'Genome Collection' of each species where the sequence length is at least that of the reference genome), then the raw reads were downloaded from NCBI using their SRA numbers. Accession numbers for reference genomes used for each microbial species are also listed in Supplementary file 5. All original code has been deposited at GitHub and is publicly available at https://github.com/kussell-lab (copies archived at swh:1:rev:4adea90557f1e592123e073b46a859d879143a2a, swh:1:rev:1d34860183a5dd55332e08edf9503c4ce6daebdf, swh:1:rev:49bf399a9d1ceae722c0c8c4aeb8376f2644d40f, and swh:1:rev:2228e8ee2df7339d28ef8b9107381d2e4767ac11).
-
Dryad Digital RepositoryData from: Rapid evolution of distinct Helicobacter pylori subpopulations in the Americas.https://doi.org/10.5061/dryad.8qp4n
References
-
Horizontal gene transfer and adaptive evolution in bacteriaNature Reviews. Microbiology 20:206–218.https://doi.org/10.1038/s41579-021-00650-4
-
BookStructure and Dynamics of Bacterial Populations: Pangenome EcologyIn: Tettelin H, Medini D, editors. The Pangenome: Diversity, Dynamics and Evolution of Genomes. Springer International Publishing. pp. 115–128.https://doi.org/10.1007/978-3-030-38281-0
-
Mutation and the evolution of recombinationPhilosophical Transactions of the Royal Society of London. Series B, Biological Sciences 365:1281–1294.https://doi.org/10.1098/rstb.2009.0320
-
Factors driving effective population size and pan-genome evolution in bacteriaBMC Evolutionary Biology 18:1–12.https://doi.org/10.1186/s12862-018-1272-4
-
Dense genomic sampling identifies highways of pneumococcal recombinationNature Genetics 46:305–309.https://doi.org/10.1038/ng.2895
-
BookStatistical Power Analysis for the Behavioral SciencesLawrence Erlbaum Associates.
-
Does a tree-like phylogeny only exist at the tips in the prokaryotes?Proceedings of the Royal Society B: Biological Sciences 271:2551–2558.https://doi.org/10.1098/rspb.2004.2864
-
Population genomics of post-vaccine changes in pneumococcal epidemiologyNature Genetics 45:656–663.https://doi.org/10.1038/ng.2625
-
ClonalFrameML: efficient inference of recombination in whole bacterial genomesPLOS Computational Biology 11:e1004041.https://doi.org/10.1371/journal.pcbi.1004041
-
Within-host evolution of bacterial pathogensNature Reviews. Microbiology 14:150–162.https://doi.org/10.1038/nrmicro.2015.13
-
panX: pan-genome analysis and explorationNucleic Acids Research 46:e5.https://doi.org/10.1093/nar/gkx977
-
Mismatch induced speciation in Salmonella: model and dataPhilosophical Transactions of the Royal Society of London. Series B, Biological Sciences 361:2045–2053.https://doi.org/10.1098/rstb.2006.1925
-
Dialects of the DNA uptake sequence in NeisseriaceaePLOS Genetics 9:e1003458.https://doi.org/10.1371/journal.pgen.1003458
-
Sequences, sequence clusters and bacterial speciesPhilosophical Transactions of the Royal Society of London. Series B, Biological Sciences 361:1917–1927.https://doi.org/10.1098/rstb.2006.1917
-
Modelling bacterial speciationPhilosophical Transactions of the Royal Society of London. Series B, Biological Sciences 361:2039–2044.https://doi.org/10.1098/rstb.2006.1926
-
Not so simple after all: Bacteria, their population genetics, and recombinationCold Spring Harbor Perspectives in Biology 8:a018069.https://doi.org/10.1101/cshperspect.a018069
-
Selection on codon biasAnnual Review of Genetics 42:287–299.https://doi.org/10.1146/annurev.genet.42.110807.091442
-
Evolution of microbes and viruses: a paradigm shift in evolutionary biology?Frontiers in Cellular and Infection Microbiology 2:119.https://doi.org/10.3389/fcimb.2012.00119
-
The sequence alignment/map format and samtoolsBioinformatics 25:2078–2079.https://doi.org/10.1093/bioinformatics/btp352
-
Gene frequency distributions reject a neutral model of genome evolutionGenome Biology and Evolution 5:233–242.https://doi.org/10.1093/gbe/evt002
-
Core genes evolve rapidly in the long-term evolution experiment with Escherichia coliGenome Biology and Evolution 9:1072–1083.https://doi.org/10.1093/gbe/evx064
-
Horizontal genetic exchange, evolution, and spread of antibiotic resistance in bacteriaClinical Infectious Diseases 27:S12–S20.https://doi.org/10.1086/514917
-
Barriers to genetic exchange between bacterial species: Streptococcus pneumoniae transformationJournal of Bacteriology 182:1016–1023.https://doi.org/10.1128/JB.182.4.1016-1023.2000
-
Sexual isolation in bacteriaFEMS Microbiology Letters 199:161–169.https://doi.org/10.1111/j.1574-6968.2001.tb10668.x
-
Detection of recombination events in bacterial genomes from large population samplesNucleic Acids Research 40:1–12.https://doi.org/10.1093/nar/gkr928
-
Why prokaryotes have pangenomesNature Microbiology 2:e17040.https://doi.org/10.1038/nmicrobiol.2017.40
-
Efficient inference of recent and ancestral recombination within bacterial populationsMolecular Biology and Evolution 34:1167–1182.https://doi.org/10.1093/molbev/msx066
-
Effect size, confidence interval and statistical significance: A practical guide for biologistsBiological Reviews of the Cambridge Philosophical Society 82:591–605.https://doi.org/10.1111/j.1469-185X.2007.00027.x
-
Distortions in genealogies due to purifying selectionMolecular Biology and Evolution 29:3589–3600.https://doi.org/10.1093/molbev/mss170
-
Horizontal persistence and the complexity hypothesisBiology & Philosophy 35:1–22.https://doi.org/10.1007/s10539-019-9727-6
-
Roary: rapid large-scale prokaryote pan genome analysisBioinformatics 31:3691–3693.https://doi.org/10.1093/bioinformatics/btv421
-
Synonymous but not the same: the causes and consequences of codon biasNature Reviews Genetics 12:32–42.https://doi.org/10.1038/nrg2899
-
Prokka: rapid prokaryotic genome annotationBioinformatics 30:2068–2069.https://doi.org/10.1093/bioinformatics/btu153
-
Questions about gonococcal pilus phase- and antigenic variationMolecular Microbiology 21:433–440.https://doi.org/10.1111/j.1365-2958.1996.tb02552.x
-
The population genetics of bacteriaProceedings of the Royal Society of London. Series B 245:37–41.https://doi.org/10.1098/rspb.1991.0085
-
The relative contributions of recombination and point mutation to the diversification of bacterial clonesCurrent Opinion in Microbiology 4:602–606.https://doi.org/10.1016/s1369-5274(00)00257-5
-
Mechanisms of, and barriers to, horizontal gene transfer between bacteriaNature Reviews. Microbiology 3:711–721.https://doi.org/10.1038/nrmicro1234
-
Phase and antigenic variation in bacteriaClinical Microbiology Reviews 17:581–611.https://doi.org/10.1128/CMR.17.3.581-611.2004
-
Ten years of pan-genome analysesCurrent Opinion in Microbiology 23:148–154.https://doi.org/10.1016/j.mib.2014.11.016
-
AIC model selection using Akaike weightsPsychonomic Bulletin & Review 11:192–196.https://doi.org/10.3758/bf03206482
-
Multiple alignment by aligning alignmentsBioinformatics 23:i559–i568.https://doi.org/10.1093/bioinformatics/btm226
-
Two fundamentally different classes of microbial genesNature Microbiology 2:e16208.https://doi.org/10.1038/nmicrobiol.2016.208
Article and author information
Author details
Funding
National Institutes of Health (R01-GM097356)
- Edo Kussell
Simons Foundation (Simons Foundation Awardee of the Life Sciences Research Foundation)
- Asher Preska Steinberg
The funders had no role in study design, data collection, and interpretation, or the decision to submit the work for publication.
Acknowledgements
This work was supported in part by NIH grant R01-GM-097356. Asher Preska Steinberg is a Simons Foundation Awardee of the Life Sciences Research Foundation. We gratefully acknowledge Nobuto Takeuchi for useful discussions and feedback on the manuscript; the New York University (NYU) high-performance computing cluster for resources, and its staff for technical support.
Copyright
© 2022, Preska Steinberg et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
-
- 3,762
- views
-
- 531
- downloads
-
- 19
- citations
Views, downloads and citations are aggregated across all versions of this paper published by eLife.
Download links
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)
Further reading
-
- Genetics and Genomics
- Microbiology and Infectious Disease
The sustained success of Mycobacterium tuberculosis as a pathogen arises from its ability to persist within macrophages for extended periods and its limited responsiveness to antibiotics. Furthermore, the high incidence of resistance to the few available antituberculosis drugs is a significant concern, especially since the driving forces of the emergence of drug resistance are not clear. Drug-resistant strains of Mycobacterium tuberculosis can emerge through de novo mutations, however, mycobacterial mutation rates are low. To unravel the effects of antibiotic pressure on genome stability, we determined the genetic variability, phenotypic tolerance, DNA repair system activation, and dNTP pool upon treatment with current antibiotics using Mycobacterium smegmatis. Whole-genome sequencing revealed no significant increase in mutation rates after prolonged exposure to first-line antibiotics. However, the phenotypic fluctuation assay indicated rapid adaptation to antibiotics mediated by non-genetic factors. The upregulation of DNA repair genes, measured using qPCR, suggests that genomic integrity may be maintained through the activation of specific DNA repair pathways. Our results, indicating that antibiotic exposure does not result in de novo adaptive mutagenesis under laboratory conditions, do not lend support to the model suggesting antibiotic resistance development through drug pressure-induced microevolution.
-
- Microbiology and Infectious Disease
Bacillus velezensis is a species of Bacillus that has been widely investigated because of its broad-spectrum antimicrobial activity. However, most studies on B. velezensis have focused on the biocontrol of plant diseases, with few reports on antagonizing Salmonella Typhimurium infections. In this investigation, it was discovered that B. velezensis HBXN2020, which was isolated from healthy black pigs, possessed strong anti-stress and broad-spectrum antibacterial activity. Importantly, B. velezensis HBXN2020 did not cause any adverse side effects in mice when administered at various doses (1×107, 1×108, and 1×109 CFU) for 14 days. Supplementing B. velezensis HBXN2020 spores, either as a curative or preventive measure, dramatically reduced the levels of S. Typhimurium ATCC14028 in the mice’s feces, ileum, cecum, and colon, as well as the disease activity index (DAI), in a model of infection caused by this pathogen in mice. Additionally, supplementing B. velezensis HBXN2020 spores significantly regulated cytokine levels (Tnfa, Il1b, Il6, and Il10) and maintained the expression of tight junction proteins and mucin protein. Most importantly, adding B. velezensis HBXN2020 spores to the colonic microbiota improved its stability and increased the amount of beneficial bacteria (Lactobacillus and Akkermansia). All together, B. velezensis HBXN2020 can improve intestinal microbiota stability and barrier integrity and reduce inflammation to help treat infection by S. Typhimurium.