Significance
Gut bacteria exhibit extensive genetic diversity that influences microbiome function and host health. The evolutionary forces shaping this diversity—homologous recombination and horizontal gene transfer (HGT)—remain poorly understood across different species. Analyzing over a hundred prevalent gut bacteria from the Unified Human Gut Genome collection, we found that gene content divergence aligns with core genome divergence. Strikingly, linkage between accessory and core genes decays at similar rates in many species—far more slowly than HGT-centric models would predict. Rapid decoupling is most pronounced for annotated mobile elements, while metabolic genes transfer more slowly. Our findings highlight significant variability in recombination and HGT patterns across species, underscoring the need to consider gene- and species-level heterogeneity in ecological models and association studies.
Keywords: homologous recombination, horizontal gene transfer, evolution, bacteria, genetic variation
Abstract
Understanding the forces shaping genomic diversity within bacterial species is essential for interpreting microbiome evolution, ecology, and host associations. Here, we analyze over one hundred prevalent gut bacterial species using the Unified Human Gut Genome collection to characterize patterns of intraspecific genomic variability. Gene content divergence scales predictably with divergence in core genome single nucleotide polymorphisms (SNPs), though there is substantial variability in evolutionary dynamics across species. Overall, accessory genes exhibit consistently faster linkage decay compared to core SNPs, highlighting the fluidity of functional repertoires within species boundaries. This signal is strongest for mobile genetic elements, which show minimal linkage to core genome SNPs. Together, our findings reveal species-specific recombination regimes in the gut microbiome, underscoring the importance of accounting for horizontal gene transfer and genome plasticity in microbiome-wide association studies and evolutionary models.
The human gut microbiome is a highly diverse microbial community composed of Bacteria, Archaea, Eukaryotes, and viruses, which plays an essential role in health and disease (1–3). Traditional, culture-based experimentation (4), expanding reference databases (5–8), and improved metagenomic tools (9–11) have recently enabled strain-resolved analysis of this important community and have revealed enormous intraspecific diversity within and across human hosts (12–14). In microbes, single nucleotide polymorphisms (SNPs) and larger differences in gene content can substantially affect physiology (15), including driving differences in antimicrobial resistance (16–18), pathogenicity (19), and drug metabolism (20). As a result, understanding the causes and consequences of this strain-level variation is critical in ecological and epidemiological studies of microbiomes.
One of the primary mechanisms affecting intraspecific diversity in bacteria is recombination, the movement of genetic material outside of transmission by linear descent (21, 22). Recombination can be conceptually divided into homologous and nonhomologous processes. Homologous recombination involves the replacement of a genomic region with a highly similar sequence from a related strain or species (23, 24). This process, therefore, disrupts the strong linkage of alleles that occurs in linear descent and introduces variants into different genomic backgrounds (25). Since homologous recombination requires highly similar sequences, it preferentially acts on the shared, core genome of a species (26–29). Nonhomologous recombination, on the other hand, can lead to transmission of accessory genes between strains (22). This horizontal gene transfer (HGT) is often mediated by mobile genetic elements (MGEs) such as plasmids and viruses (30). In the gut microbiome, where microbial species coexist in dense and diverse communities, HGT may frequently and rapidly disseminate functional traits such as antibiotic resistance (31), metabolic capabilities (32, 33), and virulence factors (34, 35). Homologous recombination and HGT rates can vary across species and genomic regions due to eco-evolutionary selective pressures and the molecular mechanisms facilitating them (26, 36, 37). Together, these processes affect both the core and accessory genome, leading to rapid allele turnover (38, 39), phylogenetic signal erosion (40, 41), and the decoupling of gene content and SNPs (25, 42). While these processes have been studied in a few species of bacteria, specifically those with large numbers of cultured strains (28, 43), how they vary across species and shape populations of less-studied bacteria remains poorly understood.
Here, we explore patterns of intraspecific genomic variability in a large collection of reference genomes from bacterial species found in the human gut, the Unified Human Gut Genome (UHGG) collection (6). We show that gene content divergence steadily increases with core genome divergence across more than a hundred of the best-represented gut bacterial species in the database. We estimate the decay of allelic linkage at increasing genomic distances both for SNP–SNP and accessory gene–SNP pairs, and use parameters of these curves to understand both recombination rates and population structure. We observe high variability of these parameters across species of gut bacteria. In some species, linkage decays more rapidly for accessory genes than for core genome SNPs, consistent with accessory genes being frequently exchanged independently of core genome ancestry. We confirm this intuition by showing that across all species, MGEs have almost no linkage to the core genome. However, in many species, the two curves are nearly indistinguishable, suggesting accessory gene content is far more tightly coupled to core genome background than one would expect. Together, these results reveal that recombination and HGT shape species-specific patterns of genomic variation in the gut microbiome, with important implications for microbial evolution, ecology, and host-associated studies.
Results
Expanded Reference Genome Collections Capture Strain-Level Variation in Both the Core and Accessory Genomes.
Of the 4,744 species represented in the UHGG, 121 had at least a hundred high-quality genomes (>95% completeness; <5% contamination; median N50 of 49,410, IQR: 37,283 to 68,972) and were included in our analysis (Fig. 1D and Datasets S1 and S2). For all species, we dereplicated closely related strains using the complement of the average nucleotide identity (ANI): (1 – ANI)—which we refer to here as the ANI-dissimilarity and use as a proxy for evolutionary divergence between pairs of genomes. After dereplication at a threshold of ANI-dissimilarity < 0.001, we retained 42,933 representative genomes, a median of 207 per species (IQR: 142 to 400) and about 15% of all UHGG genomes.
Fig. 1.

