Introduction

In the northern hemisphere, demography and spatial genetic structure of diverse taxa has been shaped by migration patterns after the last glacial maximum that occurred 26–20,000 ya (Hewitt 2000; Schmitt 2007). Forced southward by the expanding glacier, most temperate species survived the glacial maximum in the refugia, and after ice shield retracted, they migrated north recolonizing habitats freed from ice. This pattern is widespread among mammalian taxa (Baca et al. 2017), and studies of isolation within glacial refugia, and the timing and mode of expansion, are important for our understanding of evolutionary processes such as adaptation, speciation, and extinction (Stewart et al. 2010).

Using mitochondrial DNA, numerous species have been divided into lineages corresponding to the glacial refugia (Wielstra et al. 2013; Klütsch et al. 2012; Mäkinen and Merilä 2008). It has been suggested that physiological traits, in particular those associated with geographical variation in the environmental features, may differ between the lineages due to different conditions they experienced while in refugia and during the subsequent migrations (Kotlík et al. 2006). For instance, in yellow-necked mouse (Apodemus flavicollis), frequency of mtDNA haplogroups correlates with winter temperature (Czarnomska et al. 2019). Little is known about functional genetic variation associated with these local adaptations, yet recently it has been shown that bank voles Myodes glareolus originating from two different glacial refugia have different variants in B-globin what has been linked to a resistance against oxidative stress (Kotlík et al. 2014).

Phylogeographic division of species into clades corresponding to glacial refugia is usually based on variation in neutral markers, such mtDNA, although they reflect only a tiny part of the overall genetic variation. The effect of demographic processes on spatial genetic variation may be altered by selection, in particular adaptation to the environmental conditions. Primarily, this mechanism is expected to affect genes whose product can be directly linked to spatially heterogeneous environment. An excellent example for studying these processes are genes encoding components of the immune system. There is a vast evidence that their variation is mostly shaped by the parasite-driven selection (Bernatchez and Landry 2003). The parasite communities, on the other hand, tend to differ between locations (Haukisalmi and Henttonen 2000) constituting spatially heterogeneous selective force (Bonneaud et al. 2006; Kloch et al. 2010; Fumagalli et al. 2010). In mammals and higher vertebrates, the immune system comprises dozens of interacting molecules, yet the mechanisms of the pathogen-driven selection have been comprehensively studied only in the case of major histocompatibility complex (MHC) (e.g., Bernatchez and Landry 2003). Though the MHC plays an important role in antigen-based pathogen recognition, it is not the only nor the main factor responsible for resistance against pathogens (Jepson et al. 1997). In particular, recent studies focused on the components of the innate immunity revealing that the pattern drawn from MHC studies does not necessarily translates into other immunity loci (Kloch et al. 2018).

In the present study, we aimed to investigate the spatial variation at seven immunity loci in bank voles over a large geographic scale in bank voles, M. glareolus, in the context of post-glacial demography. Bank vole M. glareolus is considered one of the key mammal species for genetic studies of post-glacial history (Filipi et al. 2015). Its contemporary populations have been divided into six major lineages corresponding to three refugia on the Mediterranean peninsulas of Iberia, Italy, and the Balkans, two continental named Western and Eastern European, and Carpathian lineage originating from a cryptic glacial refugium in this mountain range (Deffontaine et al. 2005; Kotlík et al. 2006; Wójcik et al. 2010). There is no evidence for severe bottlenecks in bank voles, nor habitat loss, or population fragmentation, thus their genetic variation across species range can be contributed mostly to natural processes related to migration and selection.

Previous studies have shown no congruence between spatial distribution of haplotypes of two immunity loci, namely MHC DRB and TLR2, and mitochondrial lineages (Malé et al. 2012; Morger et al. 2015). However, the selection patterns may differ considerably within the same gene family, toll-like receptors being one of a notable examples (Kloch et al. 2018). Thus, for better understanding how post-glacial demography shapes variation in functional loci, it seems crucial to analyse broader set of genes. To fill this gap, in the present paper we (1) characterized genetic diversity at seven innate immunity loci, (2) analysed selection patterns in the innate immunity loci using sequence- and codon-oriented tests and (3) compared population structure at the innate immunity loci to the structure derived from mtDNA that proved to evolve under neutral conditions (Kotlík et al. 2006; Filipi et al. 2015).

Materials and methods

