Introduction

Identifying the molecular basis of evolution is a major challenge in biology. So far, efforts to detect loci under selection in plants have mostly focussed on single species. However, assuming that selection acting on variation within a species may eventually lead to speciation, a between-species comparative approach can improve the power to detect genes involved in adaptation (Nosil and Feder 2013). Interspecific comparisons allow for the detection of divergence at candidate loci and its assessment relative to the average divergence among species and to that at neutrally evolving genes. Comparative studies of intra- and interspecific genetic variation can also show whether the same loci contribute to adaptive variation in different species.

To date, comparative genomic studies on model plant species have reached different conclusions regarding the rate and magnitude of genomic change that drives adaptation and speciation. For instance, contrasting patterns of genomic divergence, including the size and location of regions under selection, were observed between dune and non-dune ecotypes of sunflower Helianthus petiolaris relative to H. annuus (Andrew and Rieseberg 2013). Scans of the patterns of polymorphism and divergence identified genomic regions enriched for genes involved in ion transport and metal detoxification in adaptively differentiated Arabidopsis lyrata (Turner et al. 2008). Overall, genome scans for adaptation and speciation genes have identified signatures of selection in 0.4 to 35.5% of the genomic regions studied in different plant species (Ahrens et al. 2018; Strasburg et al. 2012). A recent comparative genomic study suggests convergent evolution in coniferous tree species (Yeaman et al. 2016). Other studies have identified variation at a shared set of genes associated with the same environmental factor across three oak species (Rellstab et al. 2016), but mainly genomic studies of trees have focused on single species. These provide some evidence of the influence of selection on patterns of nucleotide polymorphism along environmental clines, e.g. in dehydrin genes, phytochromes and genes related to wood formation in pines, spruce, oak and poplar, suggesting polygenic control of many adaptive traits (González-Martinez et al. 2007; Ingvarsson et al. 2006; Wachowiak et al. 2009). However, research on the genes underlying adaptation and their genomic context is still at an early stage in non-model taxa, and particularly in plants with complex genomes such as the conifers. Available draft sequences of a few conifer species indicate that large genome size (commonly over 20 Gbp) results, among others, from the presence of retrotransposons and other repetitive content (Neale et al. 2014; Nystedt et al. 2013). As the whole-genome re-sequencing is currently not an option with such large genomes, the candidate-gene approach is still a reasonable approach in population genetic studies in pines.

The Pinus mugo complex is a group of closely related European conifer taxa. It includes P. mugo (Dwarf mountain pine), P. uncinata (mountain pine) and P. uliginosa (peat-bog pine). These taxa are especially suitable for comparative analyses of the pattern of polymorphism and divergence as they form a monophyletic group within Pinaceae (Grotkopp et al. 2004) that diverged within the last 5 million years (Wachowiak et al. 2011) but differ strongly in phenotype, geographical distribution and ecology, in particular for traits related to dehydrative stress and temperature (Wachowiak et al. 2013). Currently, they have largely disjunct distributions following postglacial range shifts (Critchfield and Little 1966). Pinus mugo is a high-altitude, polycormic species of a few meters in height, which grows above the tree line in the mountainous regions of Central and Southeastern Europe including major populations from the Alps in the west, through the Sudetes, Tatras and Carpathians to the Rila and Pirin mountains of the Balkans in the east (Critchfield and Little 1966). Pinus uncinata and P. uliginosa are trees of up to 20 m height, the former adapted to mountainous regions of western Europe including the Pyrenees, the Massif Central, Western Alps and several marginal populations in the Iberian Peninsula, the latter to peat bogs in lowland areas of Central Europe.

Despite morphological, geographical and ecological differentiation, the three taxa show high genetic similarity at biochemical (monoterpenes, isozyme) and molecular markers (Lewandowski et al. 2000) and have the same number of chromosomes (2n = 24) (Grotkopp et al. 2004). They have recently diverged and can hybridize in contact zones (Jasińska et al. 2010; Wachowiak and Prus-Głowacki 2008). Altogether, their high ecological and phenotypic diversity and similar genetic background make these taxa a suitable experimental system to search for parallel signatures of divergence and local adaptation at the genomic level.

