Introduction

Habitat fragmentation, with its often detrimental genetic consequences, is considered one of the greatest threats to biodiversity (Fahrig 2003). The task of maintaining biodiversity is especially challenging in modern agricultural landscapes, where most of the available space has been occupied for cultivation of crops and infrastructure related to this activity (Batáry et al. 2011). Only a minor surface in such landscapes (mainly on field borders and road verges) is not converted into arable land and can support flora and fauna (Dover et al. 2000; Ouin and Burel 2002; Walker et al. 2006; Öckinger and Smith 2006; Skórka et al. 2013). Unfortunately, the probability of local extinction increases as patch area decreases and the probability of colonization decreases as patch connectivity decreases (Moilanen and Hanski 1998). Therefore, the main challenges facing conservation biology in agricultural areas are to maintain the quality of existing habitat patches and to increase the connectivity between patches through the creation of ecological corridors (Barrett and Peles 1994). Designing effective systems of ecological corridors, however, requires an understanding about how the landscape structure affects the movement of individuals of different species (Dover and Settele 2009; Spear et al. 2010). Habitat corridors are generally believed to increase dispersal, i.e. the exchange of individuals (and genes) between isolated demes (Tewksbury et al. 2002). Nonetheless, empirical data and methods to analyse which structural characteristics of the agricultural landscape could affect its connectivity are needed for different organisms. Evaluation of landscape features important for dispersal in a particular animal species can be achieved by examination of how the landscape configuration translates into movement of individuals. Since it is difficult to measure dispersal directly at large spatial scales, genetic data are often used instead (Lowe and Allendorf 2010). It should be noted however that genetic methods only allow the measurement of effective dispersal, i.e. those dispersal events that contribute to gene flow (Guerriero et al. 2011). The influence of landscape structure on effective dispersal could be determined by developing resistance surfaces—spatial models, in which specific landscape features are translated into likely costs of dispersal for the organism under study (Spear et al. 2010; Zeller et al. 2012; Baguette et al. 2013). Habitat models can be used to calculate the among-individuals distances corrected for dispersal costs (the so-called ‘effective distances’), and tested by correlating calculated distances with genetic similarity between individuals (Spear et al. 2010).

For measurement of effective distances, a variety of methods have been proposed (see Kool et al. 2012 for a review). Straight-line distance, the simplest measure of the cost of movement between two individuals or sampling sites, does not consider how landscape constraints affect the movement of an organism. Since elements in a landscape mosaic may differ in their resistance to movement, measures taking into account diversified viscosity of the different landscape components seem to be superior. Among them, the isolation-by-resistance approach, based on the theory of electrical circuits and graph theory (Chandra et al. 1996; McRae 2006), is gaining increasing popularity. This approach takes into account the effect of all alternative pathways between habitat patches, which is especially appropriate when the specific aim is to assess gene flow across a landscape over many generations. Several studies indicated that resistance distances may allow for better assessment of genetic isolation-by-distance than the usual Euclidean or least-cost-path distance because the metric is based on assumptions about the impact of many alternative routes in the entire landscape on the dispersal of individuals, and consequently on the chances of gene flow (McRae and Beier 2007; Schwartz et al. 2009; Lozier et al. 2013). Despite the theoretical superiority of isolation-by-resistance approach over distance measures assuming a single optimal path, the performance of the these approaches have rarely been evaluated with empirical data sets at finer spatial scales (Row et al. 2010).

In this work, we aimed to assess the impact of habitat continuity on dispersal and gene flow of Elater ferrugineus—an endangered beetle associated with old-growth, hollow trees, using Amplified Fragment Polymorphism (AFLP, Vos et al. 1995) data. In agricultural landscapes of Europe, the species often inhabits avenues (i.e. rows of trees planted along roads) and other tree habitats (village parks, wood pastures or remnant forest patches), being dependent mainly on larger trees (Musa et al. 2013). Therefore, E. ferrugineus could serve as an umbrella species for protection of old-growth trees and their associated fauna of saproxylic organsims (Andersson et al. 2014). As yet it is not known whether this species, being extremely dependent on old-growth trees, is able to disperse through treeless areas. The study was designed to cope with this question by assessing genetic relatedness of beetles and comparing it with effective distances in the landscape, i.e. the distances corrected in terms of costs resulting from the movement between habitat patches in the landscape. We expected that the observed gene flow at the landscape level could be better explained by landscape resistance distances than simple Euclidian distances.