Evolution of gene repertoire of gut bacteria over time. (A–C). Association between ANI-dissimilarity and gene content dissimilarity across pairs of genomes for three different species: (A) Sutterella wadsworthensis (n = 205 genomes); (B) Escherichia coli (n = 2,259 genomes); (C) Odoribacter splanchnicus (n = 333 genomes). The difference in gene content is calculated using binary distance for the presence/absence gene matrix. 1–ANI is calculated using skani (Materials and Methods). We performed a linear fit (dashed line) on each plot using pairs within (0 to 0.03) of 1–ANI distance, as 0.03 is considered a species boundary. Marginal histograms indicate the distribution of points along each axis. (D) A phylogenetic tree of all species is included in our study. The color of the leaves represents phyla, and the size of the circles represents the number of genomes included in the analysis for a given species. (E) Distribution of slopes for linear fits across the entire collection of species (n = 121). Dashed lines indicate values for the plots shown in (A–C). (F) Distributions of slopes for major taxonomic families in our dataset. Only families with significantly different slopes (P-value < 0.05) from the rest are shown.
The gene content of the UHGG collection is cataloged in the MIDAS reference database and has been previously clustered for each species at an 80% ANI clustering threshold (11). Here, we refer to these operational gene families as “genes” for simplicity. Using this resource, we estimated that reference genomes had a median of 2,103 gene clusters (IQR: 1,819 to 2,495)—representing distinct MIDAS-defined gene families per genome. Across all species, a median of 431 of these genes were found in >10% and <90% of genomes, a set which we refer to as accessory genes.
Analogous to ANI-dissimilarity, we calculated the pairwise gene content dissimilarity between genomes as the normalized Hamming distance (“binary distance”). We found a high degree of gene content variation across species, with pairwise dissimilarities of 0.29 (median of per-species medians, IQR: 0.24 to 0.33) comparing to a moderate ANI variation of 0.017 (median of per-species medians, IQR: 0.012 to 0.023). The size and diversity of this curated database of species, strain genomes, and accessory genes present an opportunity to study the evolutionary forces leading to strain-level functional variation in the human gut.
Divergence in Gene Content Increases with Divergence in Core-Genome SNPs.
We sought to understand how the core genome and accessory genome coevolve. Comparing the accessory gene dissimilarity and SNP-dissimilarity (Fig. 1 A–C), we observed a positive, linear relationship at <3% ANI-dissimilarity, although the slope and intercept of this linear relationship varied between species. For all species, the intercept was positive, indicating that even very closely related strains have significant gene content variation. The slope of this curve, while also universally positive (SI Appendix, Fig. S1), varied widely across species (Fig. 1E).
For some species, such as Sutterella wadsworthensis_A (Fig. 1A), the slope of this relationship was near 0, suggesting little concordance between SNP and gene content dissimilarity. For other species, like Odoribacter splanchnicus (Fig. 1C), the slope was much larger. Escherichia coli, as previously described (43), is close to the median of this distribution (median slope = 5.30, E. coli slope = 4.98). Species in the family Bacteroidaceae (including the genus Bacteroides) and Rikenellaceae (including the genus Alistipes) have significantly higher genome plasticity (Wilcoxon test P-value = 0.03 and 0.04 respectively), i.e., can rapidly gain and lose genes, while most of the bacteria belonging to the Lachnospiraceae have lower gene acquisition rates (Wilcoxon test P-value = 0.001; Fig. 1F and SI Appendix, Fig. S1). However, even within bacterial families, there were considerable variations in the parameters of this relationship, signifying that ecological lifestyles may play a more prominent role in shaping the evolution of each species than taxonomy. There was a significant positive correlation between slope and genome size (Spearman correlation = 0.32, P-value < 0.001). This may reflect a shared common cause, as theoretical predictions suggest that for bacteria living in fluctuating environments, larger genomes and higher rates of HGT are both adaptive (44).
Core and Accessory Genomes and the Different Evolutionary Forces Shaping them.
We next sought to determine whether SNPs in the core genome could be linked to the accessory genes in every species. To do this, we aligned individual strain genomes to a single representative genome for each species and identified core genome regions and biallelic SNPs (Materials and Methods). We then calculated the pairwise SNP–SNP and accessory gene–SNP linkage (r2) as well as an estimate of the linear, genomic distance between loci. Next, we binned all pairwise LD estimates into specified distance ranges and calculated the 90th percentile of the pairs in each bin. We use the 90th percentile (LD90) following previous work (45, 46), as it yields stable decay curves ranging from 1.0 to 0.0 for most species. Note that due to the high N50 value across our genomes, we have a very robust estimate of LD90 at longer distances (Dataset S3). Plotting the LD90 against genomic distance shows that linkage is reduced at longer distances (Fig. 2 and SI Appendix, Fig. S2).
Fig. 2.