In this study, we looked at the patterns of genetic variation within and among the focal taxa in populations’ representative of their distribution range in Europe to search for patterns of divergence and local adaptation in a set of orthologous genomic regions. Using a set of mitochondrial DNA markers, nucleotide sequence data from 79 gene fragments and a sample of 153 trees (including 79 P. mugo, 50 P. uncinata and 24 P. uliginosa) from 16 populations, we evaluated population structure, levels of polymorphism and divergence, and tested for the signature of selection at inter- and intraspecific levels. We asked if the genes involved in genetic divergence among taxa (i.e. speciation) were also implicated in local adaptation within taxa. We also assessed whether the same genes were under selection in different taxa, which would suggest a common role in adaptive processes.

Material and methods

Sampling and DNA extraction

Seeds were collected in each of 16 natural populations in Europe (Fig. 1); 8 for P. mugo, 5 for P. uncinata and 3 for P. uliginosa. We focused on allopatric stands avoiding sampling of any contact zones of the taxa. To allow comparison of similar sized samples that reflect geographical locations, we defined regional groups of populations for P. mugo that were labelled Central Europe (Sudetes and Alps), Carpathians (eastern and southern) and Balkans (Pirin and Durmitor Mts). A single P. mugo population from Italy was excluded from the group comparisons. No regional groups were constructed for P. uliginosa or P. uncinata. In total, 153 samples were analysed, comprising ten individuals from most locations except for PM14 and PUG2 (N = 9) and PUG3 (N = 5) (Table S1). Sampled individuals were separated at a distance of at least 30 m. Genomic DNA was extracted from haploid megagametophytes from germinated seeds using a DNeasy Plant Mini Kit (Qiagen, Hilden, Germany) and the yield and quality of DNA extract was evaluated using Qubit 3.0 fluorimeter (Invitrogen, UK).

Fig. 1
figure 1

Location of the sample sites. Populations of all taxa are shown; taxa are indicated by label: PM—Pinus mugo, PUG—P. uliginosa and PUN—P. uncinata. Figure produced in ArcMap v10.1

Loci, PCR and sequencing

A total of 79 gene fragments were targeted for sequencing across the taxa, which were associated with a broad range of different functions, including transcription factors, metabolic and signalling pathways (such as cold, drought and pathogen stress responses), photoperiodic response and cellular transport (Table S2). PCR primers for each nuclear gene fragment were designed based on unique cDNA originally sequenced in P. taeda (Mosca et al. 2012). Additionally, three mitochondrial DNA (mtDNA) fragments including P11 (Donnelly et al. 2017) were analysed for each individual (Table S2). Mitochondrial DNA is maternally inherited in pines, undergoes seed dispersal and is effective for characterising population structure. PCR amplification was carried out with Thermo MBS thermal cyclers (for nuclear loci) and Applied Biosystems ABI 2720 (for mitochondrial regions) in a total volume of 15 μl containing 15 ng of haploid template DNA, 10 μM of each dNTP, 0.2 μM each of forward and reverse primers, 0.15 U Taq DNA polymerase, 1xBSA, 1.5 μM of MgCl2 and 1xPCR buffer (BioLabs or Novazyme). Standard amplification procedures were used with initial denaturation at 94 °C for 3 min, followed by 35 cycles with 30 s denaturation at 94 °C, 30 s annealing at 60 °C for nuclear loci and 57 °C for mtDNA regions for 1 min, 30 s extension at 72 °C and a final 5-min extension at 72 °C. PCR fragments were purified using Exonuclease I-Shrimp Alkaline Phosphatase enzymatic treatment. About 20 ng of PCR product was used as a template in 10 μl Sanger sequencing reactions with the Big Dye Terminator DNA Sequencing Kit v3.1 (Applied Biosystems). Multilocus haplotypes were determined by direct sequencing of haploid DNA using 3730xl DNA Analyzer (Applied Biosystems). CodonCode Aligner (Codon Code Corporation) was used to edit and align sequences. Sequence data at nuclear genes are deposited in the NCBI repository (Table S2).

Nucleotide variation