Up to now little is known about the population genetics of E. ferrugineus, partly due to the cryptic nature of this species. We hypothesised that, given habitat fragmentation at the landscape level, both genetic drift and restricted dispersal can take place in the study species, causing, in turn, population substructuring. We expect that our results will shed light on the dispersal and population biology of E. ferrugineus and provide effective conservation strategies for this threatened beetle.

Materials and methods

Studied species

The red click beetle E. ferrugineus Linnaeus, 1758, is one of the largest of the Central European click beetles (family Elateridae). It develops in the hollows of old, deciduous trees, which are inhabited by larvae of scarab beetles, such as species of the genera Osmoderma, Protaetia and Gnorimus (Burakowski et al. 1985). Larval E. ferrugineus are facultatively carnivorous. It is believed that their main prey are larvae of the large scarabs listed above, given that adult E. ferrugineus are attracted by the sex pheromone of Osmoderma (kairomone effect, Svensson et al. 2004; Larsson and Svensson 2009). However, larvae can also feed on wood mould alone (Tolasch et al. 2007). As a result of massive habitat loss during the last centuries, E. ferrugineus is today considered a rare and vulnerable species throughout its distribution (Nieto and Alexander 2010), which ranges from Spain to the Caucasus and from Italy to the south of Sweden. In Poland the red click beetle is protected by national law and placed in the red book of animals and on the red list of endangered species as vulnerable (Pawłowski et al. 2002). Before the pheromone lures became available for monitoring (Tolasch et al. 2007; Svensson and Larsson 2008; Svensson et al. 2011) it was considered extremely rare. Much of the available data on the occurrence of E. ferrugineus in Poland concerns the nineteenth and first half of the twentieth century (Burakowski et al. 1985). Over the last 50 years this species has been recorded from only about 25 localities (Buchholz and Ossowska 2004). Recently, rural avenues were recognized as the most important habitat for this highly protected species in Poland (Oleksa et al. unpubl.) which may be valid also for other European countries. Due to the ease of pheromone trapping (Kadej et al. 2015), E. ferrugineus has the potential to become a convenient umbrella species for the rich community of saproxylic species, i.e. organisms dependent on dead wood habitats (Andersson et al. 2014).

Area under study

The study was conducted in the municipality of Rychliki in northern Poland (Warmia and Masuria Province, N53° 59′ E19° 31′, Figure 1). Due to fertile soils, the landscape of the area under study is dominated by farmland, occupying 74 % of the surface. Forests cover only 17 % of the area, which is significantly lower than the Polish national average (29 %). Woodlands are retained mainly in gorges and swamps, which are difficult to cultivate. Forests are usually composed of deciduous species, mainly beech Fagus sylvatica, oak Quercus robur, hornbeam Carpinus betulus and—on wet soils—alder Alnus glutinosa. In the studied area, due to intensive management, most forest trees are too young to be a suitable habitat for E. ferrugineus. Despite the high share of farmland in the general area of the municipality and the young age of the forests, the organisms associated with old trees have numerous suitable habitats in the form of roadside avenues of trees and village parks. The avenue network was established in the form similar to the present day in the eighteenth and nineteenth centuries, as shown by maps from that period (von Schrötter 1812). After a habitat inventory in the summer 2011 (Oleksa A., unpublished), we recognized ca. 70 km of rural avenues as suitable habitat for E. ferrugineus and its main prey Osmoderma barnabita. We also found ca. 1500 hollow and thick (DBH ≥ 60 cm) trees potentially inhabited by both species.

Figure 1
figure 1

a Classification of land cover of the study area and sampling sites for Elater ferruguineus; b general location of the study area in Poland; c distribution of demes of E. ferrugineus, delimited with <1 km distance criterion

Sampling of beetles for molecular analyses

For DNA sampling, beetles were caught with pheromone traps (Tolasch et al. 2007) in the summer 2011. Since the pheromone is attractive only for males, only beetles of this sex were included in the study. Self-made traps baited with the pheromone (Figure 2) were fixed to branches of trees at 3–5 m above ground. Due to the very fast response of males to pheromone exposure and to avoid attracting beetles from long distances, traps were exposed for no more than 1.5 h at a site. At one time, a series of 20 traps were set along a road at 250–500 m intervals (depending on tree density). After checking and emptying the traps, they were moved to the next road section. All catches were conducted during the day (between 11:00 and 18:00), in fine weather (air temperature >20 °C, no rainfall). Sampling covered the entire territory of the municipality of Rychliki, where beetles were trapped in places with abundant mature trees, i.e. along tree-lined roads (avenues). A simulation study by Oyler-McCance et al. (2013) found that linear and systematic sampling regimes performed well in order to detect the effects of landscape pattern on gene flow.