Material and genotyping

Genetic polymorphism in 7 innate immunity genes (TLR1, 2, 4, 5, 9, TNFa, TNFb) and in mitochondrial gene coding cytochrome b (hereafter cytB) was characterized in 69 voles originating from 10 sites (populations) across Europe (Fig. 1, Table S1). In the current work, we used samples provided by members of the scientific community (researchers are listed in the Acknowledgements), and collected as part of other studies. The tissues were obtained either from biopsies taken from anaesthetised animals (Germany, Sweden, Russia) or animals killed in accordance with the European ethical normative (Directive 2010/63/EU) through anaesthetic overdose and/or cervical dislocation (France, Poland, Slovakia, Serbia). Relevant permission from ethical committees are provided in the Supplementary Materials.

Fig. 1
figure 1

Location of the studied sites along with assignment of samples to the mitochondrial lineages: yellow—Western clade, green—Carpathian clade, blue—Balkan clade, red—Eastern clade. The background map originates from Wikimedia Commons, under Creative Commons licence, modified

From each site we analysed from 3 to 10 individuals (Table S1), which—given the length of analysed amplicons—is an accepted number for studies covering a wide geographical area providing accurate estimates of population genetic parameters (Pluzhnikov and Donnelly 1996; Moeller et al. 2007). Loci were amplified using primers designed and optimized for the bank vole, the PCR details and primer sequences with relevant references are given in Table S2. Resulting amplicons were pooled for each individual, purified twice using CleanUp kit (Aabiot). Library was prepared using Nextera XT DNA kit and sequenced in a single run on Illumina MiSeq using MiSeq Reagent Kit (300 cycles) producing 2 × 150 bp reads. Reads were processed as described in Kloch et al. (2018).

Neutral phylogeny in mitochondrial cytochrome B

First, to ensure that cytB is not under selection and thus allow for inferring neutral population structure, in DnaSP v.6 (Rozas et al. 2017) we performed a series of neutrality tests that confirmed this assumption (Tajima D = − 1.09ns, Fu and Li D = − 2.22ns, F = − 2.12ns, McDonald–Kreitman NI  = 1.164ns, G = 0.047ns). Maximum likelihood phylogenetic trees for cytB were inferred using Mega v. 7.0 (Kumar et al. 2016). The model of nucleotide evolution was determined using corrected Akaike’s Information Criteria in jModelTest version 2.1.10 (Darriba et al. 2012). The robustness of the tree was tested with 1000 bootstrap replications, using the Tien Shan red-backed vole (M. centralis) sequence as an outgroup. In the analysis, we included two mitochondrial haplotypes from each lineage described by Kotlík et al. (2006) to assure that the obtained phylogeny is concordant with previously described division of European bank voles into mitochondrial lineages.

Phylogeography and population structure

The population structure of innate immunity loci was analysed using discriminant analysis of principal components (DAPC) implemented in the R package adegenet (Jombart et al. 2010; R Core Team 2018). First, using the clustering algorithm based on k-means, we sought the best partitioning of the observed variation with no assumptions about group membership of the samples. To identify the optimal number of clusters, we used a plot of the BIC (Bayesian Information Criterion) score of a given partition against the number of clusters included in this partition, as implemented in the find.clusters function. Next, we used DAPC to investigate variation between actual populations (sampled sites).

To visualise the genealogical relationships between haplotypes we constructed minimum spanning networks using Popart (Leigh and Bryant 2015).

Tests of selection acting on innate immunity loci

We focused on functional variation of the studied innate immunity loci, and from this part of the analysis we excluded non-coding parts of the sequenced amplicons in TNFa and TNFb. We also discarded a pseudogene detected in TLR5. The pseudogenes had a 2 bp deletion in position 224 resulting in premature stop codon in position 379, and all individuals with the pseudogene were heterozygotes.