We looked at the overall pattern of genetic variation at intra- and interspecific levels. Nucleotide diversity of nuclear genes was measured as the average number of differences per site (π) between two sequences (Nei 1987). Multilocus estimates of the population mutation parameter, theta (θW, Watterson’s 1975) were computed based on the number of total and/or silent segregating sites and the length of each locus using Markov chain Monte Carlo (MCMC) simulation, with the length of burn-in of 5000 and the number of simulated values of 100,000, under a Bayesian model (Pyhäjärvi et al. 2007). The ratio of recombination to mutation rates (ρ/θ) was calculated to estimate their relative influence on patterns of diversity in each taxon and in regional groups. The non-linear least squares estimate of ρ (ρ = 4Nec, were Ne is the effective population size and c is the recombination rate) was fitted by the nls-function implemented in R (www.r-project.org) based on the correlation coefficient r2 between polymorphic informative sites and the distance in base pairs (bp) between sites. Locus-by-locus estimates of net divergence between taxa (Nei 1987), and the number of shared, exclusive and fixed polymorphic sites and haplotypes for each locus were determined using SITES 1.1 (Hey and Wakeley 1997). Sequences from P. taeda were obtained from GenBank for outgroup comparisons. The number of haplotypes (N) and haplotype diversity (Hd) were computed for each gene using DnaSP v5 (Librado and Rozas 2009). The number and frequency of unique and shared haplotypes (the entire length of the sequenced gene fragments) in pairwise comparisons between taxa was calculated with Arlequin v.3.5 (Excoffier and Lischer 2010).

Population structure and differentiation

Genetic distance based on all polymorphic mtDNA sites was calculated and used in principal coordinate analysis (PCoA) to show genetic relationships between populations and taxa. Genetic relationships between samples at nuclear loci were explored using BAPS 6.0 (Corander and Tang 2007) and STRUCTURE 2.2 (Pritchard et al. 2000), for values of K from 1 to 15 with estimates averaged over ten independent runs in each case, with optimal K determined from likelihood and assignment proportions. For BAPS 6.0, datasets comprising all samples were tested. The Codon linkage model was selected, with 100 iterations to estimate admixture coefficients, 100 reference individuals and 10 iterations to estimate admixture coefficients for the reference individuals. For STRUCTURE 2.2, datasets including all polymorphic sites, and excluding linked sites as determined by a significant Fisher’s exact test after Bonferroni correction, were tested. The correlated allele frequencies model was used; burn-in was set to 100,000 and run length to 1,000,000. To further assess among-population differentiation, we used principal coordinate analysis (PCoA) based on the mean net distance between populations across all SNPs, estimated with the Jukes-Cantor nucleotide substitution model with pairwise deletion. The hierarchical distribution of multilocus genetic variation among taxa, regional groups and populations was estimated using an analysis of molecular variance (AMOVA) with Arlequin v.3.5 (Excoffier and Lischer 2010).

Neutrality tests

Multilocus Tajima’s D (Tajima 1989) was computed using the difference between two distinct estimates of the scaled mutation parameter theta (θ) for each locus. Statistical significance of the test was evaluated by comparison to a distribution generated by 1000 coalescent simulations using HKA software (Jiggins et al. 2008). Deviations from neutrality at individual loci were estimated using two compound neutrality tests that were robust to demographic processes, HEW and DHEW (Zeng et al. 2007). Significance levels were determined by 10,000 coalescent simulations based on Watterson’s estimator of θ as implemented in the DH software (Zeng et al. 2007). The distribution of the test statistic was investigated for each locus in all samples from each taxon. The relationship between polymorphism and divergence was evaluated using the HKA test (Hudson et al. 1987).

Signatures of selection and divergence