Figure 2
figure 2

A pheromone-baited funnel trap used for collecting Elater ferrugineus; a two black PCV sheets (25 × 20 cm), properly cut and connected crosswise; b plastic funnel (diameter 25 cm); c container for holding captured insects until their release. Arrow indicate the placement of a 200 µL PCR-tube baited with 2 µL 7-methyloctyl (Z)-4-decenoate, the female-produced sex pheromone of E. ferrugineus

For collection of beetle tissue, the tarsus of one middle leg was cut off with scissors and stored in absolute ethanol. After amputation of tarsi, the beetles were released on the vegetation close to the pheromone trap they were captured in. Altogether, samples from 287 beetles were collected and stored at −20 °C until DNA extraction.

DNA extraction and AFLP genotyping

Genomic DNA was extracted using the Insect Easy DNA Kit (EZNA) (Omega Bio-Tek, Norcross, GA, USA) following the manufacturer’s protocol. The AFLP analysis followed the original protocol by Vos et al. (1995). Restriction-ligation reactions were carried out in a total volume of 10 μl. A single reaction contained 500 ng of genomic DNA, 5 U EcoRI (MBI Fermentas, Vilnius, Lithuania) and 5 U TruI (MseI isoschizomer) (Fermentas), 1.5 U T4 DNA Ligase (Fermentas), 1× T4 DNA Ligase buffer (Fermentas), 0.05 % BSA, 50 mM NaCl, 0.5 pmol/μl E-Adaptor and 5 pmol/μl M-Adaptor. Reactions were carried out at room temperature overnight and then diluted 5× with H2O in order to obtain PCR matrices (pre-matrix DNA) for pre-selective amplification. Pre-selective amplifications were carried out in 10 μl total volume. A pre-selective PCR mixture contained 2 μl pre-matrix DNA, 1× Qiagen Master Mix (Qiagen Taq PCR Master Mix Kit; Qiagen, Hilden, Germany), 0.5 μM E-primer (E + A) and 0.5 μM M-primer (M + C). Amplification was carried out using the following program: 72 °C for 2 min, 20 cycles of 94 °C for 20 s, 56 °C for 30 s and 72 °C for 2 min, and finally 60 °C for 30 min. A product of pre-selective PCR was diluted 20 times in order to obtain a PCR matrix for selective amplification (sel-matrix DNA).

Selective amplification was carried out in 10 μl total volumes, consisting of 3 μl sel-matrix DNA, 1× Qiagen Master Mix, 0.5 μM FAM-labelled E-primer (E + ACA or E + ACG) and 0.5 μM M-primer (M + CAC or M + CAG). Three combinations of primers were used: E_ACA × M_CAC, E_ACA × M_CAG, E_ACG × M_CAC. PCR reaction was performed with the following program: 94 °C for 2 min, 10 cycles of 94 °C for 20 s, 66 °C (−1° per cycle) for 30 s and 72 °C for 2 min, 20 cycles of 94 °C for 30 s, 56 °C for 30 s and 60 °C for 30 min. Both pre-selective and selective amplifications were carried out using a PTC200 thermocycler (BioRad, Hercules, CA, USA).

The products of selective amplifications were sized using an ABI3130XL automated capillary sequencer (Applied Biosystems, Foster City, CA, USA) and the manufacturer’s Genescan 3.7 software. AFLP profiles were then subjected to visual assessment in order to eliminate outlier samples using the Genotyper 3.7 software (Applied Biosystems). Then, all peaks in a profile within the range 60–400 bp were automatically labelled and bins were created based on all labelled peaks. Automatically created bins were visually checked to ensure that the bin was centred on the distribution of peaks within the bin. Bins with low polymorphism (5 % <frequency of dominant haplotype <95 %) were omitted from further study. To reduce the occurrence of homoplasy (Vekemans et al. 2002) bins with fragment-length distributions that overlapped with adjacent bins were also removed. Raw peak intensity data output from Genotyper was subsequently transformed into a binary data matrix with AFLPScore R-script (Whitlock et al. 2008). Given that our main objective was to investigate spatial genetic structure and it may arise both due to isolation-by-distance or due to spatial variation of selective forces affecting the distribution of alleles of specific loci (Beaumont and Balding 2004), only neutral loci were selected for the analyses. For this purpose, we used Mcheza (Antao and Beaumont 2011) to identify outlier loci in terms of their heterozygosity versus F ST , i.e. the loci considered to be candidates for directional or stabilizing selection. Locus-specific F ST values were estimated from a simulated distribution of 50,000 iterations using an infinite alleles model. The resulting distribution was used to find outliers. Outlier loci falling above the 0.95 quantile were considered putatively under directional selection, while under stabilizing selection when falling under 0.05. These markers were omitted from further analyses.