Using DnaSP v.6 we calculated basic measures of sequence diversity: the number of variable sites (S), haplotype diversity (Hd), average number of nucleotide differences (k), and nucleotide diversity per site (π). Separately for each gene, we tested for departures from neutrality using three tests suitable for single loci (Nielsen 2001): Tajima’s D (Tajima’s (1989), Fay and Wu’s H (Fay and Wu 2000), and the Ewens–Watterson test (Ewens 1972; Watterson 1978). Tajima’s D allows an excess of intermediate or low frequency alleles to be detected, while Fay and Wu’s measures the abundance of high-frequency derived alleles in relation to intermediate frequency variants. The Ewens–Watterson test, in turn, compares observed homozygosity to the homozygosity expected given the observed number of alleles. Since all these tests are sensitive to demography and background selection, we also computed three compound tests proposed by Zeng et al. (2006) which are powerful to detect positive selection and robust against demographic assumptions Zeng et al. (2006, 2007). The calculations were performed in the program dh (available from the website http://zeng-lab.group.shef.ac.uk) using a mouse sequence as an outgroup and with default 10,000 coalescent simulations.

Since selection may affect particular parts of a protein differently, we aimed to detect sites under selection based on the dN/dS ratio at each codon (Kosakovsky Pond and Frost 2005) using the DataMonkey server (Delport et al. 2010). First, we tested for possible recombination events that might have affected the diversity of the studied loci using Genetic Algorithm Recombination Detection (GARD) (Kosakovsky Pond et al. 2006), and the identified recombination effects were accounted for in the models. Next, we ran two phylogenetically controlled models of selection: (1) MEME, the mixed effects model of evolution, which allows for the detection of episodic positive selection (Murrell et al. 2012), and (2) FUBAR, the fast unconstrained Bayesian approximation model, which allows for the detection of sites under positive or purifying selection (Murrell et al. 2013).

To check the location of codons under selection at innate immunity genes, we identified and annotated domains within the studied proteins using SMART (Simple Modular Architecture Research Tool) which allows domains to be identified and annotated (Letunic and Bork 2018). Additionally, in TLRs using LRR finder (Offord et al. 2010) we identified leucine-rich repeats (LRRs) which form functionally important sites of these proteins, as they are involved in interactions with PAMPs or other components of the immune system.

Results

Phylogeny of cytochrome b

In cytB, we found 51 haplotypes in 68 individuals. The nucleotide evolution of cytB sequences was best described by the GTR + I model. The maximum likelihood tree (Fig. 2), despite relatively poor support of internal branches, well reflected the subdivision of European bank vole populations into four main lineages described by Kotlík et al. (2006). Haplotypes, whose assignment to mtDNA lineages was established in other studies, clearly grouped within clades detected in our analysis. This suggests that mitochondrial phylogeny from the current study follows the same pattern as reported previously.

Fig. 2
figure 2

Phylogeny of the bank vole cytochrome b, inferred by maximum likelihood method haplotypes from the current study are named by the sampling site; two haplotypes per each mitochondrial lineage described previously by Kotlík et al. (2006) are named by their Genbank accession numbers. Branch labels indicate the percent bootstrap frequencies greater than 50%. Colours correspond to lineages described by Kotlík et al. (2006): yellow—Western clade, green—Carpathian clade, blue—Balkan clade, red—Eastern clade. The putative nuclear pseudogenes are marked with purple. The number of sequences represented by each haplotype are given in brackets

Eleven haplotypes from individuals captured in sites Ard and Jur in France and Slo in Slovakia did not group within any clade, neither they formed a separate supported group (Fig. 2). Although they did not contain frame-shift mutations or premature stop codons characteristic for pseudogenes, they were considered nuclear paralogues, because they formed an early branching clade located closer to nuclear pseudogenes described by Filipi et al. (2015) than to any other known mitochondrial clades. The location of these putative pseudogenes within the tree suggests that nuclear insertion pre-dated the divergence between the mtDNA clades, and thus they were excluded from further analysis concerning cytB, as they are not reliable for mitochondrial phylogenetic inference. Notably, other samples from the three populations that included pseudogenes (i.e., Jur, Ard, and Slo) were clearly grouped within other clades what allowed us to assign them to the proper mtDNA lineages.

Disregarding the pseudogenes, six sites were assigned to a single mitochondrial lineage. Samples from Russia (Bak, Ily, Int) and Slovakia (Slo) were assigned to the Eastern lineage, all samples from Sweden (Swe) were assigned to Carpathian lineage, site Jur from France was assigned to the Western lineage (Figs. 1, 2). The three remaining sites included samples assigned to more than one lineage. In Poland (Pol), we found members of Carpathian and Eastern lineages, in France (Ard) there were individuals assigned to either Western or Carpathian lineages, in Germany (Ger)—from Western and Eastern lineages, and in Serbia (Ser)—Carpathian and Balkan. Although each lineage except Balkan included individuals from different sites and geographic areas, there were no haplotypes shared between sites except for one haplotype present in both, Ily and Int from Eastern lineage. One haplotype from Ard population was placed in the basal position to the Carpathian and Western lineages.

Population structure

To describe the population structure of the studied loci we used discriminant analysis of principal components (DAPC). First, we explored the structure with no prior assumption about the number of groups. The most probable number of clusters is identified as a point where increasing the number of clusters does not result in a considerable decrease in Bayesian Information Criterion (BIC), thus the classical BIC curve is expected to show an “elbow shape” (Jombart et al. 2010). In cytB, the structure was best described by 7–10 clusters. No structure was observed in TNFb, where BIC consistently decreased with increasing number of cluster. In the remaining loci the slope of the BIC curve levelled out after reaching 4–9 clusters, and this pattern was best visible in TLR2 (Figure S1). In cytB the resulting division resembled the geographic locations (Fig. 3), although DAPC identified three clusters within the samples assigned to the Eastern lineage (sites Bak, Ily, Int, Slo, indicated in Fig. 3 in blue, red and orange), and two clusters within the Western lineage (sites Jur and Ard, light green and light orange). In the immunity loci, the pattern was much less clear, and the membership probability of the samples was rather ambiguous in TLR2 and TNFa. In TLR2, some correspondence between geographic locations and clustering was seen, and the samples from Ural (sites Ily and Int) form a separate clade. Similarly, samples from Serbia grouped together in TLR5. Nonetheless, there was no consistent pattern across loci.

Fig. 3
figure 3

Results of DAPC clustering algorithm applied to innate immunity loci with no prior assumption about group membership of the analysed individuals. Each bar represents an individual, and the populations of origin are given along x axis. Colour indicate different clusters, and the number of clusters is denoted by k

Next, we applied DAPC to characterize the variation in immune genes between actual populations (sampling sites). In cytB, PC1 differentiated samples from Balkan clade (Serbia) and from Sweden, which contained exclusively samples from Carpathian clade. Russian sites, assigned to the Eastern clade, were discriminated from the remaining clades along PC2, although this division was weaker that in the case of PC1. In immunity genes, we obtained no consistent pattern over loci, and likewise, the genetic differences between sites did not resemble either their geographical location or the assignment of the samples to mtDNA clades (Fig. 4). For instance, in TLR1, samples from Ard in France, assigned to Western mitochondrial lineage, were differentiated along the principal axis PC1, what repeated pattern revealed by the haplotype network (see below). In TLR2, three main clusters could be seen: one containing samples from Serbia (Ser) and Ural (Int, Ily), a second consisting of samples from Eastern Europe (Pol and Bak), and a third including the remaining populations. Again, the pattern differed from the one revealed by mitochondrial phylogenetic tree. No clear pattern was found in the remaining loci, although weak division along PC1 between samples from Eastern and Western Europe could be seen in TLR4.

Fig. 4
figure 4

Differences between sites (populations) summarized by DAPC. Only first and second principal component (PC1 and PC2) are shown. Individuals are represented as dots, and circles and colours indicate samples from respective sites

In cytB, the topology of the haplotype network generally followed the pattern expected from the geographic location of the samples and their division between mitochondrial lineages. In Figure S2, three main clusters are visible. In bottom left, a cluster groups samples from the Eastern lineage (sites Ger, Ily, Int, Pol), and in bottom right, samples from Western lineage (sites Ard and Jur) are clustered. The top of the network consist of a cluster including samples assigned to the Carpathian and Balkan lineages. Contrarily, networks showing genealogical relationships between the innate immunity haplotypes generally did not mirror the assignment of the samples to the mitochondrial lineages. In TLR loci, each network consisted of a few haplotypes present at several sites, and numerous rare alleles specific for particular sites (Figure S2). Even when rare haplotypes from geographically close sites grouped together, they usually adjoined haplotypes from a site located at a long distance. For instance, the TLR1 haplotypes from France (sites Ard and Jur) formed a distinct cluster within the network, yet this cluster was separated by one substitution from a haplotype present only in Russia, and two substitutions from haplotype from Poland. The genetic distance between haplotypes varied between loci: in TLR1, TNFa, TNFb most haplotypes were separated by few substitutions, while in TLR2 and TLR5 the network was sparse, and haplotypes were separated by several substitutions.

Selection patterns in innate immunity loci

Nucleotide diversity per site (π) and haplotype diversity (Hdiv) was higher at cytB than in immunity genes loci. The immune loci differed in terms of polymorphism: the highest number of segregating sites (S), and the highest average number of nucleotide differences between sequences (k), was found in TLR2, and the lowest in TNFb (Table 1). In TLR1, TLR2 the number of haplotypes exceeded 50, and in TNFb it was only 14. However, the haplotype diversity was high in all loci, exceeding 0.7 even in the least variable TNFb.

Table 1 Species-wide diversity of seven innate immunity loci

Species-wide Tajima’s D was significant and negative in TLR4 and TLR9, and marginally not significant (p = 0.053) in TLR5 (Table 2), which indicated an excess of rare alleles. Fay and Wu’s H test, which detects an excess of high/low frequency variants compared to intermediate frequency variants, was consistently negative and significant in all loci but TNFa. EW tests were significant in TLR2, 4, 5, and 9. The F statistics of EW test, an equivalent to expected homozygosity, was similar in TLR4, TLR5, and TLR9, varying from 0.12 to 0.15, and considerably lower in TLR2 (F = 0.04, Table 2).

Table 2 Results of species-wide neutrality tests

Since the outcome of the classical neutrality tests described above may be biased due to demographic events that affected studied populations, we computed compound tests (Zeng et al. 2006, 2007) what allowed us to test for selection regardless of other processes that might affect the site-frequency spectrum, such as population expansion, bottleneck or strong structure. All compound tests (DH, HEW, DHEW) gave consistently significant results for TLR4, TLR5, and TLR9, indicating that these loci are under positive selection (Tables 2, 3).

Table 3 Number of haplotypes (h), private haplotypes (hprv), and inbreeding coefficients (Fis) per population (studied site)

Using site-specific, phylogenetically controlled dN/dS selection tests, we identified codons under selection in each studied locus (Table 4). The FUBAR model identified codons under purifying selection in all studied loci, and codons under pervasive diversifying selection in all loci but TNFa. The MEME model indicated codons under episodic positive selection in all loci except for TNFa and TLR9. In TNFa only signatures of purifying selection were found, and in TNFb each model indicated just one codon under selection. Overall, the highest number of positively and negatively selected codons was found in TLR2, and majority of codons under selection were located within leucine-rich repeats. In TLR1 and TLR4 only codons affected by pervasive purifying selection were located within LRRs. Moreover, in TLR2, TLR4, and TLR9 several codons under pervasive purifying selection were located in highly conserved, intracellular signalling TIR domain.

Table 4 Codons under site-specific dN/dS selection indicated by the FUBAR (fast unconstrained Bayesian approximation model) and MEME (mixed effects model of evolution) models

Discussion

The impact of post-glacial demography on genetic variation in Palaearctic has been comprehensively studied using neutral markers, such as mitochondrial DNA, but still not much is known how these events shaped variation in the coding parts of the genome, particularly in genes that are expected to experience selective pressure associated with adaptations to local environmental conditions. In the present paper, we studied species-wide variation at seven innate immunity loci in ten populations assigned to different mtDNA lineages corresponding to different glacial refugia. We have found clear differences between population structure at selectively neutral cytB and innate immunity genes what suggest the major role of selection over demography in shaping the diversity and population structure of these genes.

Population structure based on cytochrome b

The large-scale population structure of the bank vole based on mtDNA generally confirmed the pattern described previously (e.g., Filipi et al. 2015; Deffontaine et al. 2005). Populations located in the central part of the species range (Poland, Germany, and Serbia) included voles assigned to more than one mtDNA lineage, while sites located in the eastern and northern parts of the species range were assigned to single lineages (Eastern or Carpathian, respectively). Contrarily to the previous studies, where samples from France were all assigned to the Western lineage (Deffontaine et al. 2005), in French site Ard we found an individual assigned to the Carpathian lineage, and another one occupying a basal position in the tree. As suggested by Filipi et al. (2015), such a position may be an artefact caused by a low number of informative positions in short cytB sequences (Filipi et al. 2015), yet the cytB fragment analysed in the current study was 1074 bp.

Recent development of whole-genome sequencing techniques allows for inferring the population structure using large sets of SNP (single-nucleotide polymorphisms) scattered through the genome. Although they provide much detailed insight into the genetic variation, recent studies have shown that genome-wide random SNP markers give similarly good estimates of population structure as microsatellites (Liu et al. 2005). On the other hand, in the case of bank voles, spatial pattern derived from microsatellite analysis was concordant to that based on mtDNA (Tarnowska et al. 2019) what indicates that mtDNA variation reliably reflects the large-scale neutral variation in this species.

Our phylogenetic analysis revealed a group haplotypes that fell outside the main clades. Similar pattern was found in a study of bank vole mitogenomes (Filipi et al. 2015) and the group of haplotypes forming an early branching clade was interpreted as resulting from a transposition of mtDNA into nuclear genome. According to Filipi et al. (2015), this event occurred before the diversification of the contemporary mtDNA haplotypes. For this reason, these samples could not be used to infer post-glacial recolonization, yet in each of ours sampling sites that included putative pseudogenes, we also identified haplotypes specific for each proper mtDNA lineage. The presence of pseudogenes did not affect our results, as in the current paper the division between mtDNA lineages was used as a background for an analysis focused on the spatial variation in the innate immunity loci.

Spatial variation in immunity loci

As expected, in the innate immunity loci we found haplotypes shared between sites assigned to different mtDNA lineages what suggest that they have originated before the split of the population between glacial refugia (Morger et al. 2015). Alleles shared between lineages were more frequent in cytokines (TNFa and TNFb) than in toll-like receptors (TLRs) which are more likely to evolve under parasite-driven selection (Kloch et al. 2018). This pattern suggests long-time retention of multiple lineages what may be contributed to the role of balancing selection in shaping immune genetic diversity (Quéméré et al. 2015; Morger et al. 2015).

In each TLR locus we found a large number of private alleles unique for each site which generally did not form apparent clusters in the haplotype networks. Such an inconsistency over haplotype networks constructed for several loci suggests that the variation at these loci was shaped differently by the selection (Avise and Ball 1990). Moreover, within-site variance indicated by DAPC analysis was much higher than between-site variance, and the clusters grouped samples from various location. Similar results were reported in a phylogeographic study of bank vole MHC DQA gene, where over 90% of observed variation was distributed among individuals rather than populations, and grouping of MHC alleles did not correspond to the mtDNA clades (Malé et al. 2012). Also, a previous study of TLR2 in bank voles revealed strong differentiation between sites, a large number of private haplotypes, and no associations between TLR2 and mtDNA clades (Morger et al. 2015).

In numerous studies, a major role of parasite-driven selection in shaping the diversity of immunity genes was shown (Tollenaere et al. 2008; Kloch et al. 2010; Tschirren et al. 2012). The bank vole parasites display high genetic variability across various geographic scales (e.g., Paziewska et al. 2011; Sakka et al. 2015), what may explain the structure of haplotype networks observed in bank vole TLRs: common haplotypes may be associated with old pathogen lineages, while numerous private alleles suggests younger adaptations to local, parasite-driven selection. The phylogeographic variation at innate immunity loci studied in the current paper suggest that majority of the observed variation resulted from local, parasite-driven selection that occurred independently in each location, regardless on the large-scale demographic processes, including post-glacial colonization patterns.

A global excess of rare alleles, detected in the current study in all studied genes, may be explained by a large number of private alleles in each site. Again, this result suggests that local selection, likely due to evolutionary pressure from parasites, plays a crucial role in shaping variation at innate immunity loci over a large geographic scale. A considerable number of private alleles may indicate selection even if the population-specific test do not produce significant results (Sjöstrand et al. 2014). An excess of rare variants, usually interpreted as an evidence of a negative selection removing deleterious mutations, may also indicate positive selection and demographic events such as change in population size or population subdivision (Biswas and Akey 2006; Charlesworth et al. 1993). Although this explanation seem plausible for our study, we are aware that the high number of rare variants may be a result of low sample sizes for some populations.

Differences in selection between two families of innate immunity genes

The two families of innate immunity proteins studied in the current paper differ in function, and thus they are expected to experience different strength and direction of selection. TLRs acting as pattern-recognition proteins are considered an afferent arm of the response, and thus are expected to evolve under parasite-driven selection promoting high variability, while cytokines contributing to the signal transduction are considered an efferent arm, and are expected to be more evolutionary constrained (Beutler 2004; Chapman et al. 2016). In the components of the efferent arm, low diversity and signatures of purifying selection were previously reported in beta-defensins in mallards (Chapman et al. 2016) but interleukins Il1b, Il2 in field voles displayed signatures of balancing selection (Turner et al. 2012), and variation at these loci was associated with a resistance against parasites (Turner et al. 2011). Relatively high variation in TNFa found in our study suggests it evolves under parasite-driven selection, and indeed, associations between SNPs located in the promoter of TNFa gene and susceptibility to Puumala virus has been reported in bank voles (Guivier et al. 2010).

Recent studies have shown that innate immunity loci more often show signatures of balancing selection in a small geographic scale (Ferrer-Admetlla et al. 2008; Turner et al. 2012; Quéméré et al. 2015; Kloch et al. 2018), and on a larger geographical the positive and/or negative selection was usually reported (Nakajima et al. 2008; Wlasiuk and Nachman 2010; Babik et al. 2015). This may be explained by the fact that, contrary to positive selection, it is difficult to detect balancing selection over a long evolutionary scale (Charlesworth 2006). The neutrality tests widely used tool to infer selection are sensitive to demographic assumptions. For instance, negative values of Tajima’s D, as detected in TLR4, TLR5, and TLR9 in the current study, are commonly interpreted as indicative of negative (purifying) selection, which eliminates rare, deleterious alleles but such a result may be also a sign of population expansion but it can be also a result of the selective sweep. However, we find this explanation not likely. In mice, the genomic organization of regions adjacent to the studied loci differs considerably between TLR4, which is flanked by ~ 0.5 Mb non-coding sequences, and the remaining two neighbouring many genes. Thus, if sweep was the reason of the negative values of Tajima’s D in the studied loci, one would likely observe differences between TLR4 and TLR5 and 9. Using compound tests (Zeng et al. 2006, 2007) we circumvent rather rigorous assumptions of the classic neutrality tests. The compound tests (DH, HEW, DHEW) gave consistently significant results for TLR4, TLR5, and TLR9, indicating that these loci are under positive selection. In TNFb only HEW was significant. The HEW test is powerful in detecting positive selection but also vulnerable to population structure, so this supports our finding that TNFb gene diversity is shaped rather by demography than positive selection.

In the present paper, we identified codons under purifying selection in all innate immunity loci, which agrees with previous reports on selection acting on TLRs (Mukherjee et al. 2014; Alcaide and Edwards 2011). The codons under negative selection were evenly distributed in the extracellular domain and in the conserved TIR domain while positively selected codons, both under episodic and pervasive selection, were mostly located in the extracellular domain and within LLRs. The extracellular domain, where leucine-rich repeats responsible for PAMP binding are located, are expected to evolve under positive diversifying selection as a result of host–pathogen interactions (Fornůsková et al. 2013). Similarly, positive selection at specific codons was found in TLR1, TLR3 and TLR4 in pipits (Gonzalez-Quevedo et al. 2015). In rodents, positively selected codons were located close to sites involved in pathogen binding or heterodimerization with TLR1 (Tschirren et al. 2011). Episodic positive selection was confirmed in birds (Grueber et al. 2013). The highest number of both positively and negatively selected sites was found in TLR2, which was previously shown to evolve under parasite-driven selection (Tschirren et al. 2013; Quéméré et al. 2015), and it is maintained over evolutionary time in European bank vole populations (Morger et al. 2015).

The fact that episodic and pervasive selection were detected in the same codons in most of the studied loci suggests that either pervasive selection is responsible for shaping the diversity of the studied loci, or the episodic effects are masked by continuously acting selection (Grueber et al. 2013). This result may also be attributed to the large geographic scale of our study, and episodic selection caused by local host–pathogen interactions should be easier to detect on a smaller geographical scale.

Conclusions

Our results showed that the variation of the innate immunity loci in bank voles in a considerable part of its range does not mirror the genetic structure in mtDNA. No congruence suggest that variation at innate immunity loci was shaped by local, parasite-driven selection rather than demographic effects. Although we identified haplotypes shared between sites, most variation was observed within sites, and in most loci we detected a large number of private alleles. We found no uniform pattern of evolution among innate immunity loci, neither between nor within gene families, what suggests that selection operates differently at each locus, and the results from a single locus should not be generalized. To gain comprehensive insight into the evolution of innate immunity components, a multi-locus approach seems crucial.