First, genetic differentiation in pairwise comparisons within and between taxa was studied locus-by-locus at both haplotype and SNP/indel level. Significance was estimated by 1000 permutations of the samples between populations, regional groups and taxa using Arlequin v.3.5. The false discovery rate (FDR) adjustment for multiple testing was conducted using the q value package in R (Bass et al. 2015) (lambda = 0.15, FDR level = 0.01). The estimates of the overall proportion of true null hypotheses (pi0) and the q values (that reflect the expected proportion of false positives among significant results) were calculated based on the distribution of p values for the set of tests conducted (Storey and Tibshirani 2003). Among-group and among-population diversity was estimated by the nearest neighbour statistic, Snn (Lynch and Crease 1990), and tested for significance using 1000 permutations, where samples were randomly assigned to groups. Second, the full SNP dataset was used to test for outlier loci among populations using Bayesian hierarchical analysis (Foll and Gaggiotti 2008). In the first approach, coalescent simulations were used to estimate a null distribution and confidence intervals around the observed values, which allowed for the identification of outliers by locus-specific FST conditioned on the multilocus distribution of FST values. Outliers that were highly differentiated relative to background variation may indicate a locus under directional selection. Each simulated group consisted of 100 subpopulations, and 20,000 replicates of the coalescent were used to identify the expected distribution of FST. The significance thresholds of the FST values were set at 95% and 99% from the simulated data using Arlequin v.3.5. For the second approach, we used BayeScan (Foll and Gaggiotti 2008) for detection of outliers, under a natural selection vs. no selection model based on differences in allele frequencies between populations. We tested for outliers with q value threshold of 5% using SNPs whose minor allele frequency (MAF) was greater than 0.05. A sample size of 5000 was used, with thinning intervals of 10, and 20 pilot runs each of 5000, default prior odds of 10 and burn-in of 50,000. Finally, genes that showed evidence of selection within taxa (neutrality tests, outlier detection across populations) were compared with those that showed significant divergence among taxa (outlier detection among taxa) to identify parallel signatures of adaptation at different scales (local adaptation vs. speciation). Genes that showed significant deviation from neutrality, significant between taxon divergence and a signature of selection within taxa (considering both haplotypes and SNPs) were identified.

Results

Nucleotide and haplotype variation

From the 79 loci, about 33 kbp were aligned across taxa, providing a set of 1212 polymorphic sites. The taxa showed high genetic similarity at the level of nucleotide polymorphism, recombination rate and net divergence. The average πtot = 0.0039–0.0047 and multilocus silent theta θsil = 0.0049–0.0064 indicated no significant difference in the amount of nucleotide diversity between taxa or regional groups (Table 1).

Table 1 Nucleotide and haplotype diversity at 79 gene fragments in the pine taxa and regional groups defined for Pinus mugo

The level of polymorphism at individual loci was similar across taxa, although levels among loci differed from 0.0006 to 0.0189 (Fig. S1). The ratio of recombination to diversity was reduced in P. uliginosa (ρ/θ = 0.5) relative to P. mugo (ρ/θ = 5.4) and P. uncinata (ρ/θ = 3.1), respectively. Variation in net divergence found at individual loci ranged from 0 to 0.0062 (Fig. S2). However, low overall average net divergence (< 0.001) was found among taxa and regional groups (Table S3). Net divergence from the outgroup P. taeda was constant for all taxa (~ 0.024) (Table S3). There were no fixed differences between the taxa at any locus and they shared 59% (P. mugo vs. P. uncinata), 63% (P. mugo vs. P. uliginosa) and 69% (Pinus uliginosa vs. P uncinata) of the polymorphic sites (Table S4). Unique haplotypes were found in all taxa (ranging from 29 to 60%) and regional groups (35–52%) (Table S5). The average haplotype diversity was very similar for each taxon (Hd = 0.59–0.65) and for regional groups of populations (Hd = 0.54–0.60) (Table 1).

Population structure and differentiation

The mtDNA loci provided a set of 13 SNPs resulting in 20 haplotypes that were predominantly partitioned between P. mugo and P. uliginosa as a group, vs. P. uncinata (Fig. 2; Table S6). Within P. mugo and P. uliginosa, there was a low within-taxon population structure, whilst P. uncinata showed more genetic variation between populations especially on the second principle coordinate axis (33% and 12% of the total variation explained by the first and the second axis, respectively; Fig. 3a). From nuclear genes, P. uliginosa showed intermediate variation as compared to two clearly separated groups of P. mugo and P. uncinata (27% and 16% of the total variation explained by the first and the second axis, respectively; Fig. 3b). The cluster analysis at nuclear genes suggested the presence of only two groups (K = 2) (Appendix 1b), with a clear division between a group containing P. mugo and P. uncinata. Only few samples in those taxa were identified as potentially admixed (Fig. 4). In contrast, Pinus uliginosa showed mixed genetic constitution with mosaic patterns of divergence from both clusters.