The linkage between SNP–SNP and accessory gene–SNP pairs. (A–C) Linkage decay curves for different gut bacterial species. The X-axis corresponds to the base pair distance on a chromosome between pairs of SNPs/accessory gene–SNPs (log-scaled and binned into 50 bins). The Y-axis shows each bin’s LD90 measure (90th quantile of correlation between all SNP–SNP or gene–SNP pairs). The line shows the exponential decay fit of each curve (Materials and Methods). Shade indicates a 95% CI for the fitted curve. This fit was used to infer two parameters: LDmax, the value of LD90 at the maximal distance, and d1/2, the genomic distance at which linkage decays halfway. (D) Correlation between d1/2 for SNP–SNP and accessory gene–SNP linkage decay curves for different species. (E) Correlation between LDmax for SNP–SNP and accessory gene–SNP linkage decay curves for different species. Each point in (D and E) corresponds to a different species, the color of the points represents their taxonomic families, and the legend shows the Spearman correlation coefficient.
Comparing linkage decays for accessory gene–SNP and SNP–SNP pairs across bacteria reveals that different species exhibit distinct characteristic patterns: i) Accessory gene–SNP linkage overall was significantly lower than SNP–SNP linkage within the core genome (Fig. 2A); ii) Accessory gene–SNP linkage was much weaker than SNP–SNP linkage at shorter distances but remained consistent at longer distances (Fig. 2B); iii) Accessory gene–SNP linkage was the same as SNP–SNP linkage in the core genome (Fig. 2C). These patterns reflect underlying differences in population structure and the balance between HGT and homologous recombination: Pattern i) indicates structured populations (high long-distance SNP–SNP LD) with cross-subpopulation HGT (low gene–SNP LD), though similar decay rates suggest comparable rates of HGT and recombination within subpopulations. Pattern ii) suggests minimal population structure with HGT occurring very rapidly relative to both coalescence and recombination. Pattern iii) indicates a very low population structure, perhaps the same mechanism driving the two LD decays, with similar rates of HGT and homologous recombination.
We fit parameterized curves to these linkage-decay data (Materials and Methods) and extracted two main statistics: d1/2—the genomic distance at which correlation between pairs drops halfway—and LDmax—the baseline level of correlation between two pairs (i.e., correlation for very distant pairs, Fig. 2A). For core genome SNP–SNP pairs, d1/2 reflects the rate of homologous recombination: Highly recombinogenic species are expected to have low d1/2 (47). LDmax, by contrast, reflects population structure, which disrupts genetic transmission between lineages. HGT can also affect accessory gene–SNP pairs, disrupting the linkage between transferred genes and core genome SNPs. We confirmed this intuition by comparing our fitted parameters to recombination rates reported in a previous study of gut bacteria (39). The SNP–SNP d1/2 had a significant negative correlation with a recombination rate (Spearman rho = –0.48, P-value = 0.002, SI Appendix, Fig. S3A), while the accessory gene–SNP d1/2 was less significantly correlated with it (Spearman rho = –0.35, P-value = 0.02, SI Appendix, Fig. S3B). Direct comparison of SNP–SNP and gene–SNP curves via confidence interval (CI) overlap (Dataset S2 and SI Appendix, Fig. S2) reveals that many species have statistically significant differences in d1/2 and LDmax between the two curve types (i.e., nonoverlapping CIs). Thus, by comparing the two curves, we can begin to disentangle these two processes shaping bacterial genomes.
Overall, there was remarkable variation in the d1/2 parameter for both SNP–SNP and accessory gene–SNP curves. Across gut bacteria, it ranged from 10 bp to 10 Kbp, with no clear trend related to the phylogenetic relationships of the species (Fig. 2D). Interestingly, d1/2 for both SNP–SNP and accessory gene–SNP curves were strongly correlated (Spearman rho = 0.73, P-value < 0.001). There was a slight discrepancy between d1/2 at shorter scales, which could be attributed to the weaker statistical power for the accessory Gene–SNP curve, as we had fewer instances of gene–SNP pairs, making it more challenging to identify SNPs close to gene ends. Similarly, LDmax for both curves was also strongly correlated across species (Spearman rho = 0.90, P-value < 0.001, Fig. 2E). This supports the hypothesis that species population structure impacts the transmission of both core genome SNPs and accessory gene content.
Although it may be expected that species with elevated LDmax (Fig. 2) would exhibit distinct clouds in their pairwise divergence distributions (Fig. 1), this pattern is not consistently observed. Divergence clouds generally appear only when there are two or three deep clades, as seen in Coprococcus sp900066115 and Ruminococcus bromii (SI Appendix, Figs. S1 and S2). In contrast, a greater number of clusters leads to overlapping peaks that obscure clear distinctions, as observed in E. coli and Alistipes onderdonkii. Furthermore, population structure can result from numerous shallow lineages with private polymorphisms, such as in Parasutterella sp000980495, or divergence clouds may reflect small subsets of distantly related genomes that have minimal impact on overall LD, as in Coprococcus eutactus_A.
Patterns in Core and Accessory Genome Linkage Across Species.
While the observed diversity in d1/2 and LDmax appears to indicate variation in both homologous recombination and HGT, we sought to better understand their relationships to a variety of other features of the underlying microbial species. We therefore calculated across all 121 species in our analysis all pairwise correlations among a set of covariates, including parameters of the linkage decay curves, physiological traits, technical features of the available dataset, and genomic characteristics (Fig. 3A). As previously noted, accessory gene–SNP and SNP–SNP linkage decay curve parameters were strongly correlated (adjusted P-value < 0.001). LD curve parameters were also highly negatively correlated with the estimated average genome recombined fraction (i.e., positively correlated with the clonal fraction of the genome), which is consistent with our assumption that these statistics reflect recombination rates (adjusted P-value < 0.001). Notably, larger genomes (high number of genes) exhibited stronger linkage across both core and accessory genomes, and a smaller fraction of recombined genomes (adjusted P-value = 0.02). This is in line with a previous observation that smaller genomes tend to have higher gene turnover (43). Higher GC content was associated with lower d1/2 and LDmax but a higher fraction of recombined genome, consistent with the previously observed positive association between recombination rate and GC content (48, 49). In addition, species represented by more strain genomes in the reference database and distributed across all continents exhibited lower d1/2 and LDmax, perhaps reflecting a higher prevalence and more opportunities for genetic exchange.
Fig. 3.