Genetic variation

In the studied landscape, beetles are distributed more or less continuously, mainly in avenues along roads (Figure 1). However, for the assessment of genetic variation we assumed that the beetles isolated by more than 1 km from other sampling sites formed a distinct group of individuals (deme). To avoid bias resulting from small sample size, for estimation of variation we included only sites where at least five individuals were sampled (Figure 1; Table 1). For each deme, after estimating allelic frequencies with a Bayesian method, assuming a non-uniform prior distribution of allele frequencies (AFLP-SURV ver.1.0, Vekemans et al. 2002), the following statistics were computed: number and proportion of polymorphic loci at the 5 % level; expected heterozygosity or Nei’s gene diversity (Hj) and Wright’s F ST .

Table 1 Proportion of polymorphic loci (PLP) at the 5 % level and expected heterozygosities under Hardy–Weinberg genotypic proportions (H j ) within demes of E. ferrugineus, delimited with <1 km distance criterion

Relationship between genetic and Euclidean distances

The relationship between pairwise genetic and geographic distances could be examined at two levels, i.e. for populations and for individuals (Manel et al. 2003). The first approach assumes a discrete population subdivision, while the analysis based on individuals is free of assumptions about the spatial scale of structuring in populations and could be more adequate if individuals are distributed continuously across the landscape and/or the borders between populations are unknown, as it was in the studied system.

The relationship between matrices of Euclidean distances and genetic similarities was tested by Mantel correlation with 10,000 permutations (computed with ecodist version 1.2.9 in R version 3.1.0, Goslee and Urban 2007). Additionally, we applied analysis of spatial genetic structure (SGS) based on pairwise kinship coefficients (Hardy 2003) between individuals using the software SPAGeDi ver. 1.3 (Hardy and Vekemans 2002). To visualize the strength of SGS, average pair-wise kinship coefficients (F ij ) were plotted against distance classes (d ij ). The number of distance classes was determined following Sturge’s rule (Sturges 1926) based on the number of all pairwise comparisons and the mean distance per distance class was used to draw the plot. Confidence intervals around observed average kinship coefficients for a given distance class were obtained from standard errors by jackknifing data over loci (20,000 permutations).

Under isolation-by-distance, given drift-dispersal equilibrium, kinship is a linear function of the logarithm of distance between individuals (Rousset 2000). Therefore, in order to illustrate the intensity of the spatial genetic structure, we used the formula S p  = −b 1/(1 − f (1)) (Vekemans and Hardy 2004) where b1 is a slope of a log-linear regression between observed kinship and a distance between individuals, and f (1) is the average kinship for the first distance class. Given that Sp is inversely proportional to the effective size of the Wright’s neighbourhood (N b ), the latter parameter was also calculated. The confidence intervals were estimated using the standard error calculated by jackknifing over loci. Finally, the square root of the axial variance of dispersal (σ) was approximated using an iterative procedure implemented in SPAGeDi, based on the regression restricted to a distance range from σ to 20σ (Rousset 1997). As the effective density (D e , expressed as number of individuals per area) remains unknown, a series of guesses on D e were used in the estimation.

Relationship between genetic and landscape (resistance) distances

To evaluate if the landscape features important for the beetle’s development are also used for its dispersal, we developed spatial (raster) models, in which landscape features were translated into likely costs of dispersal for the red click beetle. The area used for the analyses was the minimum convex polygon enclosing all of the sample points, with a 2 km buffer surrounding this polygon added to minimize the increase of resistance values due to the grid boundary (Koen et al. 2010). We assigned a ‘no data’ value to cells outside of this area and excluded them from all calculations.