Fig. 2
figure 2

Network of haplotypes detected at three mtDNA regions in the taxa from the Pinus mugo complex. Areas of the circles are proportional to haplotype frequencies, hatch marks represent numbers of nucleotide differences between them and shading indicates taxa

Fig. 3
figure 3

Principal coordinate analysis based on genetic distance among populations at polymorphic sites in a the mitochondrial genome and b nuclear genes. Pinus mugo ; P. uliginosa and P. uncinata

Fig. 4
figure 4

Bar plot representing the three taxa from the Pinus mugo complex at nuclear polymorphic sites from cluster analysis in BAPS (Corander and Tang 2007). The grey and black colours represent proportional assignment of individuals to different clusters (K = 2). Some evidence of admixed individuals (P < 0.01), indicated as two-colour bars, was found in P. mugo—PM12 (1 individual), PM16 (1) and P. uncinata: PUN18 (2), PUN23 (1). Mixed genetic constitution was found in all P. uliginosa populations (PUG1 (4), PUG2 (5), PUG3(4); population numbers and acronyms as in Supplementary Table S1)

In a hierarchical AMOVA, 11% of the variation was due to differentiation between taxa (Table S7). At the intrataxon level, most variation was found within populations ranging from 93% in P. uliginosa to 96% in P. uncinata (Table S7). Significant differences between taxa were found at all polymorphic sites with FST values of 0.154 for P. mugo vs. P. uncinata, 0.082 for P. mugo vs. P. uliginosa and 0.075 for P. uliginosa vs. P. uncinata (p < 0.01). There was low but significant differentiation among regional groups in P. mugo (FST = 0.02–0.03, p < 0.01).

Neutrality tests

An excess of singleton mutations across genes was indicated as significantly negative multilocus Tajima’s D for all taxa (D = − 0.831 to − 0.243; p < 0.05), regional groups of P. mugo and most individual populations except for P. uncinata (Table 1). Both compound neutrality tests (HEW and DHEW) provided evidence of selection at 13 loci in P. mugo, 7 in P. uliginosa and 4 in P. uncinata (Table 2; Table S8). Overall, there was a positive correlation between polymorphism and divergence at the genes in all analysed taxa in the HKA test (Table S9).

Table 2 Loci under selection based on the compound neutrality tests and the outlier patterns of intra- and interspecies polymorphisms at the three pine taxa. Numbers correspond to the loci that showed: 1, significant Fst (p < 0.01) at interspecies level; 2, significant Fst (p < 0.01) among populations within taxa; 3, significant Snn values within taxa; 4, loci with highly diverged SNPs at interspecific level; 5, outlier SNPs within taxa; 6, significant HEW and/or DHEW tests (p < 0.05). I, Pinus mugo; II, P. uliginosa; III, P. uncinata

Signatures of divergence and selection

A similar level of genetic diversity across the taxa was accompanied by significant differentiation among taxa at several individual genes (Table 2; Table S10). The analysis of the false discovery rate for multiple testing showed very low probability that significant tests at p < 0.01 were false positive, with q values < 0.05 in most cases (Table S11). Correspondingly, the expected proportion of significant tests (1, pi0) was generally high ranging from 0.11 to 0.68 (Table S10). Overall, the highest divergence at individual loci and SNPs was observed between P. mugo and P. uncinata (Tables S10 and S12). Using BayeScan, evidence for selection was found in P. mugo in putative phytocyanin (phy). Some of the highly diverged polymorphic sites also showed differentiation in frequency spectra within taxa, compared to the majority of SNPs (Table S13). Using the outlier detection approach, 27 SNPs were identified in 19 genes in P. mugo, 12 SNPs in 7 genes in P. uliginosa and 9 SNPs in 6 genes in P. uncinata (Table S13). Most of the loci that showed evidence of significant allelic frequency difference between populations or geographical groups within taxa in P. mugo and P. uliginosa (six out of seven and three out of four loci, respectively (Tables S10 and S13)) also showed evidence of significant between taxon divergence (Tables S10 and S13). Of those genes showing any deviation from neutrality in compound neutrality tests, 3 genes in P. mugo (including alpha-N-acetylglucosaminidase, phytocyanin and calcium-dependent proteokinase) and 2 in P. uliginosa (including glutamate transporter and DNA repair helicase) were significantly differentiated both within and among taxa. These genes are involved in signal transduction, transport and cellular metabolism and appear to be of high importance in both speciation and intraspecific local adaptation (Table 2).