Global trends in parameters. (A) Heatmap of parameters’ correlations across the entire species set. We report five parameters from LD curves: SNP–SNP and accessory gene–SNP d1/2 and LDmax, described before, as well as gene–SNP LD0 – the value of LD90 at the zero distance; consistency of core genome is measured as the average pairwise agreement between gene order of all genomes to the reference; # accessory—the average number of accessory genes per genome of a given species, # genes—the average number of genes per genome of a given species; divergence intercept, slope—intercept and slope from the lines fitted in Fig. 1; # SNPs—total number of de novo core genome SNPs in a given species; GC content—average GC content of genomes of the species; # genomes—number of genomes of a species included in the analysis; # continents—from how many different continents these genomes originated from according to UHGG metadata; accessory MGE fraction—average fraction of accessory genes that were annotated as a part of MGE across all genomes of the species; consistency of core genome—average relative number of breaks in gene order between the representative genome of each species and every other strain genome; recombined fraction—average fraction of recombined genome for a given species. We used Benjamini–Hochberg correction to adjust correlation test P-values. (B) Boxplot of d1/2 for SNP–SNP linkage decay curves for mucosal (n = 40) and luminal (n = 37) species. (C) Phylogenetic trends of some of these parameters. The species tree is colored by phylum. Heatmaps show the following parameters: d1/2 – SNP–SNP d1/2 [parameter representative of the LD curve parameters cluster on the heatmap in panel (A)]; intercept – divergence intercept from fits in Fig. 1 [representative of the second cluster in panel (A)]; MGE—accessory MGE fraction; LD type—a categorical variable that indicates whether there is a significant difference in SNP–SNP accessory gene–SNP LD.
We also estimated the fraction of accessory genes that are annotated as MGE by geNomad (50) and MobileElementFinder (51) (Materials and Methods). The MGE fraction was not significantly correlated with any parameters describing genomic diversity (i.e., LD curve parameters, Gene–ANI parameters, Fig. 3A). Additionally, we developed a measure of core genome gene order consistency to account for the fact that there might be some reshuffling across the bacterial chromosome between strain genomes of the same species (Materials and Methods), which could significantly affect our estimation of distances between SNPs and genes. Note that the standard practice in population genetics is to assign SNP coordinates according to their coordinates in the reference genome. However, it remains to be determined to what extent reference genomes are “representative” of gene order in strains of that species overall. In our collection, most species had highly consistent core genome order (mean consistency = 0.87 ± 0.03, where 1 indicates perfect synteny and 0 indicates completely scrambled gene order), and there was a slight positive correlation between this measure and the genomes’ clonal fraction.
We then looked for associations with bacterial lifestyle. We used phenotypic data available in the BacDive database (52) as well as data from a previous study of luminal versus mucosal gut bacteria (53) to annotate species in our collection (Dataset S4) for binary lifestyle characteristics and tested whether any of these features were associated with any of the observed statistics. We found no significant association of LD curve parameters to motile vs. nonmotile (n = 17 and 81 species, respectively), or sporulating vs. nonsporulating (14 and 84, respectively) species. However, there was a significant difference in LD for gram-negative vs. gram-positive (n = 41, n = 58 species (Wilcoxon rank-sum test, P-value < 0.001) and luminal vs. mucosal-associated (n = 37 and 40, respectively) species (Wilcoxon rank-sum test, P-value < 0.001, Fig. 3B). These two phenotypic variables are highly correlated (Chi-Square test P-value < 0.001), with a majority of luminal bacteria being gram-negative and mucosal being gram-positive. The higher d1/2 and lower recombination rates in gram-negative bacteria could be attributed to the fact that they have two membranes and a more complicated process of recombination/HGT (54). In contrast, many gram-positive species are naturally competent (54, 55), and being in proximity in mucosal biofilm gives them more opportunities to recombine (56).
Next, we considered the taxonomic distribution of traits. Overall, there were no strong signals across the tree, with closely related species having very diverse parameters (e.g., Enterococcus_B faecium and Enterococcus faecalis). A notable exception was the strong separation between two major orders within Firmicutes_A phylum: Lachnospirales and Oscillospirales. While bacteria that belong to Lachnospirales had consistently lower d1/2 and almost no linkage even at close distances between accessory genes and core-genome SNPs, Oscillospirales had noticeably higher linkage and no difference between SNP–SNP and gene–SNP linkage curves (Wilcoxon rank-sum test, P-value < 0.001). However, even within these groups, there were examples of closely related organisms with very different parameter estimates. This result is corroborated by a previous study on recombination rates across bacteria, showing that while recombination rates generally appear to be a slowly evolving trait, they can evolve much faster in some genera (37).
Distinct Heritability Patterns Across Functional Categories.
We then looked into the variation in vertical vs. horizontal transmission of different functional categories in the accessory genome (i.e., the degree of linkage between core genome SNPs and genes). Certain types of genes that are subject to frequent HGT due to local selective pressures (e.g., prophages and insertion sequences, antibiotic resistance, or some capsid genes) are expected to be much less linked to the core genome population structure than others (57–59). Indeed, for genes annotated as parts of MGEs (Materials and Methods), the linkage decay curves were often flat (Fig. 4A and SI Appendix, Fig. S2), with no association between these genes and core genome SNPs next to them.
Fig. 4.

Variation in the heritability of genes with different functions. (A) Example of Linkage decay curves for mobile genetic elements genes (MGE)–SNP pairs. SNP–SNP and accessory gene–SNP curves are shown for comparison. The X-axis corresponds to the base pair distance on a chromosome between pairs of SNPs/accessory gene–SNP (log-scaled and binned into 50 bins). The Y-axis shows each bin’s LD90 measure (90th quantile of correlation between all SNP–SNP or gene–SNP pairs). (B) Barplot of per-category linkage. LD90 is calculated for all pairs of genes belonging to a given category with SNPs closer than SNP–SNP d1/2 (“local SNPs”) and averaged across all species.
We then stratified accessory genes by COG category and calculated LD90 for all genes within a given category and core genome SNPs that are closer than SNP–SNP d1/2 (designated “local” SNPs). In line with previous studies (6, 60), on average, metabolic functions were evolving more slowly (Fig. 4B), and thus were more linked to the core genome phylogeny than MGEs and some extracellular structure genes. However, there were noticeable differences in the heritability of functional categories across species (SI Appendix, Fig. S4). For example, Ruminococcus_E bromii showed a high degree of linkage between MGEs and core genome SNPs, which might signify that these are “immobilized” MGEs (e.g., dead prophages). However, it is hard to make definite conclusions due to low gene counts in some COG categories and the few SNPs near them in some species. These findings suggest that the degree to which accessory genes are linked to the core genome varies not only by functional category but also by species-specific genomic and ecological contexts, reflecting diverse evolutionary constraints on gene mobility within the gut microbiome.
Discussion
The interplay between the evolution of the core and accessory parts of bacterial pangenomes remains a central topic in microbial population genomics (35, 61, 62). While it has been studied to some extent how homologous recombination shapes the core genomes of different species (27, 29, 37, 39), it is still unclear how accessory genes fit in this picture. With the recent expansion of bacterial genome collections (5–7, 52, 63), we can address these questions in more detail beyond the scope of a few well-studied bacteria, such as E. coli (43) and Streptococcus pneumoniae (64). In this study, we comprehensively analyzed core and accessory intraspecies diversity for the 121 most prevalent human gut bacteria. Our analyses reveal a consistent trend of increasing gene content divergence with core genome divergence across a broad range of prevalent gut bacterial species, suggesting a tight coupling between vertical inheritance and gene gain/loss, potentially reflecting long-term evolutionary trajectories shaped by selection and ecological niche differentiation.
By estimating the decay of allelic linkage with genomic distance, we probed recombination dynamics within species using both SNP–SNP and accessory gene–SNP linkage profiles. These curves capture how rapidly linkage disequilibrium breaks down—a function of both recombination rate and population structure. We observed considerable heterogeneity across species in the shape and steepness of these decay curves, underscoring the diverse evolutionary histories and recombination regimes among gut microbes.
One observation of our study is a high degree of concordance between linkage decays for core SNP–SNP and accessory gene–core SNP pairs (Spearman rho = 0.73, P-value < 0.001). This might signify that, in gut bacteria, the evolution of core and accessory genomes is affected by the same types of selective pressures and molecular mechanisms (i.e., recombination boundaries are similar to HGT boundaries). When we compared genomic distances at which the correlation between SNP–SNP and accessory gene–SNP pairs drops halfway, we noted that it can vary a few orders of magnitude between just a hundred base pairs and 10 Kbp. Species with a high degree of linkage tend to have larger and more consistent genomes, lower recombination rates, and lower GC content. Most of them tend to show geographic restriction, are gram-negative, and enriched in the luminal fraction, which might explain why it is harder for them to exchange genetic material. Meanwhile, a minority of species in our collection exhibit a strong population structure that manifests as a high degree of linkage at long genomic distances, including notable examples such as Phocaeicola dorei, Enterococcus_B faecium, Parasutterella excrementihominis, and Ruminococcus_E bromii.
Notably, while the decay profiles of SNP–SNP and gene–SNP linkages were broadly concordant, accessory gene linkages were lower overall in nearly all cases. We also found that for about a third of the species in our collection, gene–SNP d1/2 exceeds SNP–SNP d1/2 substantially (Fig. 2D and Dataset S2). This discrepancy is largely a consequence of how d1/2 is defined: For some species (e.g., Prevotella sp003447235; SI Appendix, Fig. S2), gene–SNP linkage is very low even at short distances (LD90 < 0.5), so the midpoint of decay falls much further along the genome than for SNP–SNP curves, which always start at LD90 = 1.
While our results confirm that for many taxa, accessory genes are gained and lost more quickly than core genome evolution, we find evidence for this in just a subset of gut species. MGEs likely play a role in this variation: Because they typically span tens of kilobases, most MGE-carried genes lack nearby core SNPs and do not contribute to short-range gene–SNP statistics, but accelerate long-distance decay. Indeed, as expected, genes annotated as parts of MGEs show almost no linkage to core genome SNPs, indicating their movement is largely independent of vertical descent or homologous recombination involving the core genome. However, we did not find any correlation between the fraction of MGEs in the accessory genome and linkage patterns across our species collection, possibly due to inconsistency in MGE annotations across different species. Extensive variation in the relative rates of these evolutionary processes across bacterial taxonomy should be carefully considered when studying the population genetics of microbes. For instance, the LD of both genes and SNPs have consequences for how we interpret gene-based associations in microbiome-wide studies.
Broadly, our approach illustrates how linkage decay patterns can serve as a scalable, genome-wide readout of recombination and population structure, even in species with limited cultivation or with high levels of within-host diversity. The distinction between SNP–SNP and gene–SNP linkage decay provides a practical way to separate homologous recombination from gene flow via HGT, helping disentangle evolutionary processes operating on different timescales and genomic units. Our approach can easily be applied to genomes from environments beyond the human gut, as long as it is feasible to compile a large number (100s to 1,000s) of high-quality assemblies per species.
Finally, the striking variability in linkage decay and gene content dynamics across species phylogeny highlights the importance of species-specific analyses in microbial population genetics. Unlike model organisms or well-studied pathogens, many gut commensals lack standardized population genetic models. Our findings argue against one-size-fits-all assumptions and call for more nuanced frameworks integrating selection, recombination, and gene mobility across taxa. Variations in the recombination statistics estimated in our study could reflect variable selection pressures across ecological niches, differences in fundamental genomic biology, or, in some cases, bias introduced by variable dataset size and data quality. Unfortunately, our understanding of gut bacterial ecology and phenotypes remains very limited, hindering efforts to disentangle these factors.
Looking forward, several open questions remain. How do host factors such as diet, immune state, or geography shape recombination landscapes across individuals? When can linkage decay curves be extended to metagenomic samples to infer recombination in situ? What evolutionary forces maintain high rates of gene mobility in some species but not others? By combining large-scale genomic data with population genetic modeling, our work provides a foundation for answering these questions and for incorporating recombination-aware methods into microbiome analysis pipelines. As the field moves toward higher resolution, strain-level microbiome profiling, accounting for gene mobility and recombination will be essential for robust inference of microbial function, evolution, and association with host phenotypes.
Materials and Methods
Dataset Construction.
We retrieved the UHGG v2 database (6), consisting of 289,232 genomes and 4,744 species. Since the majority of the genomes in UHGG are MAGs that could contain sequencing errors and assembly artifacts, we focused our analysis on species with at least 100 high-quality genomes (>95% completeness and <5% contamination), leaving us with 74,614 genomes across 158 species. The genome with the best quality is typically assigned as a representative one for each species. We used skani v0.2.2 with default parameters (65) to estimate all-to-all ANI between strain genomes of each species and left only those with ANI > 99.9 to any other genomes. This left us with 121 species and 42,933 genomes (~15% of the UHGG database), the final set of genomes used in this study (Dataset S1). We used the phylogenetic tree provided by the authors of UHGG for all phylogenetic analyses.
Pangenome Analysis.
We used gene clusters as defined in the MIDAS v3 database (11). Briefly, for each reference genome assigned to a given species in the UHGG v2 genome collection, genes were predicted by Prokka v1.14.6 (66). All gene sequences less than 200 bp or with ambiguous bases were filtered out. The remaining sequences were dereplicated using VSEARCH v2.23.0 (67), using a 99% ANI cut-off, and the longest sequence was assigned as the representative for each cluster. In addition, we removed fragmented genes by running CD-HIT v4.8.1 (68) (using options ‘-c 1 -aS 0.9 -G 0 -g 1 -AS 180‘) and merging all clusters with shorter representative sequences having the perfect identity of ≥90% of length to another longer cluster representative [same applies to gene sequences predicted on the opposite strand (69)]. We then clustered representative sequences into operational gene families using VSEARCH and an 80% gene similarity cut-off. We used binary presence/absence for genes (ignoring the multicopy genes, as they constitute only ~5% of the genes).
We used the presence/absence of these gene clusters within every genome to calculate pairwise gene differences for every species (Fig. 1). For subsequent analyses, we defined “core” genes as genes present in >90% of the strains, “rare” as present in <10% of the strains, and the rest were assigned as “accessory.” We estimated the consistency of the core genome as follows. For each genome, we constructed an adjacency matrix indicating which core genes are physically consecutive on the chromosome, regardless of accessory gene insertions. We then calculated pairwise synteny scores for all pairs of genomes by counting the number of gene-order breaks (i.e., 1 minus the normalized Euclidean distance between the two adjacency matrices). This yields values ranging from 0 (no conserved gene adjacencies) to 1 (identical gene order). The species-level consistency score is calculated as the mean synteny across all pairwise comparisons within a species.
We annotated gene sequences using EggNOG mapper v2.1.12 (70). We run geNomad v1.7.4 (50) and MobileElementFinder v1.1.2 (51) directly on every reference genome for a species to identify MGEs (phages and plasmids). We used the result of this analysis to calculate the average fraction of accessory MGE genes per species by checking which accessory genes were predicted to be part of MGE in every given genome.
SNP Profiling.
For each species, we mapped all genomes against the species’ representative genomes (in UHGG, this is the genome with the highest assembly quality, often an isolate) using “nucmer” from MUMmer v4.0.0rc1 (71). We used “show-snps -ClrT” and “show-coords -rgT” to identify SNPs and extract their coordinates. Only biallelic SNPs with at least 5% minor allele frequency were included in the catalog, and we required that they be covered in at least 90% of the genomes (to include only core-genome positions). In the final SNP catalog for each species, we marked alleles as “major,” “minor,” and “NA” (position not covered) and identified them by their coordinates in the representative genome.
Linkage Decay Estimation.
To estimate the SNP–SNP linkage decay curve, we defined 50 bins in the interval (0 to 100 Kbp) using logarithmic scaling [[0,1), [1,2), [2,3), ...[48,077, 61,370), [61,370, 78,339), [78,339, 100,000)]. The distance between a pair of SNPs was calculated using their coordinates in the reference genome. We then calculated the 90th quantile of pairwise SNP correlations within each bin (SNP pairs from different contigs were excluded in this calculation). To estimate the accessory gene–SNP linkage decay curve, we used the same 50 bins. To calculate the distance between a given gene and SNP, we extracted all minimal genomic distances between gene ends and SNP positions when detected in the same strain genome within the same contig and calculated the average distance across all such genomes. Note that this measure of genomic distance is slightly more robust than the distance defined on the reference genome for a few reasons: Only a subset of accessory genes is present in any given reference genome; reference genome coordinates for SNPs and genes might not be representative due to reshuffling of gene order between genomes (as estimated by the consistency of core genome order).
We used the following formula to approximate linkage decay curves:
from this fit, we extracted two main parameters: LDmax and .
Note that when free plasmids are separate contigs, these MGEs are excluded from the SNP-gene pairs in LD calculation.
Recombined Fraction Estimation.
We used a procedure similar to the recent study (39) to estimate the fraction of the recombined genome. We used our de novo core genome SNP data to estimate SNP density across the genome, split into 500 bp windows. We then modeled the distribution of SNP density as a Poisson + Negative Binomial Mixture Model and used these probabilities to classify all windows into “clonal” and “recombined” states. We used these labels to initialize a two-state HMM model that assigns final labels for “clonal” and “recombined” parts of the genome. Throughout the study, the fraction of the recombined genome for a given species was calculated as an average fraction of “recombined” windows across all pairs of strains with the reference genome.
Statistical Data Analysis.
We used R 4.2.1 for statistical analysis. We used nlsLM from the package minpack.lm for linkage decay curve fitting; cor.test (method = “spearman”) from the stats package to calculate correlation and P-value for parameter associations; Wilcoxon test for all pairwise distributions comparisons, and Benjamini–Hochberg adjustment for P-value correction.
Supplementary Material
Appendix 01 (PDF)
Dataset S01 (XLSX)
Dataset S02 (XLSX)
Dataset S03 (XLSX)
Dataset S04 (XLSX)
Acknowledgments
This work was supported by the National Heart, Lung and Blood Institute (Grant #R01HL160862 to K.S.P.), the San Simeon fund, Chan Zuckerberg Biohub SF, Gladstone Institutes, and an NSF predoctoral fellowship to C.P. This research was supported in part by Grant NSF PHY-2309135 and the Gordon and Betty Moore Foundation Grant No. 2919.02 to the Kavli Institute for Theoretical Physics.
Author contributions
V.D., B.J.S., and K.S.P. designed research; V.D. and B.J.S. performed research; C.Z. contributed new reagents/analytic tools; V.D., B.J.S., and C.P. analyzed data; and V.D., B.J.S., C.Z., and K.S.P. wrote the paper.
Competing interests
The authors declare no competing interest.
Footnotes
This article is a PNAS Direct Submission.
Data, Materials, and Software Availability
All the genomes included in the analysis are listed in Dataset S1 and can be retrieved from the UHGG database. The code used to reproduce the data analysis and figures is available here: https://github.com/Zireae1/snp2genes (72).
Supporting Information
References
- 1.VanEvery H., Franzosa E. A., Nguyen L. H., Huttenhower C., Microbiome epidemiology and association studies in human health. Nat. Rev. Genet. 24, 109–124 (2023). [DOI] [PubMed] [Google Scholar]
- 2.Zmora N., Soffer E., Elinav E., Transforming medicine with the microbiome. Sci. Transl. Med. 11, eaaw1815 (2019). [DOI] [PubMed] [Google Scholar]
- 3.Marchesi J. R., et al. , The gut microbiota and host health: A new clinical frontier. Gut 65, 330 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Rajilić-Stojanović M., Vos W. M., The first 1000 cultured species of the human gastrointestinal microbiota. FEMS Microbiol. Rev. 38, 996–1047 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Fullam A., et al. , proGenomes3: Approaching one million accurately and consistently annotated high-quality prokaryotic genomes. Nucleic Acids Res. 51, D760–D766 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Almeida A., et al. , A unified catalog of 204, 938 reference genomes from the human gut microbiome. Nat. Biotechnol. 39, 105–114 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Davis J. J., et al. , The PATRIC bioinformatics resource center: Expanding data and analysis capabilities. Nucleic Acids Res. 48, D606–D612 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Dong Q., et al. , Genomic diversity and underlying metabolic variations of the human gut microbiome between populations at single nucleotide resolution. bioRxiv [Preprint] (2024). 10.1101/2024.10.19.618999. Accessed 9 July 2025. [DOI]
- 9.Shi Z. J., Dimitrov B., Zhao C., Nayfach S., Pollard K. S., Fast and accurate metagenotyping of the human gut microbiome with GT-Pro. Nat. Biotechnol. 40, 507–516 (2022). [DOI] [PubMed] [Google Scholar]
- 10.Zhao C., Shi Z. J., Pollard K. S., Pitfalls of genotyping microbial communities with rapidly growing genome collections. Cell Syst. 14, 160–176.e3 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Smith B. J., et al. , Accurate estimation of intraspecific microbial gene content variation in metagenomic data with MIDAS v3 and StrainPGC. Genome Res. 35, 1247–1260 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Zhao S., et al. , Adaptive evolution within gut microbiomes of healthy people. Cell Host Microbe 25, 656–667.e8 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Suzuki T. A., et al. Codiversification of gut microbiota with humans. Science 377, 1328–1332 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Barreto H. C., Gordo I., Intrahost evolution of the gut microbiota. Nat. Rev. Microbiol. 21, 590–603 (2023). [DOI] [PubMed] [Google Scholar]
- 15.Zahavi L., et al. , Bacterial SNPs in the human gut microbiome associate with host BMI. Nat. Med. 29, 2785–2792 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Mobegi F. M., et al. , Deciphering the distance to antibiotic resistance for the pneumococcus using genome sequencing data. Sci. Rep. 7, 42808 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Lopatkin A. J., et al. , Clinically relevant mutations in core metabolic genes confer antibiotic resistance. Science 371, eaba0862 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Silva K. P. T., Khare A., Antibiotic resistance mediated by gene amplifications. npj Antimicrob. Resist. 2, 35 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Liu X., Ma Y., Wang J., Genetic variation and function: Revealing potential factors associated with microbial phenotypes. Biophys. Rep. 7, 111–126 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Zimmermann M., Zimmermann-Kogadeeva M., Wegmann R., Goodman A. L., Mapping human microbiome drug metabolism by gut bacteria and their genes. Nature 570, 462–467 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Fraser C., Hanage W. P., Spratt B. G., Recombination and the nature of bacterial speciation. Science 315, 476–480 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Hanage W. P., Not so simple after all: Bacteria, their population genetics, and recombination. Cold Spring Harb. Perspect. Biol. 8, a018069 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.González-Torres P., Rodríguez-Mateos F., Antón J., Gabaldón T., Impact of homologous recombination on the evolution of prokaryotic core genomes. mBio 10, 10–1128 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Arnold B. J., Huang I.-T., Hanage W. P., Horizontal gene transfer and adaptive evolution in bacteria. Nat. Rev. Microbiol. 20, 206–218 (2022). [DOI] [PubMed] [Google Scholar]
- 25.Feil E. J., et al. , Recombination within natural populations of pathogenic bacteria: Short-term empirical estimates and long-term phylogenetic consequences. Proc. Natl. Acad. Sci. U.S.A. 98, 182–187 (2001). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Vos M., Didelot X., A comparison of homologous recombination rates in bacteria and archaea. ISME J. 3, 199–208 (2009). [DOI] [PubMed] [Google Scholar]
- 27.Garud N. R., Good B. H., Hallatschek O., Pollard K. S., Evolutionary dynamics of bacteria in the gut microbiome within and across hosts. PLoS Biol. 17, e3000102 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Steinberg A. P., Lin M., Kussell E., Core genes can have higher recombination rates than accessory genes within global microbial populations. Elife 11, e78533 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Liu Z., Good B. H., Dynamics of bacterial recombination in the human gut microbiome. PLoS Biol. 22, e3002472 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Tokuda M., Shintani M., Microbial evolution through horizontal gene transfer by mobile genetic elements. Microb. Biotechnol. 17, e14408 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Lerminiaux N. A., Cameron A. D. S., Horizontal transfer of antibiotic resistance genes in clinical environments. Can. J. Microbiol. 65, 34–44 (2019). [DOI] [PubMed] [Google Scholar]
- 32.Pál C., Papp B., Lercher M. J., Adaptive evolution of bacterial metabolic networks by horizontal gene transfer. Nat. Genet. 37, 1372–1375 (2005). [DOI] [PubMed] [Google Scholar]
- 33.Marri P. R., Bannantine J. P., Golding G. B., Comparative genomics of metabolic pathways in Mycobacterium species: Gene duplication, gene decay and lateral gene transfer. FEMS Microbiol. Rev. 30, 906–925 (2006). [DOI] [PubMed] [Google Scholar]
- 34.Deng Y., et al. , Horizontal gene transfer contributes to virulence and antibiotic resistance of Vibrio harveyi 345 based on complete genome sequence analysis. BMC Genimics 20, 761 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Tettelin H.,Medini D., The Pangenome: Diversity, Dynamics and Evolution of Genomes (Springer, 2020). [PubMed] [Google Scholar]
- 36.Everitt R. G., et al. , Mobile elements drive recombination hotspots in the core genome of Staphylococcus aureus. Nat. Commun. 5, 3956 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Torrance E. L., Burton C., Diop A., Bobay L.-M., Evolution of homologous recombination rates across bacteria. Proc. Natl. Acad. Sci. U.S.A. 121, e2316302121 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Wolff R., Garud N. R., Pervasive selective sweeps across human gut microbiomes. Nat. 650, 710–717 (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Yu X. A., et al. , Genome-wide sweeps create fundamental ecological units in the human gut microbiome. bioRxiv [Preprint] (2024). 10.1101/2024.05.25.595854. Accessed 25 May 2024. [DOI] [PMC free article] [PubMed]
- 40.Creevey C. J., et al. , Does a treelike phylogeny only exist at the tips in the prokaryotes? Proc. Biol. Sci. 271, 2551–2558 (2004). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Sakoparnig T., Field C., van Nimwegen E., Whole genome phylogenies reflect the distributions of recombination rates for many bacterial species. eLife 10, e65366 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Iranzo J., Wolf Y. I., Koonin E. V., Sela I., Gene gain and loss push prokaryotes beyond the homologous recombination barrier and accelerate genome sequence divergence. Nat. Commun. 10, 5376 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Touchon M., et al. , Phylogenetic background and habitat drive the genetic diversification of Escherichia coli. PLoS Genet. 16, e1008866 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Bentkowski P., Oosterhout C. V., Mock T., A model of genome size evolution for prokaryotes in stable and fluctuating environments. Genome Biol. Evol. 7, 2344–2351 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Smith B. J., Li X., Shi Z. J., Abate A., Pollard K. S., Scalable microbial strain inference in metagenomic data using strainFacts. Front. Bioinform. 2, 867386 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Vos P. G., et al. , Evaluation of LD decay and various LD-decay estimators in simulated and SNP-array data of tetraploid potato. Theor. Appl. Genet. 130, 123–135 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Ohta T., Kimura M., Linkage disequilibrium at steady state determined by random genetic drift and recurrent mutation. Genetics 63, 229–238 (1969). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Lassalle F., et al. , GC-content evolution in bacterial genomes: The biased gene conversion hypothesis expands. PLoS Genet. 11, e1004941 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Torrance E. L., Diop A., Bobay L.-M., Homologous recombination shapes the architecture and evolution of bacterial genomes. Nucleic Acids Res. 53, gkae1265 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Camargo A. P., et al. , Identification of mobile genetic elements with geNomad. Nat. Biotechnol. 42, 1303–1312 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Johansson M. H. K., et al. , Detection of mobile genetic elements associated with antibiotic resistance in Salmonella enterica using a newly developed web tool: MobileElementFinder. J. Antimicrob. Chemother. 76, 101–109 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Schober I., et al. , BacDive in 2025: The core database for prokaryotic strain data. Nucleic Acids Res. 53, D748–D756 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Jin X., et al. , Culturing of a complex gut microbial community in mucin-hydrogel carriers reveals strain- and gene-associated spatial organization. Nat. Commun. 14, 3510 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Dubnau D., Blokesch M., Mechanisms of DNA uptake by naturally competent bacteria. Annu. Rev. Genet. 53, 1–21 (2019). [DOI] [PubMed] [Google Scholar]
- 55.O’Connell L. M., et al. , Natural transformation in gram-positive bacteria and its biotechnological relevance to lactic acid bacteria. Annu. Rev. Food Sci. Technol. 13, 409–431 (2022). [DOI] [PubMed] [Google Scholar]
- 56.Huddleston J. R., Horizontal gene transfer in the human gastrointestinal tract: Potential spread of antibiotic resistance genes. Infect. Drug Resist. 7, 167–176 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Moller A. G., Petit R. A., Read T. D., Species-scale genomic analysis of staphylococcus aureus genes influencing phage host range and their relationships to virulence and antibiotic resistance genes. mSystems 7, e01083–21 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Polz M. F., Alm E. J., Hanage W. P., Horizontal gene transfer and the evolution of bacterial and archaeal population structure. Trends Genet. 29, 170–175 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Oliveira P. H., Touchon M., Cury J., Rocha E. P. C., The chromosomal organization of horizontal gene transfer in bacteria. Nat. Commun. 8, 841 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Gralka M., Pollak S., Cordero O. X., Genome content predicts the carbon catabolic preferences of heterotrophic bacteria. Nat. Microbiol. 8, 1799–1808 (2023). [DOI] [PubMed] [Google Scholar]
- 61.Wolf Y. I., Makarova K. S., Lobkovsky A. E., Koonin E. V., Two fundamentally different classes of microbial genes. Nat. Microbiol. 2, 16208 (2016). [DOI] [PubMed] [Google Scholar]
- 62.McInerney J. O., McNally A., O’Connell M. J., Why prokaryotes have pangenomes. Nat. Microbiol. 2, 17040 (2017). [DOI] [PubMed] [Google Scholar]
- 63.Shoer S., et al. , Pangenomes of human gut microbiota uncover links between genetic diversity and stress response. Cell Host Microbe 32, 1744–1757.e2 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Raghuram V., et al. , Average nucleotide identity-based Staphylococcus aureus strain grouping allows identification of strain-specific genes in the pangenome. mSystems 9, e00143-24 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Shaw J., Yu Y. W., Fast and robust metagenomic sequence comparison through sparse chaining with skani. Nat. Methods 20, 1661–1665 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Seemann T., Prokka: Rapid prokaryotic genome annotation. Bioinformatics 30, 2068–2069 (2014). [DOI] [PubMed] [Google Scholar]
- 67.Rognes T., Flouri T., Nichols B., Quince C., Mahé F., VSEARCH: A versatile open source tool for metagenomics. PeerJ 4, e2584 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Fu L., Niu B., Zhu Z., Wu S., Li W., CD-HIT: Accelerated for clustering the next-generation sequencing data. Bioinformatics 28, 3150–3152 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Trimble W. L., et al. , Short-read reading-frame predictors are not created equal: Sequence error causes loss of signal. BMC Bioinform. 13, 183–183 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 70.Cantalapiedra C. P., Hernández-Plaza A., Letunic I., Bork P., Huerta-Cepas J., eggNOG-mapper v2: Functional annotation, orthology assignments, and domain prediction at the metagenomic scale. Mol. Biol. Evol. 38, 5825–5829 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Marçais G., et al. , MUMmer4: A fast and versatile genome alignment system. PLoS Comput. Biol. 14, e1005944 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Dubinkina V., Scripts for the paper “Linkage of nucleotide and functional diversity varies across gut bacteria.” Zenodo. Version 1.1.0 (2026). 10.5281/zenodo.19864174. Deposited 28 April 2026. [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Appendix 01 (PDF)
Dataset S01 (XLSX)
Dataset S02 (XLSX)
Dataset S03 (XLSX)
Dataset S04 (XLSX)
Data Availability Statement
All the genomes included in the analysis are listed in Dataset S1 and can be retrieved from the UHGG database. The code used to reproduce the data analysis and figures is available here: https://github.com/Zireae1/snp2genes (72).