Our raster models were based on freely available Landsat data with the resolution of 30 m (http://landsat.usgs.gov, years 2010–2012). Although the resolution of the adapted grid can obviously affect the estimation of effective landscape distances, we believe that the adopted grid resolution was appropriate because it is much smaller than the putative dispersal distances of the study organism, as recommended by Anderson et al. (2010). Because E. ferrugineus is considered to be a relatively good flier, movements of several hundred meters are highly possible in this species.

Raster cells were classified according to their putative suitability for E. ferrugineus. We distinguished four grid cell classes, differing in the quantity of old growth-trees: (1) cells containing avenue stretches (hereafter, called “avenues”), (2) cells containing forest patches (“forest”), (3) cells containing a landscape mosaic with thickets or smaller trees but without avenues or forest (“thicket”), and (4) land without any trees (usually arable fields, meadows and water bodies; “open land”). Cells were classified as “avenues” if any fragment of an avenue was placed within the cell; other cells were classified according to the dominant land cover type. Classification of raster cells was performed in two steps. First, using the SAGA software we classified Landsat images into two classes: (1) containing tree cover (forest, thickets or linear plantings of trees), (2) open areas. Next, raster was converted into shape format and classification of polygons was verified in Quantum GIS (QGIS Development Team 2012) based on more detailed aerial images from Google Earth and geoportal.gov.pl. In this step, areas with woody vegetation cover were categorised as forests, avenues and areas that do not fit into any of these classes (“thicket”). The categorization was done independently by two authors (A.O. and R.G.), then—in doubtful cases—its accuracy was examined directly in the field.

In the next step, we elaborated a number of models in which these four cell classes were assigned values describing their permeability for dispersing beetles (the so-called cell conductances, McRae 2006). To minimize subjectivity in assigning conductance values, we assumed that each class could have one of three conductance values (weak—1, moderate—50, or high—100) and created models with all possible combinations of the three conductance values for the four cell classes. As a result we obtained 81 (i.e. 34) landscape grid models, describing all possible conductance surfaces for beetles moving through the landscape (Supplementary data). Subsequently, we computed matrices of pairwise distances between local populations or individuals for each landscape conductance surface, using resistance distance, as implemented in the R package ‘gdistance’ ver. 1.1-5 (van Etten 2014) in the R version 3.1.0 (R Development Core Team 2013). The resistance distance is computed as the random-walk commute time between points (Chandra et al. 1996; McRae 2006). During calculations, we used a connection scheme where movement was allowed between the nearest 16 cells. This scheme is the most realistic scenario, because it assumes that the narrow linear structures with a width of one cell (for example, avenues) do not constitute a strong barrier for movement if their conductance is set to low value.

Because the probability of moving through the cell system is not dependent on the absolute cell values but on the relative differences between them, three combinations of conductance values (when conductance values for all four cell types were set equally to 1, 50 or 100), gave the same model representing the homogeneous landscape, i.e. the analogue of the pure isolation-by-distance model (Wright 1943), which could be regarded as the null model.

To evaluate which of the proposed landscape models had the best fit with the observed pattern of gene flow, we calculated Mantel correlation between the matrix of pairwise genetic similarity coefficients and matrices of effective landscape distances. The genetic similarity matrix was computed using kinship coefficients between pairs of individuals (computed with SPAGeDi version 1.4, Hardy and Vekemans 2002), because the individual level better corresponds to the resolution of the landscape rasters. On the other hand, using discrete demes as data units would lead to data loss and ambiguity, e.g. in determining distances between demes. Mantel tests with 10,000 permutations were calculated using the package ‘ecodist’ version 1.2.7 (Goslee and Urban) in the R version 3.1.0 (R Development Core Team 2013).

To get insight into which land use categories have the most influence on the observed pattern of isolation-by-distance, we performed multiple linear regression with the square of the estimated Mantel correlation coefficient (r 2 M ) as a response variable and conductances of the four landscape types as explanatory variables. We considered all possible (i.e. 15) candidate models that emerged from all combinations of explanatory variables, and these were ranked according to the relative strength of support for each model using Akaike’s information criterion adjusted for small sample sizes (AICc). We used AICc weights (ωi) to generate weighted model-averaged parameter estimates. We also estimated the relative importance of the predictor variables by summing the AICc weights over all the models in which the variable was contained. Parameter estimates and AICc for all models were calculated using the package ‘MuMIn’ version 1.10.0 (Bartoń 2013) in the R version 3.1.0 (R Development Core Team 2013).

Results

Marker polymorphism and genetic variation

Successful amplification was obtained in 247 samples of E. ferrugineus. Three combinations of primers yielded amplification of 297 putative loci (peaks visible in the electropherogram). From this number, 181 were omitted from further analyses either because of the difficulty to distinguish between two or more fragments of a similar mass or due to a vague amplification. For further examination we used 116 loci (E_ACA × M_CAC—35, E_ACA × M_CAG—27 and E_ACG × M_CAC—54 loci), but the F ST -outlier method revealed that 11 loci were positively exceeding neutral expectations, leaving 105 putatively neutral loci for final analyses (E_ACA × M_CAC—34, E_ACA × M_CAG—27 and E_ACG × M_CAC—44 loci).

Demes distinguished with the 1 km-distance criterion showed similar levels of expected heterozygosities, ranging from 0.254 to 0.334 (Table 1). On average, gene diversity within populations amounted to 0.294 (SE 0.009). The proportion of polymorphic loci ranged from 72.4 to 97.1 %. The average pairwise F ST across all populations was equal to 0.067 and ranged from 0 to 0.133.

Relationship between genetic and Euclidean distances

Mantel tests showed that matrices of kinship and Euclidean distances between sampled individuals were significantly correlated [r M  = −0.263, 95 % CL (−0.281; −0.246), p < 0.0001]. Similarly, the analysis of autocorrelation of the kinship coefficient in SpaGeDi revealed a significant spatial genetic structure (Figure 3). All descriptive measures of spatial structure, i.e. the kinship among individuals collected at the closest distance (f ij(1) = 0.068 ± 0.008), the slope of the log-linear regression (b 1  = −0.030 ± 0.004), and the spatial genetic structure intensity measure (Sp = 0.033 ± 0.01), were significantly different from zero. The nearest neighbours exhibited the highest kinship, which then decreased with increased distance. Up to 3.6 km distance the genotypes were more related than could be expected from their random distribution, then up to 9.1 km distance the pairwise kinship coefficients were in general undistinguishable from zero and over this distance the genotypes were less related than could be expected from the null hypothesis.

Figure 3
figure 3

Average kinship coefficients between pairs of individuals of Elater ferrugineus plotted against the straight-line distance. The observed value of pairwise kinship coefficient for mean value of each distance class, its 95 % confidence interval obtained under the null hypothesis that genotypes are randomly distributed (shaded area), and standard error obtained by jack-knifing over loci (error bar) are shown. Distance classes (16) were defined using Sturge’s rule so as to include approximately equal number of pairwise comparisons

Estimation of gene flow

Using the iterative procedure implemented in the SPAGeDi software, under the assumption of isolation-by-distance, we estimated the two characteristics of gene flow intensity: the Wright’s neighbourhood size (N b ) and the axial variance of dispersal (σ), the latter being a measure similar to the mean dispersal distance. The results from the analysis are shown in Table 2. Generally, the presence of convergence for the most realistic values of assumed effective density (De) suggests a good agreement between the observed correlograms and the theory of isolation-by-distance in E. ferrugineus. The axial variance of dispersal in the species was estimated to 110–651 m and neighbourhood size to 26–76 individuals for the moderate values of effective density (0.1–10 individual * ha−1).

Table 2 Estimated gene dispersal parameters for an assumed effective population density (number of individuals per hectare) in a 2-dimensional population at drift-dispersal equilibrium under isotropic dispersal

Relationship between genetic and landscape distances

Mantel correlation between resistance distances between pairs of individuals of E. ferrugineus and their kinship coefficients ranged between −0.031 and −0.254 (all correlation coefficients significant at p < 0.0001, Figure 4). Resistance distances measured over null landscape models (i.e. homogenous landscapes, in which isolation is only due to distance) yielded a correlation coefficient of −0.247 (95 % CL from −0.264 to −0.233). There were six landscape models in which resistance distances showed slightly stronger correlation with kinship than in these null models (r M between −0.249 and −0.254). However, taking into account 95 % confidence limits (from −0.271 to −0.234), none of them were significantly better than the homogenous (null) model.

Figure 4
figure 4

Results from Mantel test showing correlations between matrix of pairwise kinship coefficients and matrices of landscape resistance distances, computed for 81 combinations of the three assumed conductance values (either 1, 50 or 100) for the four landscape features. Bars indicate 95 % confidence intervals

On the other hand, 54 raster models showed significantly weaker correlation than the null homogenous model. When comparing models of lower fit with models better matched to the observed pattern of gene flow, it turned out that models equivalent to the null model were characterized by a higher average conductance of avenues than inferior models (respectively, 83.33 and 36.67; the difference was significant when assessed with the Mann–Whitney test, p < 0.0001). In line with this observation, multiple regression (Tables 3, 4) pointed to avenues as a habitat type that have the highest positive impact on landscape connectivity for E. ferrugineus, i.e. the concordance between matrices of pairwise kinship and resistance landscape distances increased with increasing conductance of avenues (relative variable importance equal to 1, β = 0.684, p < 0.001). A similar but weaker effect was evident for the thickets (relative variable importance 0.999, β = 0.304, p < 0.001). In contrast, open land had the opposite effect (relative variable importance 0.864, β = −0.177, p < 0.05), while the effect of forest was not statistically significant (relative variable importance 0.313, β = −0.062, n.s.).

Table 3 Results for the model selection procedure, sorted by Akaike information criterion (AICc)
Table 4 Parameter estimates averaged across 15 regression models, using Akaike weights (see Table 3)

Discussion

In our study, any assumption about conductivity of landscape features for dispersing E. ferrugineus gave better fit between genetic and landscape distances than the simplest homogenous models, in which isolation results from the distance only. Although six models (all but one assuming the highest conductance of avenues and low to moderate conductance of open field) showed slightly stronger correlation with kinship than homogenoues null models, the difference was not significant. On the other hand, models with the opposite setup (low conductance of avenues and higher conductance of open areas) were significantly less correlated with the observed pattern of kinship between individuals. It indicates that the arrangement and relative proportions of habitat and non-habitat patches significantly affect the phenomenon of gene flow in E. ferrugineus. In fact, for many pairwise comparisons it was impossible to differentiate straight-line gene flow from gene flow through the linear habitat, because both distances were virtually the same. Therefore, for shorter distances (within a single avenue) isolation-by-resistance could be reduced to isolation by the Euclidean distance. This is probably the reason why the models of gene flow through the avenues and along straight lines are equally well correlated with the observed pattern of kinship.

The results presented here are in line with the hypothesis that avenues may constitute important landscape feature supporting gene movement in E. ferrugineus. Recently, plantings of trees along roads were recognized as an important habitat for several vulnerable, tree-dependent insects in cultural landscapes (Oleksa et al. 2006, 2007, 2013b; Horák et al. 2010; Michalcewicz and Ciach 2012). However, it remained unclear whether avenues can be considered exclusively as their habitat or could also serve as effective dispersal corridors. Although we were not able to prove that the pattern of gene flow was better fitted with effective landscape distances than with straight-line distances, our results indicate that avenues alone are sufficient to ensure relatively high levels of gene exchange. Since the models with high conductance of avenues and lower conductance of other landscape features were as good as the models assuming homogenous space in explaining the observed pattern of kinship, we may conclude that a network of avenues is sufficient to maintain relatively high level of gene flow, even if a large proportion of the landscape is composed of areas in which dispersal is costly.

Our regression analysis pointed to avenues as the main landscape feature increasing the concordance between genetic and effective landscape distances, while the effect of open (mostly arable) land was the opposite. These effects are consistent with what can be expected in a species strictly dependent on the old-growth tree habitats. However, the impact of forest and thickets needs further explanation. It could be surprising that forests had no significant effect on gene flow in a hollow-dwelling species. Nonetheless, this may result from the fact that forests in the studied area have a long history of management for timber production, which lowered the average age of trees and caused a drastic reduction in the density of mature hollow trees. In contrast to the forests, timber production has never been the primary function of avenues, which were mainly planted in order to protect roads from winds and winter snow (Pradines 2009). Thus, rural avenues have become the main place where mature trees are abundant. Similarly to avenues, our regression analysis identified thickets as one more type of land use which increased the compliance between matrices of kinship and effective landscape distances. In fact, the landscape features which we defined as “thicket” (i.e. raster cells containing a landscape mosaic with thickets or smaller trees but without avenues or forest) were heterogeneous in terms of their composition and/or origin. Nevertheless, a substantial part of this landscape class has developed as a result of degradation of historical avenues through cutting of trees along minor roads, mainly due to intensification of agriculture in the last decades of the twentieth century. Taking into account that the observed spatial genetic structure is a result of historical process of gene dispersal (Hardy and Vekemans 1999), it is therefore possible that the positive effect of thickets is a reflection of the former gene flow, which took place in the past.

Our conclusion is consistent with several previous studies dealing with the role of linear tree or bush habitats as ecological corridors for diverse groups of organisms, including snails (Arnaud 2003), ground beetles (Jopp and Reuter 2005; Jordán et al. 2007), crickets (Berggren et al. 2002; Eriksson et al. 2013) and birds (Gillies and St Clair 2008). In contrast, some other studies did not provide evidence for a beneficial effect of corridors (Haddad et al. 2003; Öckinger and Smith 2008; Åström and Pärt 2013). Results from these studies demonstrate that the effects of corridors may be influenced by the quality of the adjacent matrix and could differ between organisms and landscapes, depending on conditions to which species or local populations are adapted (Dennis et al. 2013). Usually, the movement between habitats is higher if the organism does not perceive the border as distinct (e.g. between two open habitats) and animals are less likely to move through sharp borders (e.g. between meadow and forest), which could direct the movement along the boundary (Ries and Debinski 2001; Kuefler et al. 2010; Eycott et al. 2012; Bertoncelj and Dolman 2012). Therefore, it may be expected that corridors are more important for organisms living in landscapes composed of contrasting types of environments, which is the case in the studied system, where tree habitats are embedded in the inhospitable matrix and the beetle is strictly associated with a narrow ecological niche.

It could also be anticipated that the presence of corridors should direct populations toward evolution of higher dispersal rates. Theoretical models (Travis and Dytham 1999; Stamps et al. 2005) as well as empirical studies (Merckx et al. 2003; Bonelli et al. 2013) indicate that in highly fragmented landscapes there may be selection against dispersal because dispersing individuals may experience high costs of finding suitable habitat patches. If this is the case for E. ferrugineus in the studied landscape, it is possible that arrangement of suitable habitat as a highly continuous network of tree avenues could increase the exchange of individuals between occupied trees, which in turn should result in less intensive spatial genetic structure and a weaker spatial genetic structure compared to the situation when trees are more scattered in the landscape. Previous studies (Musa et al. 2013) showed that the probability of patch occupancy by E. ferrugineus increased with increasing amount of large trees. Our results indicate that also the spatial configuration of trees in the landscape may contribute to the likelihood of the species’ occurrence. The question whether populations of E. ferrugineus living in more fragmented landscapes show weaker dispersal capacity, stronger spatial genetic structure or more elevated inbreeding levels, opens interesting perspectives for further comparative research. Such a pattern was recently found in the beetles of the genus Osmoderma, a main prey of E. ferrugineus larvae, where differences in dispersal distances between populations from different geographic regions of Europe were detected (Ranius and Hedin 2001; Hedin and Ranius 2002; Dubois et al. 2010; Oleksa et al. 2013a; Chiari et al. 2013; Le Gouar et al. 2014). Since the dispersal in poikilotherms is strictly dependent on temperature, these differences may be the result of climatic factors, as observed in other insects (Cormont et al. 2011; Delattre et al. 2013); however, it is also possible that differences in dispersal capacities could be explained by various selective pressures acting on the beetles in landscapes of different connectivity and habitat size.

In addition to assessing the impact of the landscape on gene flow in E. ferrugineus, we aimed to estimate the extent of gene flow in this species. We have demonstrated that the axial variance of dispersal, a measure very close to the average distance of dispersal, amounted to several hundred meters (110–651 m for moderate values of effective density). Although our estimates are imprecise due to the lack of knowledge about the effective density and (possibly) its variability over the studied area, dispersal of several hundred meters is highly possible in this species. Zauli et al. (2014) found that males of E. ferrugineus moved from the site of first capture covering a median distance of 214 m and approximately 50 % of individuals disperse not further than 250 m. Observed movement distances of other saproxylic beetles could comprise more than 700 m in a species which is believed to be poor flier (Dubois et al. 2010; Oleksa et al. 2013a) and even more than 10 km for species with high dispersal capacities (Jonsson 2003; Williams and Robertson 2008; Drag et al. 2011). In this respect, E. ferrugineus can be regarded as a species with lower dispersal abilities, for which habitat continuity plays an important role.

The data presented here allow us to conclude that avenues should be protected as valuable dispersal corridors for organisms dependent on mature trees. Unfortunately, the current need for traffic safety improvement and infrastructure development has caused large-scale cutting of roadside trees (Pradines 2009), and their decline poses the most serious threat for the whole community of arboreal organisms in farmland areas. We believe that understanding the factors affecting the chances of gene flow in E. ferrugineus would be a step forward in developing effective conservation measures to mitigate the impact of its habitat decline. Taking into account the rapid loss of mature trees in modern European landscapes, we recommend strict protection of existing avenues and planting new ones in places of disturbed continuity.