Discussion

Polymorphism and divergence

We used 79 gene fragments to look at within- and among-taxon nucleotide variation in three European pine taxa, all of which had similar levels of nucleotide and haplotype polymorphism. The similarity between the taxa is reflected in genome organisation (in each case, 2n = 24), genome size (~ 20 × 103 Mbp) and low differentiation at RAPD markers, chloroplast microsatellite loci and nuclear genes (Grotkopp et al. 2004; Heuertz et al. 2010). We found no fixed differences at any locus; the taxa shared 59–69% of SNPs, 46–56% of mtDNA haplotypes, showed low overall net divergence (< 0.001) and similar net divergence from P. taeda (0.023). This genetic similarity is likely due to recent speciation history (Wachowiak et al. 2011). As pine species are predominantly outcrossing long-lived organisms with long generation times, efficient gene flow and large effective population sizes, the time since divergence has probably been too short for genetic drift to generate significant interspecific differences resulting in a high level of shared ancestral polymorphism.

High genetic similarity may be accounted for by shared ancestry, but may also result from gene exchange during and after speciation (Yatabe et al. 2007). Successful controlled crosses, hybrid seeds and trees resulting from gene flow between species in areas of sympatric occurrence indicate that reproductive isolation between the three taxa is not complete (Wachowiak and Prus-Głowacki 2008). As shown from the geographical distribution of mitochondrial markers, there is short-distance seed-mediated gene flow, especially for P. uncinata and P. mugo, and present-day gene flow between the taxa is restricted to narrow contact zones (Jasińska et al. 2010; Wachowiak et al. 2013). In our study, only a few trees from four populations of the taxa showed some signatures of admixture. However, considering the lack of reproductive barriers and historical overlaps in range during the Pleistocene migrations related to climate oscillations, it is highly probable that hybridization has played an important role in the evolution of these taxa. Speciation through hybridization has been postulated in P. uliginosa, based on high genetic similarity (antigens, isozymes) and “intermediate” biometric characteristics (needle and cone traits) as compared to other closely related pine taxa (Lewandowski et al. 2000). Previous nucleotide diversity studies based on a much smaller sample size and number of loci suggested an allopatric speciation model for P. uliginosa with possible introgression of adaptively important loci (Wachowiak et al. 2011). The current data suggests the mixed genetic constitution with mosaic patterns of divergence from P. mugo and P. uncinata. Tests of alternative speciation models would be needed to verify if speciation through hybridization and/or introgression of key diverged loci could have promoted the spread of the taxon in peat-bog environments not optimal for putative parental taxa of other closely related pines. Hybrid speciation models have been postulated for other species including P. densata (Song et al. 2003), sunflowers (Rieseberg et al. 2003) and Ragwort (Senecio) (Brennan et al. 2012).

Interspecific differentiation should increase with time, given the establishment of reproductive barriers (i.e. preventing gene flow), due to accumulation of new mutations and loss of shared ancestral polymorphism (Nei 1987). Therefore, the number of highly divergent regions in the genome usually increases with increasing divergence between taxa (Martin et al. 2013). Despite similar levels of overall genetic variation, the taxa in this study were distinctive. Mitochondrial DNA could easily separate P. mugo and P. uncinata. The markers showed also high genetic similarity between P. uliginosa and P. mugo. However, based on mtDNA makers and previous work (Wachowiak et al. 2011, 2013), it was possible to separate P. mugo and P. uliginosa at nuclear genes, some of which clearly diverged between taxa. Pinus uliginosa and P. uncinata showed only weak genetic differentiation at nuclear loci, with the largest number of shared SNPs and haplotypes. Our estimates of the genetic relationships between taxa supported those inferred in previous isozyme and biometric reports, indicating a close relationship between P. mugo, P. uliginosa and P. uncinata (Lewandowski et al. 2000). Some evidence of ongoing divergence has been found in karyotype studies of heterochromatin patterns between P. mugo and P. uncinata (Bogunić et al. 2011), which showed marginal average net divergence (0.0004) in our data set.

