Abstract
Pathogen-mediated balancing selection (PMBS) drives host evolution across the tree of life. Distinguishing between the three main mechanisms underlying PMBS, that is, rare-allele advantage, fluctuating selection and heterozygote advantage, remains difficult, limiting our understanding of frequency-dependent adaptations by hosts and counter-adaptation by pathogens. Here we leverage immune genetic and disease surveillance data from over 1,500 wild meerkats (Suricata suricatta) to track how selection by the tuberculosis (TB)-causing Mycobacterium suricattae shaped the evolution of the meerkats’ major histocompatibility complex (MHC) over two decades. Compared with neutral genetic markers, we detect more rapid differentiation and recycling of alleles at the MHC-DRB loci, suggesting that TB imposes strong PMBS on wild meerkats. In addition, we show that meerkats carrying the MHC allele Susu-DRB*13 were initially more likely to develop clinical signs of TB, with the effect reversing over the course of the study, followed by an increase in the frequency of Susu-DRB*13. Meerkats carrying Susu-DRB*13 also showed slower progression to TB signs and longer survival once signs of TB manifested. Lifetime reproductive success reflected the resilience effect conferred by Susu-DRB*13. Based on several lines of evidence, we propose that rare-allele advantage or fluctuating selection, rather than heterozygote advantage, drive our observation in this longitudinally sampled wild mammal population.
Similar content being viewed by others
Main
Balancing selection maintains much of the biological diversity on our planet1. Pathogen-mediated balancing selection (PMBS), in particular, shapes the exceptionally high polymorphism commonly observed in genomic regions encoding innate2,3 and adaptive4,5 immune responses. In vertebrates, the major histocompatibility complex (MHC) is the most polymorphic and best-understood genetic basis of pathogen resistance6,7. MHC molecules are an essential cell surface component of the immunological cascade that recognizes and presents pathogen-derived peptides to T cells8. A central tenet of PMBS in maintaining MHC polymorphism is the rare-allele advantage, which emerges from pathogens evolving to evade common MHC variants. Thus, rare variants, if advantageous, increase in frequency until pathogens counter-adapt6,9,10. This sets up a cyclic arms race between hosts and pathogens that theoretically maintains high levels of MHC polymorphism11. Yet, such negative frequency-dependent selection on the MHC has been documented only in experiments on short-lived model organisms, such as mice and fish12,13,14, or inferred from snapshots in time15,16,17. Robust evidence from natural populations documenting the entire cycle in which a common MHC allele becomes rare following pathogen evasion and then regains resistance is lacking.
One explanation for the lack of evidence for the rare-allele advantage, especially from natural systems, is that findings are often also compatible with other mechanisms of PMBS, such as heterozygote advantage9,18 and fluctuating selection19,20. The heterozygote advantage hypothesis is conceptually related to the rare-allele advantage in that both stem from the idea that single alleles can bind peptides from a limited range of pathogens. Hosts with a greater number or a more divergent repertoire of alleles are therefore expected to mount efficient responses against a wider range of pathogens4,21,22,23. Fluctuating selection arises from spatio-temporal variation in PMBS, resulting in the enormous allelic diversity seen at the species level, while maintaining a more limited subset in local populations24,25. Owing to their conceptual similarities, host–pathogen associations may resemble any of these mechanisms, making a clear differentiation difficult6,9,26,27. However, depending on the underlying mechanisms, the MHC is expected to evolve differently compared with neutral markers9,25,27,28,29. Hence, delineating between mechanisms requires a comparison of MHC and neutral genetic evolution, and a contrast of MHC–pathogen associations over space and time, ideally across multiple populations6,9.
Although bacteria of the Mycobacterium tuberculosis complex cause debilitating, often lethal, tuberculosis (TB) infections in humans30 and wildlife31, evidence for long-term selection is lacking32,33,34,35. Here we leverage two decades of Mycobacterium suricattae surveillance, individual disease records and new MHC class II data from over 1,500 wild meerkats (Suricata suricatta) living in tight social groups at the Kuruman River Reserve in the Kalahari Desert, South Africa. In the cooperative breeding system of meerkats, a dominant breeding pair largely monopolizes reproduction and employs group members to help in pup care36. The pair asserts their dominance through aggression within their social group37, and aggressive feuds over territories between neighbouring groups are common38. Aggression is also presumed to be among the main behavioural mechanisms by which the meerkat-specific M. suricattae, first reported in the 1990s, spread through the population39,40,41. After a long latent period, the infection causes swelling of the submandibular, inguinal and cervical lymph nodes, progressing to lesions, physical deterioration (Fig. 1a) and death within an average of 6.6 months after clinical signs appear39,42,43. While TB curbs survival, disease progression varies widely, with some individuals surviving up to 7 years after the onset of clinical signs39. This variability provides a unique opportunity to investigate the links between TB, immunogenetics and fitness in a longitudinally monitored wildlife population (Supplementary Fig. 1 and Supplementary Table 1). First, we describe MHC class II diversity in meerkats and then test whether the evolution at the MHC outpaces evolution at neutral genetic markers, indicating that PMBS affects host immunogenetics rather than microsatellite markers. Second, we hypothesize that the MHC composition and functional diversity explains interindividual differences in meerkat TB susceptibility, survival and lifetime reproductive success better than neutral genetic diversity and compare them with other biological, socio-ecological and environmental covariates. Finally, we attempt to distinguish between three mechanisms of PMBS, that is, rare-allele advantage, heterozygote advantage and fluctuating selection (Fig. 1b). Indeed, we document that a single allele correlated with TB susceptibility, survival and lifetime reproductive success, and we draw from several lines of evidence to suggest that the dominant mechanisms are likely to be rare-allele advantage or fluctuating selection.
a, Contrast between meerkats without clinical signs of Mycobacterium suricattae infection and those displaying swelling of head lymph nodes (for example, white arrow in central picture), open lesions (for example, white arrow in right picture) and physical deterioration. b, A comparison between allele frequency distribution, population structure and MHC–pathogen association allows to differentiate evolution at the MHC from evolution at neutral markers and to inferentially distinguish between possible non-mutually exclusive mechanisms of PMBS (visually adapted from ref. 9). Meerkat photo credit: Simone Sommer and Shaylee Alderton. This figure was created with BioRender.com.
Results
Meerkat MHC class II DRB polymorphism and neutral genetic evolution
High-throughput sequencing identified 37 functional MHC-DRB exon 2 alleles in 1,567 meerkats (Fig. 2a,b). Meerkats carried between one and seven MHC alleles (median: 2, mean: 2.5 ± 1.1 standard deviation (s.d.)), suggesting the presence of at least four distinct DRB loci. This was confirmed by manual annotation of the MHC class II genes, where we identified two complete DRB loci and an additional two exon 2 fragments as well as two potential pseudogenes (Supplementary Tables 4 and 5). All functional alleles map to exon 2 of the functional DRB loci (for more details, see Supplementary Results).
a, The relative abundance of MHC-DRB alleles among 1,567 sampled meerkats. The dashed line indicates the 5% threshold. Coloured boxes represent alleles with data available for all study years. b, The total number of uninfected (dark grey), TB-exposed (blue) and TB-positive (orange) individuals with MHC genotype information compared with the rest of uncharacterized meerkats in the population (light grey). c, Change in relative abundance (termed frequency; mean ± s.d.) of the six Susu-DRB alleles present in at least 5% of the population in each year since 1999. The dashed line and shaded area represent neutral genetic diversity (measured as Hexp; mean ± sd). d, Estimated annual evenness of MHC (black) and microsatellite (grey) allele frequencies. e, Fitted regression (±95% CIs) of genetic differentiation (that is, pairwise Fst) of the meerkat population over time estimated from microsatellite (grey) and MHC data (black).
MHC alleles varied in their relative abundance (referred to as frequency henceforth) over time (Fig. 2c), with average individual expected microsatellite heterozygosity (Hexp) remaining stable over time. We found that MHC allele frequencies were more evenly distributed compared with those of neutral genetic markers (mean difference: 0.08; paired t-test −8.10, P < 0.001; Fig. 2d), possibly arguing for recycling of MHC alleles in line with a frequency-dependent rare-allele advantage. Besides, MHC and microsatellite fixation index (Fst) diverged over time (Mantel test on microsatellites: P = 0.001; slope 1.1 × 10−3, confidence interval (CI) 1.0 × 10−3 to 1.2 × 10−3; on MHC markers: P = 0.001; slope 1.9 × 10−3, CI 1.7 × 10−3 to 2.0 × 10−3). The molecular divergence was higher at the MHC-DRB alleles than estimated for the microsatellites (interaction: P < 0.001; estimate −7.8 × 10−4; CI 8.9 × 10−4 to 6.6 × 10−4; Fig. 2e and Supplementary Table 6), suggesting stronger selection acting on MHC alleles.
The 37 functional alleles clustered into 12 functionally distinct MHC supertypes (Supplementary Table 7 and Supplementary Fig. 2a) and combinations of these alleles were probabilistically sorted into 16 functional haplotypes (Supplementary Table 8 and Supplementary Fig. 2b). Individuals carried between one and six supertypes (median: 2, mean 2.3 ± 0.9 s.d.). Most individuals carry two haplotypes, with only 14.6% classified as homozygotes. Any further analyses were performed on functional MHC alleles, supertypes and haplotypes occurring in more than 5% of the study population and in all years.
MHC associations with TB and fitness
First, we identified four MHC alleles (Susu-DRB*01, Susu-DRB*03, Susu-DRB*07 and Susu-DRB*13; Fig. 3a), six supertypes (ST01, ST02, ST03, ST04, ST05 and ST09; Supplementary Fig. 3a) and one haplotype (F; Supplementary Fig. 4a) to be repeatedly associated with clinical signs of TB over the 20 years studied since 1999. For each candidate MHC allele, supertype and haplotype, we ran separate models to estimate the likelihood to ever develop clinical TB signs (TB susceptibility), the likelihood to progress from exposure to clinical signs (TB progression), persist with a clinical TB infection (TB resilience), survive and reproduce (lifetime reproductive success). All models controlled for MHC and neutral genetic diversity, as well as biological, socio-ecological, and environmental covariates, and presented P values are false discovery rate corrected. Because we were interested in whether pathogen–MHC associations vary over time, we included interactions between the linear and quadratic terms of year and MHC measures (see Methods for more detail).
a, A heat map displaying higher (that is, positive association) and lower (that is, negative association) likelihood of observing TB signs in meerkats with different MHC-DRB alleles based on co-occurrence analysis (*P < 0.05, **P < 0.01). b,c, Effect sizes (±95% CIs; n = 1,497) for all explanatory variables included in the generalized linear mixed-effects model including the MHC allele Susu-DRB*13 (b) and visualization of nonlinear effects of Susu-DRB*13 (green) on TB susceptibility over time (c). Significant effects are in blue (lower likelihood of developing TB signs) and red (higher likelihood of developing TB signs).
Carrying Susu-DRB*13 influenced TB susceptibility over time (estimate −1.16, CI −2.02 to −0.31; P < 0.01; Fig. 3b and Supplementary Table 9). Meerkats with Susu-DRB*13 experienced a heightened risk of developing TB signs between 1999 and 2010. This pattern reversed by 2013, when individuals carrying the Susu-DRB*13 allele had a lower likelihood of developing clinical signs compared with those with other alleles (Fig. 3b). Susu-DRB*13 is the only common allele (occurrence >5%) to feature an arginine at the positively selected site (PSS) 56 and a serine at 57 (Supplementary Data 1). Similarly, individuals with haplotype F, which included Susu-DRB*13, faced higher risk until the early 2010s before the risk of developing signs declined (estimate −5.04, CI −8.57 to −1.51, P < 0.05, Supplementary Fig. 4b,c and Supplementary Table 9c), although this analysis relied on a smaller sample size. By contrast, TB susceptibility was generally increased in meerkats carrying Susu-DRB*07 (estimate 0.68, CI 0.25 to 1.21, P < 0.01; Supplementary Table 9), whereas individuals carrying alleles clustering into the supertype ST04 showed low susceptibility initially until approximately 2010 when individuals with ST04 became more likely to develop TB signs (estimate 2.38, CI 1.25 to 3.52, P < 0.001; Supplementary Fig. 3b,c and Supplementary Table 9b).
TB-exposed individuals carrying Susu-DRB*13 (and its corresponding ST09 and haplotype F) were less likely to progress to clinical signs of TB over the course of the study (estimate −1.23, CI −1.95 to −0.51, P < 0.01; Supplementary Table 10). A weaker influence on TB progression over time was also detected for Susu-DRB*07 (and its corresponding ST03, estimate −0.77, CI −1.26 to −0.28, P < 0.01; Supplementary Tables 10), ST01 (estimate 0.71, CI 0.19 to 1.24, P < 0.05; Supplementary Table 10) and ST04 (estimate 0.74, CI 0.13 to 1.36, P < 0.05; Supplementary Table 10). In addition, meerkats carrying Susu-DRB*13 lived for longer after showing first clinical signs than TB-positive individuals with other alleles (estimate 0.29, CI 0.13 to 0.44, P < 0.001; corresponding ST09: estimate 0.24, CI 0.08 to 0.40, P < 0.05; haplotype F: estimate 0.35, CI 0.10 to 0.61, P < 0.05; Fig. 4a and Supplementary Table 11). However, this effect on resilience was independent of year. The results of the survival models argue a similar point (Supplementary Table 12): while individuals with clinical TB signs showed a roughly fivefold mortality risk (estimate 1.50; CI 1.14 to 1.87, P < 0.001), TB-positive individuals carrying Susu-DRB*13 survived for longer (estimate −0.95; CI −1.17 to −0.17, P < 0.05; Fig. 4b). The same was true for individuals with haplotype F in the smaller sample population (estimate −2.33; CI −3.91 to −0.74, P < 0.01; Supplementary Table 12). Finally, individual lifetime reproductive success, as the ultimate Darwinian fitness measure, was generally higher in individuals that carried Susu-DRB*13 (estimate 0.99, CI 0.23 to 1.75, P < 0.05) and peaked between 2005 and 2013 (estimate −2.58, CI −4.59 to −0.58, P < 0.05; Fig. 4c and Supplementary Table 13). By contrast, for individuals with the most common MHC allele Susu-DRB*01 or its corresponding supertype, lifetime reproductive success declined linearly over the years (Susu-DRB*01: estimate −0.85, CI −1.45 to −0.25, P < 0.05; ST01: estimate −0.89, CI −1.54 to −0.24, P < 0.05; Supplementary Fig. 5).
a–c, Carrying MHC allele Susu-DRB*13 (green) when infected with TB improved TB resilience (*P < 0.05; n = 1,497) (a), life expectancy (n = 1,535) (b) and lifetime reproductive success (LRS; n = 1,497) (c). A summary of the generalized linear mixed-effects model output is given (left), and visualizations—including a box plot (median and interquartile range), a violin plot (density, median, and interquartile range) and the nonlinear effect of Susu-DRB*13 (green) over time—are presented (right). P-adjusted significant positive effects (±95% CIs; for example, longer survival with TB signs) are given in blue and negative effects (for example, shorter survival with TB signs) in red.
In addition, socio-ecological and environmental factors correlated with TB risk and fitness in meerkats: For example, dominant meerkats were more susceptible but subordinates with TB have a sevenfold lower survival chance. Higher mean temperature increased the likelihood to progress to clinical signs of TB, while reduced rainfall increased mortality risk (see Supplementary Results for detailed information; Supplementary Tables 9–13).
Delineating between mechanisms of PMBS
Comparing between the evolution of MHC and neutral genetic markers, and looking at MHC–pathogen associations, can help differentiate among rare-allele advantage, fluctuating selection and heterozygote advantage (Fig. 1b). Yet, without replicated meerkat populations, we are left with inference and deduction. The higher evenness of MHC allele frequencies compared with those of neutral markers supports the rare-allele and heterozygote advantages, whereas the greater temporal divergence at the MHC is characteristic of rare-allele advantage or fluctuating selection. Among these mechanisms, we think heterozygote advantage is least likely because, even though in the TB susceptibility null model (that is, without specific MHC alleles) allelic diversity had a significant effect (estimate −1.56, CI −2.63 to −0.50, P < 0.05; Fig. 5a and Supplementary Table 9), when Susu-DRB*13 was included, this effect was not recovered (estimate −0.46, CI −1.70 to 0.78, P = 0.466; Supplementary Table 9). We hypothesized, therefore, that the effect of MHC diversity was driven by the effect of this single allele. If this were the case, we would expect MHC diversity to have no effect when meerkats carrying Susu-DRB*13 were excluded from the model. As predicted, MHC diversity was not retained in the model (Fig. 5b and Supplementary Table 14). To underscore this, we assessed whether hosts with more alleles were also more likely to carry Susu-DRB*13. We found that a higher number of MHC alleles increased the chance of carrying Susu-DRB*13 (G = 295.25, chi-squared d.f. 6, P < 0.001; Fig. 5c) and homozygous individuals never carried haplotype F, whereas 10.7% of heterozygous individuals did. Although there are exceptions (for example, TB progression models), this pattern holds true across TB and fitness measures, as well as for supertypes and haplotypes.
a,b, MHC allelic diversity impacts TB susceptibility (effect size ± 95% CIs) in the null model (not including MHC allele Susu-DRB*13 as an explanatory variable but including individuals with Susu-DRB*13 as part of their MHC profile) (a) but not after excluding individuals carrying Susu-DRB*13 (effect size ± 95% CIs) (b). c, The likelihood of carrying MHC allele Susu-DRB*13 increases in individuals with more MHC alleles.
Finally, we found that, when TB prevalence was high, implying a stronger selection by TB, the change in frequency of the allele Susu-DRB*13 from one year to the next tended to be positive (correlation: R2 = 0.51, P = 0.035, Fig. 6), which implies individuals with this allele either survive better and/or produce more offspring. By contrast, Susu-DRB*03 was negatively correlated with TB prevalence (R2 = 0.52, P = 0.034). Yet, even this time-lagged approach of selection-driven frequency changes cannot clearly distinguish between rare-allele advantage and fluctuating selection as the dominant mechanism driving evolution at the MHC without a comparison to other populations.
a, Visualization of the change in Susu-DRB allele frequency and TB prevalence (black line) over time. The dashed grey line represents zero change from one year to the next, with declines in the relative abundance of the MHC allele shown as negative changes (indicated by a downward-pointing arrow) and increases as positive changes (indicated by an upward-pointing arrow). b, Correlation (±95% CIs) between MHC-DRB allele frequency changes and TB prevalence. Dashed lines are non-significant, whereas solid lines indicate significant correlations.
Discussion
Tracking PMBS on host immunogenetics over time is a rare feat, with few studies able to show dynamics beyond one decade28,29,44,45. Particularly in the wild where other ecological and evolutionary processes co-occur, delineating between mechanisms driving PMBS proved difficult6,9. We collated data on two decades of selection by the TB-causing bacterium Mycobacterium suricattae in wild meerkats with molecular data from neutral and MHC genetic markers as well as socio-ecological and environmental information. We find that TB signs and TB-associated deaths drove stronger selection on MHC than on neutral genetic diversity. An initially susceptible MHC allele (and corresponding haplotype) emerged as advantageous variant in the later years, with benefits for host survival and reproduction. Our study offers rare evidence for multidecadal host immune gene evolution arising from selection by a devastating wildlife pathogen.
To understand pathogen-mediated selection on the MHC, one ideally compares MHC evolution with that of neutral genetic markers, examines MHC–pathogen associations in space and time across multiple populations, and aims to distinguish between the non-mutually exclusive mechanisms of PMBS, that is, rare-allele advantage, fluctuating selection and heterozygote advantage9. While our study meets some of these criteria, it falls short in others. For instance, the distribution of MHC allele frequencies was more even than for neutral markers, aligning with result from house finches46 and montane voles47. This pattern is indicative of PMBS and could arise from the advantage of having multiple co-dominant alleles, recycling of (rare) alleles in the population or fluctuating selection9,19,27. In addition, comparing population structure estimated from MHC and neutral genetic markers over time48, we found a greater differentiation at the MHC. This was also found in one out of three hefts in the St. Kilda Soay sheep29 and suggests either rare-allele advantage or fluctuating selection. Yet, our incomplete MHC and pedigree information for the 3,420 meerkats alive during our study, and our reliance on microsatellites over single-nucleotide polymorphisms, prevented a more sophisticated analytical approach to detect deviations in allele frequencies beyond neutral expectation (for example, gene-drop analysis)45. All in all, we find evidence that PMBS drives immune gene evolution in meerkats, albeit this conclusion is based on microsatellites.
We also found that clinical TB infection probability was associated with certain MHC alleles. For example, the risk of developing clinical signs was higher in meerkats carrying Susu-DRB*07 throughout the 20-year study. By contrast, meerkats with Susu-DRB*13 were initially more likely to develop signs than those with other MHC alleles, until around 2013, when the individuals with this allele became less likely to develop clinical TB. We found the same results for individuals carrying the haplotype F, to which Susu-DRB*13 was assigned to, although the analysis was carried out on a subsample. In humans as well, where TB has been a leading cause of death for centuries, individual single sequence variants between HLA-DQA1 and HLA-DRB1 have been strongly and repeatedly associated with M. tuberculosis infections and pulmonary TB disease in Icelandic, Russian and Croatian populations34. We lack this cross-populations comparison, which is necessary to differentiate between the mechanisms of PMBS9. This was attempted in an 11-year-long study in which three subpopulations of bank voles were sampled every 3–4 years44. The authors found that distinct MHC supertypes explained differences in helminth abundance between years and populations44, invoking either locally (or regionally) fluctuating selection or rare-allele advantage as key mechanisms in this system. Yet, in line with predictions from the rare-allele advantage, voles carrying MHC supertypes common in the recent past were more intensely infected with helminths44. Applying this time-lagged approach, we showed that DRB*13 increased in frequency between years when TB prevalence was high in the year before, possibly suggesting a rare-allele advantage in our continuously sampled wildlife population.
A unique feature of our work is the switch from high to low susceptibility in the MHC allele Susu-DRB*13. When exposed to TB, meerkats with Susu-DRB*13 are also less likely to develop clinical TB. The fitness advantage was evident even among TB-positive meerkats, with those carrying Susu-DRB*13 surviving longer than individuals with other alleles in 90% of cases. Single MHC genotypes also determined survival in Seychelles warblers49, red jungle fowls50, Chiricahua leopard frogs51 and root voles52. In rhesus macaques infected with simian immunodeficiency virus—which has a TB-like disease progression characterized by a long latency period followed by rapid deterioration once AIDS-like symptoms appear—a distinct MHC haplotype explained 48% of the observed variation in survival time53. Compared with this experimental study, the effects of MHC on meerkat survival in nature were subtle. This subtlety may reflect the complexity of innate and adaptive immune responses to TB: in humans, TB can evade or even exploit MHC-II-mediated responses, suppressing antigen presentation or co-opting CD4+ T cells to access host tissues54,55,56,57. As a result, strong immune activation may benefit the host only if the infection is rapidly cleared, which may be uncommon in natural settings54,58. Additionally, meerkats with Susu-DRB*13 benefitted from increased lifetime reproductive success. Associations between MHC genetics and reproductive output has been observed in stickleback59, pied flycatchers60, great tits61 and Soay sheep45. As in these systems (but see ref. 61), greater reproductive success probably arises from prolonged survival because living for longer is the strongest predictor of lifetime reproductive success. Greater resilience, prolonged survival and, as a consequence, increased reproduction may explain the steady increase in Susu-DRB*13 frequency when TB selection was high. Taken together, our findings support a role of host genetics in TB susceptibility and host fitness.
Neither the comparison with neutral markers, nor the patterns of MHC–pathogen association, nor the correlation between frequency changes and TB prevalence allowed us to fully discriminate between the mechanisms of PMBS. However, a few arguments support fluctuating selection and rare-allele advantage as key mechanisms at play in meerkats of the Kuruman River Reserve in South Africa. The greater divergence of MHC compared with neutral markers, the comparisons of models with and without Susu-DRB*13 and an increased chance to carry Susu-DRB*13 the more alleles an individual carried can be interpreted as exclusion criteria for the heterozygote advantage. Similar criteria ruled out heterozygote advantage in helminth-infected Soay sheep29,45,62, in root voles infected with bacterial and protozoan blood parasites52 and in humans infected with human immunodeficiency virus63. Still, we lack infection data for other pathogens affecting meerkats, which could reveal that different MHC alleles confer resistance to distinct pathogens, ultimately contributing to a heterozygote advantage4,23,64. Associating MHC measures and pathogen diversity would further help to delineate between PMBS mechanisms9. Moreover, we lack information on the co-evolution of M. suricattae over the course of our study. Because M. suricattae, like other members of the Mycobacterium complex, is likely to be under purifying selection, we expect a slow evolutionary rate65. This may allow ample time for hosts to adapt to a dominant variant and for beneficial genotypes to increase in frequency (as in some multigenerational studies12,23,28,48 but not in others16,17,62,66,67,68,69). Although this suggests a rare-allele advantage, without a cross-population comparison, both rare-allele advantage and fluctuating selection are plausible.
However, socio-ecological factors cannot be ignored in a disease disseminated via direct contact. For instance, in the banded mongooses, which, like meerkats, deposit scent marking from their anal glands, the bacterial load of M. mungi in the anal gland and nasal planum was strongly linked to the level of tuberculous tissue in the lungs and lymph nodes70. Social communication may thus act as transmission route in meerkats too41. Equally important might be intragroup aggression, with the higher infection risk observed in the breeding pair potentially explained by their aggressive assertion of dominance in this cooperatively breeding species37,41,71. Intergroup aggression, female evictions or male dispersal may be other pathways by which TB spreads beyond one social group41,72,73. Yet, owing to the disease’s long latency period, the individual circumstances leading to TB transmission are elusive even in this well-studied wildlife population. In parallel, higher temperatures and lower rainfall also increased the chance of TB outbreaks and mortality from TB in meerkats (our data and refs. 71,74; possibly mediated via a reduction in body condition75 and a decline in gut symbionts76), mirroring observations from other study systems where drier environments are linked with increased TB susceptibility and prevalence77,78. Our data suggests that the allele Susu-DRB*13 was probably most beneficial when TB selection was strongest. For instance, shortly after a historic population collapse between 2012 and 2013 caused by a severe drought79, TB signs had emerged in ~20% of the population39. In one scenario, the social groups that persisted may have been those containing more resilient and longer-lived individuals—possibly carriers of Susu-DRB*13—who were better able to support pup care and had more opportunities to reproduce80,81. Alternatively, in collapsing social groups, survivors may have disseminated both TB, especially as immigrants are more regularly harassed82, and, thus, effectively spread TB during aggressive interactions. If they carried Susu-DRB*13, however, they may have profitted from greater resilience, survival and, consequently, chances to reproduce and contribute their immunogenetic make-up to the new group. Future monitoring may answer whether Susu-DRB*13 has risen in frequency even further. In summary, our work illustrates the intricacies of contemporary evolution at the MHC driven by TB-driven selection in a longitudinally sampled wildlife population.
Methods
Study site and population
The meerkat population inhabiting the Kuruman River Reserve and surrounding farms (26° 580′ S, 21° 490′ E) in the Kalahari, South Africa, has been monitored since 199336. The population includes several habituated social groups, where individual behaviour, life history events and health were recorded on a regular basis83. Tail tips were collected from all individuals born into the population at first emergence from the burrow84,85. We gathered first and final dates, social group membership, genealogy, lifetime reproductive success and records of clinical TB signs for 3,420 individuals born before 2020 from the Kalahari Meerkat Project Database (Supplementary Tables 1 and 2). We then focused on individuals observed at least 20 times, belonging to groups persisting for longer than 720 days with on average 6 or more individuals and a known TB history. Meerkats were classified as unexposed if no member of the group showed clinical signs of TB, as exposed if group members developed clinical signs of TB and as having clinical signs when lymph node swelling, lesions and physical deterioration were reported39 (Fig. 1).
Characterization of neutral genetic and MHC diversity
DNA was extracted from meerkat tail tips following the standardized Kalahari Meerkat Project protocol and used to genotype individuals at up to 18 microsatellite loci84,85, with microsatellite data available for most individuals within the Kalahari Meerkat Project Database. Microsatellite data were used to estimate individual expected microsatellite heterozygosity (Hexp) with the R package ‘GENHET’86 and assign parentage with the R package ‘relatedness’84. From parentage, we estimated lifetime reproductive success as the number offspring surviving to 1 year of age, at which juveniles reach sexual maturity.
To characterize the MHC class II, we developed and validated primers (CS1_Crcr_MHC2F: 3′-CCTGTSYCCACAGCACATTTCYT-5′; CS2_Crcr_MHC2R: 5′-GCTCAMCTCGCCGSTGCAC-3′) and successfully amplified MHC-DRB-exon 2 for 1,567 individuals following standard in-house procedures for high-throughput sequencing on an Illumina MiSeq platform (for details, see Supplementary Infomation). We used the ACACIA pipeline for quality filtering and allele calling87, resulting in sequences of 247 bp. Three sequences identified included a 9-bp insertion, resulting in sequences of 256 bp. Our analysis included 360 technical replicates of 170 individuals, showing repeatability at individual level of 79.4% and repeatability at allele level of 96.1%.
MHC class II gene annotation
We used reference-guided transcriptome assembly of 14 publicly available meerkat tissues (for details, see Supplementary Table 3) and using hisat288 aligned them to the current best meerkat reference genome (GCF_006229205)89,90. The MHC class II annotation was performed using blastn91 with human class II query sequences against the meerkat reference genome89,90. All BLAST hits were manually inspected along with aligned transcripts to determine correct splice sites and open reading frames. To determine which locus each allele belonged to, we compared identified DRB exon 2 alleles to reference sequence of each annotated DRB gene using blastn92,93.
MHC supertyping and allelic divergence
We clustered MHC alleles into supertypes based on shared physicochemical properties at PSSs presumed to be involved in antigen binding94,95,96. PSSs were identified by comparing model 7 and model 8 in CodeML encoded in the program PAML497, which yielded 14 PSSs across the 37 alleles. After transcribing the amino acids at those 14 PSS into a matrix of z values describing their physicochemical properties98, we applied the find.cluster() and dapc() functions (that is, discriminant analysis of principal components) of the package ‘adegenet’99, and, based on goodness-of-fit assessment via a scores and x values, arrived at 12 clusters as most reliable supertype grouping. In addition to MHC supertypes, the divergence of MHC alleles (that is, mean and sum p-distance for amino acid alleles) was calculated using the DistCalc() function included in the ‘MHCtools’ package100.
MHC haplotyping
In contrast to supertyping, which is often performed to gain functional information and increase statistical power in MHC studies101, haplotyping provides information on alleles inherited together, forming evolutionary units. MHC haplotypes were probabilistically inferred using the HapltFind() function in the ‘MHCtools’ package100, designed to infer haplotypes by analysing the segregation of individual alleles from parents–offspring triads (POTs). Therefore, parentage was first assigned on the basis of the microsatellite data. This was done only for a total of 843 individuals with unambiguous parent–offspring information. These individuals grouped into 153 POTs consisting of both parents and their shared offspring across all litters. The output of the HpltFind() was then manually curated to exclude rare alleles (<8%) and two alleles (that is, Susu-DRB*07 and Susu-DRB*14) that were not inherited by offspring reliably and therefore could not reliably be assigned to haplotypes. Manual curating is necessary as the algorithm considers single POTs rather than including related POTs across multiple generations. If alleles occur in both parents, comparing inheritance patterns across different POTs and multiple generations can be necessary to disentangle haplotypes100. After reiterating Hapltfind(), we excluded POTs with unclear haplotype assignment, successfully inferring haplotypes for 741 meerkats.
Statistics
Statistical analyses were performed using R (ref. 102) versions 4.2.3. and 4.3.2 in RStudio103, with plots generated using the ggplot2104 and sjplot105 packages. For all analyses, given the high number of control variables throughout, we chose an information criterion based approach, using the function dregde() of the ‘MuMin’ package106 to identify the best models (delta AIC <2; code and data can be accessed publically107). We reported the full model average of all best models and report false discovery rate-corrected P values to account for multiple testing108 because we calculated models separately for each candidate MHC allele, supertype and haplotype associated with TB.
Evolution at the MHC versus neutral markers
Aside from calculating individual Hexp as an explanatory variable in later analyses, we contrasted the evenness of MHC and microsatellite allele distributions and divergence over time to ascertain whether the MHC is indeed under selection. To contrast allele frequency distribution, we calculated the Simpson Evenness Index for both microsatellite and MHC data and compared the output using a paired t-test. A more even distribution (Simpson Index closer to 0) at the MHC than at neutral markers suggests overdominance and rare-allele advantage, whereas a lower evenness (Simpson Index closer to 1) indicates directional and fluctuating selection9. To estimate molecular divergence, we estimated θ^ of Fst calculated from each allele or locus for each pair of years and tested whether temporal and genetic distances were independent using a Mantel test29. The Fst values were then regressed against the number of years under the assumption that the temporal genetic divergence of MHC alleles should be higher than that found at neutral genetic markers, if selection varied over time29. The model included an interaction term between temporal distance and whether the value came from the MHC or microsatellite data. A significant interaction implies a difference in slope—and thus in selection—between the MHC and neutral markers.
Co-occurrence analysis of MHC association with developing clinical signs of TB
We used a probabilistic model of co-occurrence included in the ‘cooccur’ package109 for each year to assess which MHC allele, supertype and haplotype was more or less frequently associated with TB than expected by chance. This and further analyses were computed on alleles, supertypes and haplotypes present in at least 5% of the study population (Supplementary Fig. 1b–d). Although filtering is necessary to maintain statistical power101, this approach may lower chances to uncover links to recombinant or novel alleles arising within the study period. Furthermore, we restricted our analysis to years with more than ten TB-positive individuals (1999–2020), to MHC alleles and supertypes present in at least ten individuals, and to haplotypes present in at least five individuals. MHC alleles, supertypes and haplotypes with co-occurrence data for all years and multiple significant associations were considered as candidates for all follow-up analyses.
Generalized linear model of MHC association with TB susceptibility, resilience and lifetime reproductive success
To assess the impact of specific MHC alleles, supertypes and haplotypes and diversity on TB susceptibility (that is, ever developing clinical signs of TB), we ran a generalized linear model with binomial error structure, controlling for the biological factors sex, age and individual’s neutral genetic diversity (Hexp)60 as well as socio-ecological factors, namely dominance status (that is, whether an individual had ever attained dominance). MHC diversity metrics included the number of alleles and supertypes, mean and sum amino acid p-distance between alleles, and haplotype heterozygosity. To account for changes in TB prevalence throughout the study period and allow for a nonlinear effect of time in relation to MHC measures, we included individual death year as linear and quadratic term, and interactions between the year variables and MHC measures. Lifetime reproductive success was assessed considering a negative binomial error distribution while otherwise keeping the same model structure. The model assessing the factors influencing TB resilience (that is, number of years surviving with TB signs; log-transformed) excluded final age as explanatory variable and used a Gaussian distribution instead. To improve convergence, age, number of MHC alleles and supertypes, and year were rescaled. We excluded individuals with missing sex and microsatellite information and the only two individuals that carried seven MHC alleles. Analyses of alleles and supertypes were conducted on data from 1,497 individuals, while haplotype analyses used data from 714 individuals.
Survival analyses of MHC association with TB progression and survival
The temporal dynamics of TB progression and survival was modelled on 3-month periods (January to March, April to June, July to September and October to December) using the mixed-effects Cox model from the package ‘coxme’110. For TB progression, models used the transition to clinical signs of TB before the start of the next period as endpoints. One model was run for each MHC allele, supertype and haplotype and MHC diversity measure, including only individuals observed at least five times during the respective period. We controlled for biological and socio-ecological factors as described earlier and added population density (meerkats per squared kilometre), social group size, known environmental correlates of survival (that is, mean maximum temperature and mean rainfall; rescaled)74,76 and season (January to March, April to June, July to September and October to December). Year was included as a linear and quadratic term, including the interactions between year and MHC measures. Meerkat ID was coded as a random factor. For modelling meerkat survival, we used the same model structure while including individual TB status (unexposed, exposed and signs) and the interactions between TB status and MHC measures with and without time to account for MHC effects on survival conditional on TB status and temporal shifts. After excluding individuals with missing metadata, the modelled datasets comprised 1,535 individuals and 12,936 meerkat periods for the TB progression analysis, and 13,804 meerkat periods for the survival analysis. From haplotyped individuals, we modelled with 722 individuals in 6,970 meerkat periods for the progression and 725 individuals in 7,492 meerkat periods for the survival analysis.
Delineating between mechanisms of PMBS
We are aware that irrefutable evidence for the distinct mechanisms of PMBS is achievable only in connection with a comparison across populations9. While we cannot provide this comparison, we have temporally dense, long-term data. A critical evaluation of MHC–pathogen associations over time, combined with comparisons to neutral evolution, can at minimum suggest the key PMBS mechanisms at play. First, we compared the fit of null models with models including specific MHC alleles, supertypes and haplotypes. This was done to test whether effects of MHC diversity (that is, number of MHC alleles and supertypes or haplotype heterozygosity) in null models are possibly driven by individual alleles. In cases where single alleles, supertypes and haplotypes appear linked to TB infection status, we additionally compared null models with and without individuals with the specific MHC allele, supertype and haplotype. Next, although a crude measure, we used a G test to determine whether specific alleles, supertypes and haplotypes were more likely to be found in meerkats with a higher number of alleles52,63.
Finally, we calculated the change in MHC allele, supertype and haplotype frequency from one year to the next. Values below 0 imply the allele became less frequent, whereas values above 0 imply the allele become more frequent from one year to the next. We then correlated frequency change of candidate alleles with TB prevalence, as a measure of selection strength. The same time-lag approach was previously used in a short-lived vole population to account for selection in the previous year44.
Inclusion and ethics statement
Research for this study was conducted with permission of the ethical committee of 383 Pretoria University and the Northern Cape Conservation Service, South Africa (Permit 384 number: EC031-13, FAUNA 1020-2016). The field portion of our study was conducted at the Kalahari Meerkat Project, located at a remote site in the Kalahari Desert of South Africa. Fieldwork was discussed with and approved by the local stakeholders of the Kuruman River Reserve. As is the norm at the Kalahari Meerkat Project, fieldwork was conducted by an international and diverse team, including South Africa-born volunteers, to whom we are indebted.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Data availability
All data used for statistical analyses are made publicly available via figshare at https://doi.org/10.6084/m9.figshare.26172985 (ref. 107). Source data are provided with this paper.
Code availability
All code used for statistical analyses is publicly available via figshare at https://doi.org/10.6084/m9.figshare.26172985 (ref. 107).
References
Fijarczyk, A. & Babik, W. Detecting balancing selection in genomes: limits and prospects. Mol. Ecol. 24, 3529–3545 (2015).
Kloch, A. et al. Signatures of balancing selection in toll-like receptor (TLRs) genes—novel insights from a free-living rodent. Sci. Rep. 8, 8361 (2018).
Quéméré, E. et al. Pathogen‐mediated selection favours the maintenance of innate immunity gene polymorphism in a widespread wild ungulate. J. Evol. Biol. 34, 1156–1166 (2021).
Wegner, K. M., Kalbe, M., Kurtz, J., Reusch, T. B. H. & Milinski, M. Parasite selection for immunogenetic optimality. Science 301, 1343 (2003).
Wroblewski, E. E. et al. Malaria-driven adaptation of MHC class I in wild bonobo populations. Nat. Commun. 14, 1033 (2023).
Radwan, J., Babik, W., Kaufman, J., Lenz, T. L. & Winternitz, J. Advances in the evolutionary understanding of MHC polymorphism. Trends Genet. 36, 298–311 (2020).
Sommer, S. The importance of immune gene variability (MHC) in evolutionary ecology and conservation. Front. Zool. 2, 16 (2005).
Kaufman, J. Unfinished business: evolution of the MHC and the adaptive immune system of jawed vertebrates. Annu. Rev. Immunol. 36, 383–409 (2018).
Spurgin, L. G. & Richardson, D. S. How pathogens drive genetic diversity: MHC, mechanisms and misunderstandings. Proc. R. Soc. B 277, 979–988 (2010).
Takahata, N. & Nei, M. Allelic genealogy under overdominant and frequency-dependent selection and polymorphism of major histocompatibility complex loci. Genetics 124, 967–978 (1990).
Borghans, J. A. M., Beltman, J. B. & De Boer, R. J. MHC polymorphism under host–pathogen coevolution. Immunogenetics 55, 732–739 (2004).
Eizaguirre, C., Lenz, T. L., Kalbe, M. & Milinski, M. Rapid and adaptive evolution of MHC genes under parasite selection in experimental vertebrate populations. Nat. Commun. 3, 621 (2012).
Kubinak, J. L., Ruff, J. S., Hyzer, C. W., Slev, P. R. & Potts, W. K. Experimental viral evolution to specific host MHC genotypes reveals fitness and virulence trade-offs in alternative MHC types. Proc. Natl Acad. Sci. USA 109, 3422–3427 (2012).
Phillips, K. P. et al. Immunogenetic novelty confers a selective advantage in host–pathogen coevolution. Proc. Natl Acad. Sci. USA 115, 1552–1557 (2018).
Bolnick, D. I. & Stutz, W. E. Frequency dependence limits divergent evolution by favouring rare immigrants over residents. Nature 546, 285–288 (2017).
Schmid, D. W. et al. MHC class II genes mediate susceptibility and resistance to coronavirus infections in bats. Mol. Ecol. 32, 3989–4002 (2023).
Bonneaud, C., Perez-Tris, J., Federici, P., Chastel, O. & Sorci, G. Major histocompatibility alleles associated with local resistance to malaria in a passerine. Evolution 60, 383–389 (2006).
Brisson, D. Negative frequency-dependent selection is frequently confounding. Front. Ecol. Evol. 6, 10 (2018).
Bernatchez, L. & Landry, C. MHC studies in nonmodel vertebrates: what have we learned about natural selection in 15 years? J. Evol. Biol. 16, 363–377 (2003).
Oliver, M. K., Lambin, X., Cornulier, T. & Piertney, S. B. Spatio-temporal variation in the strength and mode of selection acting on major histocompatibility complex diversity in water vole (Arvicola terrestris) metapopulations. Mol. Ecol. 18, 80–92 (2009).
Acevedo-Whitehouse, K., Gulland, F. M. & Bowen, L. MHC class II DRB diversity predicts antigen recognition and is associated with disease severity in California sea lions naturally infected with Leptospira interrogans. Infect. Genet. Evol. 57, 158–165 (2018).
Lenz, T. L., Wells, K., Pfeiffer, M. & Sommer, S. Diverse MHC IIB allele repertoire increases parasite resistance and body condition in the long-tailed giant rat (Leopoldamys sabanus). BMC Evol. Biol. 9, 269 (2009).
Oliver, M. K., Telfer, S. & Piertney, S. B. Major histocompatibility complex (MHC) heterozygote superiority to natural multi-parasite infections in the water vole (Arvicola terrestris). Proc. R. Soc. B 276, 1119–1128 (2008).
Eizaguirre, C., Lenz, T. L., Kalbe, M. & Milinski, M. Divergent selection on locally adapted major histocompatibility complex immune genes experimentally proven in the field. Ecol. Lett. 15, 723–731 (2012).
Landry, C. & Bernatchez, L. Comparative analysis of population structure across environments and geographical scales at major histocompatibility complex and microsatellite loci in Atlantic salmon (Salmo salar). Mol. Ecol. 10, 2525–2539 (2001).
Ejsmond, M. J. & Radwan, J. Red Queen processes drive positive selection on major histocompatibility complex (MHC) genes. PLoS Comput. Biol. 11, e1004627 (2015).
Ejsmond, M. J., Babik, W. & Radwan, J. MHC allele frequency distributions under parasite-driven selection: a simulation model. BMC Evol. Biol. 10, 332 (2010).
Westerdahl, H., Hansson, B., Bensch, S. & Hasselquist, D. Between‐year variation of MHC allele frequencies in great reed warblers: selection or drift? J. Evol. Biol. 17, 485–492 (2004).
Charbonnel, N. & Pemberton, J. A long-term genetic survey of an ungulate population reveals balancing selection acting on MHC through spatial and temporal fluctuations in selection. Heredity 95, 377–388 (2005).
Global Tuberculosis Report 2023 (Global Tuberculosis Programme, 2023).
Reis, A. C., Ramos, B., Pereira, A. C. & Cunha, M. V. The hard numbers of tuberculosis epidemiology in wildlife: a meta‐regression and systematic review. Transbound. Emerg. Dis. 68, 3257–3276 (2021).
Fernandez-de-Mera, I. G. et al. Impact of major histocompatibility complex class II polymorphisms on Iberian red deer parasitism and life history traits. Infect. Genet. Evol. 9, 1232–1239 (2009).
Galindo, R. C. et al. Gene expression profiles of European wild boar naturally infected with Mycobacterium bovis. Vet. Immunol. Immunopathol. 129, 119–125 (2009).
Sveinbjornsson, G. et al. HLA class II sequence variants influence tuberculosis risk in populations of European ancestry. Nat. Genet. 48, 318–322 (2016).
Waters, W. et al. MHC class II-restricted, CD4+ T-cell proliferative responses of peripheral blood mononuclear cells from Mycobacterium bovis-infected white-tailed deer. Vet. Immunol. Immunopathol. 76, 215–229 (2000).
Clutton-Brock, T. & Manser, M. in Cooperative Breeding in Vertebrates: Studies of Ecology, Evolution, and Behavior (eds Koenig, W. D. & Dickinson, J. L.) 294–317 (Cambridge Univ. Press, 2016); https://doi.org/10.1017/CBO9781107338357.018
Young, A. J. et al. Stress and the suppression of subordinate reproduction in cooperatively breeding meerkats. Proc. Natl Acad. Sci. USA 103, 12005–12010 (2006).
Dyble, M., Houslay, T. M., Manser, M. B. & Clutton-Brock, T. Intergroup aggression in meerkats. Proc. R. Soc. B 286, 20191993 (2019).
Müller‐Klein, N. et al. Two decades of tuberculosis surveillance reveal disease spread, high levels of exposure and mortality and marked variation in disease progression in wild meerkats. Transbound. Emerg. Dis. 69, 3274–3284 (2022).
Parsons, S. D. C., Drewe, J. A., Gey Van Pittius, N. C., Warren, R. M. & Van Helden, P. D. Novel cause of tuberculosis in meerkats, South Africa. Emerg. Infect. Dis. 19, 2004–2007 (2013).
Drewe, J. A. Who infects whom? Social networks and tuberculosis transmission in wild meerkats. Proc. Biol. Sci. 277, 633–642 (2010).
Donadio, J. et al. Characterizing tuberculosis progression in wild meerkats (Suricata suricatta) from fecal samples and clinical signs. J. Wildl. Dis. 58, 309–321 (2022).
Drewe, J. A., Foote, A. K., Sutcliffe, R. L. & Pearce, G. P. Pathology of Mycobacterium bovis infection in wild meerkats (Suricata suricatta). J. Comp. Pathol. 140, 12–24 (2009).
Migalska, M. et al. Long term patterns of association between MHC and helminth burdens in the bank vole support Red Queen dynamics. Mol. Ecol. 31, 3400–3415 (2022).
Huang, W. et al. Contemporary selection on MHC genes in a free‐living ruminant population. Ecol. Lett. 25, 828–838 (2022).
Hess, C. M., Wang, Z. & Edwards, S. V. Evolutionary genetics of Carpodacus mexicanus, a recently colonized host of a bacterial pathogen, Mycoplasma gallisepticum. Genetica 129, 217–225 (2007).
Winternitz, J. C., Wares, J. P., Yabsley, M. J. & Altizer, S. Wild cyclic voles maintain high neutral and MHC diversity without strong evidence for parasite-mediated selection. Evol. Ecol. 28, 957–975 (2014).
Fraser, B. A., Ramnarine, I. W. & Neff, B. D. Temporal variation at the MHC class IIb in wild populations of the guppy (Poecilia reticulata). Evolution 64, 2086–2096 (2010).
Brouwer, L. et al. MHC-dependent survival in a wild population: evidence for hidden genetic benefits gained through extra-pair fertilizations. Mol. Ecol. 19, 3444–3455 (2010).
Worley, K. et al. MHC heterozygosity and survival in red junglefowl. Mol. Ecol. 19, 3064–3075 (2010).
Savage, A. E., Mulder, K. P., Torres, T. & Wells, S. Lost but not forgotten: MHC genotypes predict overwinter survival despite depauperate MHC diversity in a declining frog. Conserv. Genet. 19, 309–322 (2018).
Kloch, A., Baran, K., Buczek, M., Konarzewski, M. & Radwan, J. MHC influences infection with parasites and winter survival in the root vole Microtus oeconomus. Evol. Ecol. 27, 635–653 (2013).
Sauermann, U. et al. Mhc class I haplotypes associated with survival time in simian immunodeficiency virus (SIV)-infected rhesus macaques. Genes Immun. 9, 69–80 (2008).
Chandra, P., Grigsby, S. J. & Philips, J. A. Immune evasion and provocation by Mycobacterium tuberculosis. Nat. Rev. Microbiol. 20, 750–766 (2022).
de Martino, M., Lodi, L., Galli, L. & Chiappini, E. Immune response to Mycobacterium tuberculosis: a narrative review. Front. Pediatr. 7, 350 (2019).
Ferluga, J., Yasmin, H., Al-Ahdal, M. N., Bhakta, S. & Kishore, U. Natural and trained innate immunity against Mycobacterium tuberculosis. Immunobiology 225, 151951 (2020).
Ndong Sima, C. A. A. et al. The immunogenetics of tuberculosis (TB) susceptibility. Immunogenetics 75, 215–230 (2023).
Orme, I. M., Robinson, R. T. & Cooper, A. M. The balance between protective and pathogenic immune responses in the TB-infected lung. Nat. Immunol. 16, 57–63 (2015).
Kalbe, M. et al. Lifetime reproductive success is maximized with optimal major histocompatibility complex diversity. Proc. R. Soc. B 276, 925–934 (2008).
Canal, D. et al. MHC class II supertypes affect survival and lifetime reproductive success in a migratory songbird. Mol. Ecol. 33, e17554 (2024).
Sepil, I., Lachish, S. & Sheldon, B. C. MHC-linked survival and lifetime reproductive success in a wild population of great tits. Mol. Ecol. 22, 384–396 (2013).
Paterson, S., Wilson, K. & Pemberton, J. M. Major histocompatibility complex variation associated with juvenile survival and parasite resistance in a large unmanaged ungulate population (Ovis aries L.). Proc. Natl Acad. Sci. USA 95, 3714–3719 (1998).
Arora, J. et al. HLA heterozygote advantage against HIV-1 is driven by quantitative and qualitative differences in HLA allele-specific peptide presentation. Mol. Biol. Evol. 37, 639–650 (2020).
Froeschke, G. & Sommer, S. MHC class II DRB variability and parasite load in the striped mouse (Rhabdomys pumilio) in the Southern Kalahari. Mol. Biol. Evol. 22, 1254–1259 (2005).
Dippenaar, A. et al. Whole genome sequence analysis of Mycobacterium suricattae. Tuberculosis 95, 682–688 (2015).
Olayemi, A. et al. MHC-I alleles mediate clearance and antibody response to the zoonotic Lassa virus in Mastomys rodent reservoirs. PLoS Negl. Trop. Dis. 18, e0011984 (2024).
Schad, J., Dechmann, D. K., Voigt, C. C. & Sommer, S. Evidence for the ‘good genes’ model: association of MHC class II DRB alleles with ectoparasitism and reproductive state in the neotropical lesser bulldog bat, Noctilio albiventris. PLoS ONE 7, e37101 (2012).
Westerdahl, H. et al. Associations between malaria and MHC genes in a migratory songbird. Proc. R. Soc. B 272, 1511–1518 (2005).
Fleischer, R. et al. Immunogenetic-pathogen networks shrink in Tome’s spiny rat, a generalist rodent inhabiting disturbed landscapes. Commun. Biol. 7, 1–11 (2024).
Alexander, K. A. et al. Emerging tuberculosis pathogen hijacks social communication behavior in the group-living banded mongoose (Mungos mungo). mBio https://doi.org/10.1128/mbio.00281-16 (2016).
Patterson, S., Drewe, J. A., Pfeiffer, D. U. & Clutton‐Brock, T. H. Social and environmental factors affect tuberculosis related mortality in wild meerkats. J. Anim. Ecol. 86, 442–450 (2017).
Mares, R., Bateman, A. W., English, S., Clutton-Brock, T. H. & Young, A. J. Timing of predispersal prospecting is influenced by environmental, social and state-dependent factors in meerkats. Anim. Behav. 88, 185–193 (2014).
Maag, N., Cozzi, G., Clutton-Brock, T. & Ozgul, A. Density-dependent dispersal strategies in a cooperative breeder. Ecology 99, 1932–1941 (2018).
Paniw, M. et al. Higher temperature extremes exacerbate negative disease effects in a social mammal. Nat. Clim. Chang. 12, 284–290 (2022).
Paniw, M., Maag, N., Cozzi, G., Clutton-Brock, T. & Ozgul, A. Life history responses of meerkats to seasonal changes in extreme environments. Science 363, 631–635 (2019).
Risely, A. et al. Climate change drives loss of bacterial gut mutualists at the expense of host survival in wild meerkats. Glob. Change Biol. 29, 5816–5828 (2023).
Alexander, K. A., Sanderson, C. E. & Laver, P. N. in Tuberculosis, Leprosy and Mycobacterial Diseases of Man and Animals: The Many Hosts of Mycobacteria (eds Mukundan, H. et al.) 386–401 (CABI, 2015); https://doi.org/10.1079/9781780643960.0386
Gortázar, C., De La Fuente, J., Perelló, A. & Domínguez, L. Will we ever eradicate animal tuberculosis? Ir. Vet. J. 76, 24 (2023).
Thorley, J., Duncan, C., Gaynor, D., Manser, M. B. & Clutton-Brock, T. Disentangling the effects of temperature and rainfall on the population dynamics of Kalahari meerkats. Oikos 2025, e10988 (2025).
Duncan, C., Manser, M. B. & Clutton‐Brock, T. Decline and fall: the causes of group failure in cooperatively breeding meerkats. Ecol. Evol. 11, 14459–14474 (2021).
Van de Ven, T. M., Fuller, A. & Clutton‐Brock, T. H. Effects of climate change on pup growth and survival in a cooperative mammal, the meerkat. Funct. Ecol. 34, 194–202 (2020).
Kutsukake, N. & Clutton-Brock, T. H. The number of subordinates moderates intrasexual competition among males in cooperatively breeding meerkats. Proc. R. Soc. B 275, 209–216 (2007).
Clutton‐Brock, T. et al. Reproduction and survival of suricates (Suricata suricatta) in the southern Kalahari. Afr. J. Eco 37, 69–80 (1999).
Nielsen, J. F. et al. Inbreeding and inbreeding depression of early life traits in a cooperative mammal. Mol. Ecol. 21, 2788–2804 (2012).
Spong, G. F., Hodge, S. J., Young, A. J. & Clutton‐Brock, T. H. Factors affecting the reproductive success of dominant male meerkats. Mol. Ecol. 17, 2287–2299 (2008).
Coulon, A. GENHET: an easy‐to‐use R function to estimate individual heterozygosity. Mol. Ecol. Resour. 10, 167–169 (2010).
Gillingham, M. A. et al. A novel workflow to improve genotyping of multigene families in wildlife species: an experimental set‐up with a known model system. Mol. Ecol. Resour. 21, 982–998 (2021).
Kim, D., Paggi, J. M., Park, C., Bennett, C. & Salzberg, S. L. Graph-based genome alignment and genotyping with HISAT2 and HISAT-genotype. Nat. Biotechnol. 37, 907–915 (2019).
Dudchenko, O. et al. De novo assembly of the Aedes aegypti genome using Hi-C yields chromosome-length scaffolds. Science 356, 92–95 (2017).
Dudchenko, O. et al. The Juicebox Assembly Tools module facilitates de novo assembly of mammalian genomes with chromosome-length scaffolds for under $1000. Preprint at bioRxiv https://doi.org/10.1101/254797 (2018).
Altschul, S. F., Gish, W., Miller, W., Myers, E. W. & Lipman, D. J. Basic local alignment search tool. J. Mol. Biol. 215, 403–410 (1990).
Silver, L. W. et al. A targeted approach to investigating immune genes of an iconic Australian marsupial. Mol. Ecol. 31, 3286–3303 (2022).
Peel, E. et al. Best genome sequencing strategies for annotation of complex immune gene families in wildlife. GigaScience 11, giac100 (2022).
Lighten, J. et al. Evolutionary genetics of immunological supertypes reveals two faces of the Red Queen. Nat. Commun. 8, 1294 (2017).
Schwensow, N., Fietz, J., Dausmann, K. H. & Sommer, S. Neutral versus adaptive genetic variation in parasite resistance: importance of major histocompatibility complex supertypes in a free-ranging primate. Heredity 99, 265–277 (2007).
Sepil, I., Lachish, S., Hinks, A. E. & Sheldon, B. C. MHC supertypes confer both qualitative and quantitative resistance to avian malaria infections in a wild bird population. Proc. R. Soc. B 280, 20130134 (2013).
Yang, Z. PAML 4: phylogenetic analysis by maximum likelihood. Mol. Biol. Evol. 24, 1586–1591 (2007).
Sandberg, M., Eriksson, L., Jonsson, J., Sjöström, M. & Wold, S. New chemical descriptors relevant for the design of biologically active peptides. A multivariate characterization of 87 amino acids. J. Med. Chem. 41, 2481–2491 (1998).
Jombart, T., Devillard, S. & Balloux, F. Discriminant analysis of principal components: a new method for the analysis of genetically structured populations. BMC Genet. 11, 94 (2010).
Roved, J., Hansson, B., Stervander, M., Hasselquist, D. & Westerdahl, H. MHCtools—an R package for MHC high‐throughput sequencing data: genotyping, haplotype and supertype inference, and downstream genetic analyses in non‐model organisms. Mol. Ecol. Resour. 22, 2775–2792 (2022).
Gaigher, A., Burri, R., San-Jose, L. M., Roulin, A. & Fumagalli, L. Lack of statistical power as a major limitation in understanding MHC-mediated immunocompetence in wild vertebrate populations. Mol. Ecol. 28, 5115–5132 (2019).
R Core Team. R: A Language and Environment for Statistical Computing (R Foundation for Statistical Computing, 2018).
Posit PBC. RStudio: integrated development environment for R. GitHub https://github.com/rstudio/rstudio (2012).
Wickham, H. ggplot2. WIREs Comput. Stat. 3, 180–185 (2011).
Lüdecke, M. D. sjPlot: data visualization for statistics in social science. CRAN https://cran.r-project.org/package=sjPlot (2023).
Bartón, K. MuMIn: model selection and model averaging based on information criteria. CRAN https://cran.r-project.org/package=MuMIn (2018).
Müller-Klein, N. et al. Twenty-years of tuberculosis-driven selection shaped the evolution of meerkat MHC. Datasets and code. figshare https://doi.org/10.6084/m9.figshare.26172985 (2025).
Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B 57, 289–300 (1995).
Griffith, D. M., Veech, J. A. & Marsh, C. J. cooccur: probabilistic species co-occurrence analysis in R. J. Stat. Soft. 69, 1–17 (2016).
Therneau, T. M. coxme: mixed effects Cox models. R Package v.2. CRAN https://cran.r-project.org/package=coxme (2015).
Acknowledgements
We thank A. Caranco and A. Akbal for the support with laboratory work and G. Camenisch for his logistic support during sample selection. We thank C. Duncan and M. Paniw for helpful discussions and sharing code, T. Vink for support with the database and of course all Kalahari Meerkat Project field managers and volunteers involved in meerkat data collection over the years. We thank V. Domingues for editorial support and two anonymous reviewers as well as J. N. Weber for their constructive feedback. The study was funded by German Research Foundation DFG SO 428/15-1 (S.S.); European Research Council 294494 (T.C.-B.); European Research Council 742808 (T.C.-B.); Human Frontier Science Program RGP0051/2017 (T.C.-B.); University of Zurich (M.M.); MAVA Foundation KRP 16026 (M.M. and T.C.-B.), the Swiss National Science Foundation and the Mammal Research Institute at the University of Pretoria, South Africa and Zoo Zürich. N.M.-K. received financial support for early career researchers from ProTrainU, Graduate and Professional Training Center at Ulm University.
Funding
Open access funding provided by Universität Ulm.
Author information
Authors and Affiliations
Contributions
Funding acquisition: S.S., P.S.C.S., A.R., M.M. and T.C.-B. Study design and conceptualization: N.M.-K., D.W.M., S.S. and P.S.C.S. Data collection and curating: N.M.-K., M.M. and T.C.-B. Laboratory analyses: K.W., V.R., N.M.-K. and P.S.C.S. Statistical analyses: N.M.-K., D.W.M., V.R. and L.S. Paper writing: N.M.-K., D.W.M., A.R., P.S.C.S. and S.S. All authors commented and approved the submitted version of the paper.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Ecology & Evolution thanks Wei Huang, Jesse Weber and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information
Supplementary Material and Methods, Results, References, Figs. 1–5 and Tables 1–3 and 5–9.
Supplementary Data 1
Amino acid sequence alignment of all reliably identified alleles for Suricata suricatta. Numbers indicate the amino acid positions of the β1-domain, while the asterisk indicates the amino-acid positions of ABS and conserved sites identified from the human HLA-DR1 β-chain. The 14 amino acid sites that are presumably under positive selection in S. suricatta are also indicated with an asterisk.
Supplementary Data 2
Statistical source data (data explicitly stated in the main text, excerpts of Supplementary Tables 9–14, ordered by order of results as they appear in the text).
Supplementary Tables 9–14
Model output for the statistical analyses of the link between meerkat MHC and TB.
Supplementary Data 1
Statistical source data.
Supplementary Data 2
Statistical source data.
Supplementary Data 3
Statistical source data.
Supplementary Data 4
Statistical source data.
Source data
Source Data Fig. 2
Statistical source data.
Source Data Fig. 3
Statistical source data.
Source Data Fig. 4
Statistical source data.
Source Data Fig. 5
Statistical source data.
Source Data Fig. 6
Statistical source data.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Müller-Klein, N., Risely, A., Wilhelm, K. et al. Twenty years of tuberculosis-driven selection shaped the evolution of the meerkat major histocompatibility complex. Nat Ecol Evol (2025). https://doi.org/10.1038/s41559-025-02837-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41559-025-02837-x
This article is cited by
-
Red Queen dynamics shape host immunogenetic diversity
Nature Ecology & Evolution (2025)