Population structure

Our results indicate low structure among P. mugo and P. uliginosa populations at mtDNA loci. Some evidence of differentiation was found in P. uncinata with a single outlier population from Andorra. In all taxa, overall population structure at nuclear genes was weak, with 93–98% of variation present within populations. The generally low among-population differentiation at neutral nuclear markers found in conifers is usually attributed to wind pollination and efficient gene flow over large geographical distances. Patterns of nucleotide variation also suggested population size expansion. An excess of low-frequency mutations (i.e. negative Tajima’s D) and very similar levels of nucleotide polymorphism were observed in each taxon and most individual populations. Given the geographical isolation of the populations, the overall genetic similarity between populations could be due to shared recolonization history, recent fragmentation of populations or efficient long range, primarily pollen-mediated gene flow (Varis et al. 2009). However, higher resolution neutral markers are needed to conclusively disentangle the genetic relationships and population structure of the taxa.

Genes for local adaptation and speciation

Loci under selection should show allele frequency differences contrasting background variation. Directional selection on standing genetic variation at loci involved in local adaptation or speciation would result in a reduction of shared polymorphisms and increased divergence between populations/species. Over time, exclusive, high-frequency polymorphisms should accumulate compared to the random segregation of ancestral polymorphisms at selectively neutral loci (Excoffier 2004). The chances of detecting such signatures are maximised by sampling widely across the geographic range, assuming populations are differentially adapted due to selection driven by a number of factors including climate and biotic interactions.

Overall, we found more evidence for between- than within-taxon divergence. Such a result is expected under ecological speciation models for which barriers to gene flow evolve between populations and species as a result of ecologically based divergent selection (Rundle and Nosil 2005). Several loci showed evidence for selection in neutrality tests and both intra- and interspecific differentiation against the background genetic variation. In P. mugo and P. uliginosa, a total of five genes showed evidence of selection and intraspecific outlier patterns of variation. These included genes involved in cellular metabolism in both taxa, plus transport and signal transduction in P. mugo. However, none of the genes showing signatures of selection within taxa were common to all taxa. In other studies, evidence for molecular adaptation in both P. pinaster and P. halepensis was found at one gene (4-coumarate: CoA ligase), whilst more genes showed taxon-specific departures from neutrality (Grivet et al. 2011).

In general, more genes departing from neutrality were found in P. mugo than in P. uncinata and P. uliginosa (Table 2). In our study, P. mugo populations covered much broader geographical areas exposed to a wider range of testing conditions as compared to the two other taxa. Unique patterns of intraspecific selection and divergence were found in P. mugo at ten loci including genes related to regulation of gene expression, cellular transport and metabolism. A subset of these genes also showed signatures of directional selection as reduced diversity within populations and higher linkage disequilibrium. Such a pattern of variation is expected for loci under selection that favours certain alleles underlying fitness-related adaptation. In previous genomic studies focusing on plant speciation, the proportion of loci identified as outliers ranged from 0.4 to 35.5% (Strasburg et al. 2012). For instance, 3.4% of outliers for divergence were found in Helianthus annuus and H. debilis (Ahrens et al. 2018; Scascitelli et al. 2010), 5–28% in Quercus robur and Q. petraea (Guichoux et al. 2013) and about 30% in hybrid zones of Populus alba and P. tremula (Lexer et al. 2010).

In our dataset, the majority of loci that showed both evidence of selection in compound neutrality tests and an outlier pattern of differentiation at the within-taxon level also showed evidence of significant between-taxon divergence. Therefore, in part, selection has operated on both evolutionary and more recent, ecological timescales. However, not all genes that showed significant patterns of between-taxa divergence also showed evidence of selection within taxa and vice versa. Our study provides no evidence on convergent local adaptation among these closely related taxa. We found no gene that showed evidence of selection both within and between taxa, which may suggest that different loci play a role in local adaptation in different even closely related taxa.