Introduction

The spatial variation of biological communities is one of the central themes in biogeography. Patterns of this variation have been repeatedly studied in various taxa, across various geographic regions, and in various environments (see Brown 1995, 2014; Gaston 2000; Hubbell 2001; Ricklefs and Jenkins 2011 and references therein). These studies revealed that biological communities do not vary in space in a random fashion, but rather, this variation is often governed by certain rules. Among these rules, the most persistent are those associated with latitude and geographic distance (Pianka 1966; Rohde 1992; Nekola and White 1999; Soininen et al. 2007; Morlon et al. 2008; Astorga et al. 2012; Brown 2014; Schemske and Mittelbach 2017). For example, a well-known increase in the number of species in an assemblage from polar to tropical regions (= latitudinal gradient) is an almost ubiquitous pattern (e.g., Brown 2014). A decrease in compositional and/or phylogenetic similarity between communities with an increase in geographic distance between them (= distance decay of similarity) is also well-documented (Nekola and White 1999; Soininen et al. 2007; Saito et al. 2015).

The absolute majority of studies on the latitudinal gradient and distance decay of similarity in biological communities focused on either species composition or species diversity or both. Community assembly rules or processes shaping biological assemblages have received less attention (but see Bertness and Ewanchuk 2002; Lortie and Callaway 2006; Henriques-Silva et al. 2013; Qiao et al. 2015). Indeed, species composition and/or diversity are not the only facets of community structure. One of the most important aspects of community structure is whether an assemblage represents a random set of species or whether it is organized by certain rules such as Diamond’s assembly rules (Diamond 1975), species nestedness (Patterson and Atmar 1986), and core-satellite organization (Hanski 1982). Every assembly rule suggests that species in a community are associated non-randomly. If these associations are positive, then the frequency of species co-occurrence is greater than expected from random associations, and thus, the community is structured aggregatively. If, however, these associations are negative, then the frequency of species co-occurrence is smaller than expected from random associations, and thus, the community is structured segregatively. The results of recent studies on plant communities suggested that species interactions within a community tend to be predominantly negative in favorable environments and predominantly positive in more stressful environments (Callaway et al. 2002; Maestre et al. 2009). As a result, a latitudinal gradient in the pattern of species associations may occur. In addition, variation in the strength of species associations along a latitudinal gradient may be expected because an increase in species richness at low latitudes may result in an increased degree of niche overlap and competition and thus an increased strength of negative species associations from north to south (Vázquez and Stevens 2004) in the Northern Hemisphere. Another, not necessarily alternative, pattern may arise due to latitudinal variation in the degree of environmental filtering with a north–south shift from stronger to weaker environmentally filtered communities and thus an increased strength of positive species associations from south to north (Qiao et al. 2012, 2015).

Furthermore, not every species in a community may be associated (positively or negatively) with other species. Instead, some pairs of species may mainly contribute to a general pattern of non-randomness, whereas other species are randomly associated (e.g., Gotelli and Ulrich 2010), so that the non-random structure arises from non-random associations of only a subset of, rather than all, species. Consequently, and given that the species composition of communities often varies predictably across space (see above), the patterns and strength of species associations may also conform to these rules because variation in species composition may likely be reflected in variation in the pattern of these species’ interactions (Qiao et al. 2015).

Studying spatial variation in the community structure of free-living organisms is sometimes methodologically difficult due to ambiguity in the identification of community boundaries because these communities exist in a spatial continuum (Loreau 2000). Studies of parasite communities allow us to avoid, or at least diminish, this difficulty because parasite communities are fragmented among host individuals (infracommunities), among populations of conspecific hosts within a locality (component communities), and among host communities in different localities (compound communities) (Holmes and Price 1986; Bush et al. 1997; Poulin 2007). Both a latitudinal gradient in species diversity and a distance decay of compositional similarity have been demonstrated for communities of many, albeit not all, parasite taxa (see reviews in Bordes et al. 2010; Poulin and Krasnov 2010; Rohde 2010).

Here, we tested whether biogeographic patterns documented for species composition and diversity in parasite communities can also be applied to species associations in these communities, and studied the pattern (i.e., segregation versus aggregation) and the strength of these associations in fleas and gamasid mites parasitic on small mammals in Western Siberia. Fleas are obligatory hematophagous at the imago stage with the majority of species alternating periods spent on the bodies and the nests/burrows of their hosts. Pre-imaginal stages are mostly non-parasitic and develop mostly off-host (see Krasnov 2008). The range of lifestyles in gamasid mites is enormous from obligate via facultative hematophagy to phoresy, and many (if not the absolute majority) species spend most of their life off-host (Radovsky 1985). We estimated the pattern and strength of species associations (see “Materials and methods” for details) at two hierarchical scales. At a lower scale, we estimated species associations in infracommunities (i.e., across host individuals) harbored by hosts belonging to the same species, that is, for each component community, and then tested for spatial patterns across these component communities (= across populations of the same host species). At a higher scale, we estimated species associations in component communities (i.e., across host species), that is, for each compound community, and then tested for spatial patterns across these compound communities (= across locations).

First, we asked whether there is a relationship between latitude and the pattern (positive or negative) and strength of species associations. We expected to find predominantly negative associations at lower latitudes and predominantly positive ones at higher latitudes because low ambient temperatures at the latter are likely stressful for both taxa (Kozlova 1983; Krasnov 2008) (see above). However, we chose not to propose a specific prediction regarding the relationship between latitude and the strength of species association. This is because an increase in species richness with a decrease in latitude (see Krasnov et al. 2007 for fleas) may result in stronger interspecific competition (see above; Vázquez and Stevens 2004) and an increased strength of negative associations to the south, whereas a latitudinal gradient in environmental filtering (see above; Qiao et al. 2015) may cause an increased strength of positive associations to the north.

Second, we asked whether similarities in the pattern and strength of species associations follow a distance decay pattern or whether they are better explained by variation in environmental factors. Earlier, we demonstrated that environmental dissimilarity had a much stronger effect than geographic distance on compositional dissimilarity in both flea and mite communities (Vinarski et al. 2007; Krasnov et al. 2010a). Consequently, we predicted that similarity in the pattern and strength of flea and mite species associations would be better explained by variation in environmental variables rather than by mere geographic distance.

Materials and methods

Ectoparasite community composition

Data on fleas and mites recorded on the bodies of their small mammalian hosts (rodents and shrews) were compiled from the database of the Omsk Research Institute of Natural Foci Infections (Omsk, Russia). The database comprised data collected from 1960 to 2013 by various researchers in 109 localities across Western Siberia (see the map in Fig. S1 of Electronic Supplementary Material). Mammals were sampled in late spring–early fall using either snap-traps or pitfall traps with drift fences. Snap traps were deposited in the late evening and checked at dawn to minimize the number of parasites abandoning dead hosts. Pitfall traps were not filled with any fixation liquid. Captured animals were placed individually in cloth bags, transferred to a laboratory, and parasitologically examined under a stereoscopic microscope. The collected ectoparasites were then identified. To calculate metrics of co-occurrence (see below) in infracommunities (i.e., at the scale of component community), we included in the analysis only those host species that were represented in a locality by at least six individuals harboring at least three flea or mite species. To calculate metrics of co-occurrence in component communities (i.e., at the scale of compound community), we included in the analysis localities in which at least three host species were found to harbor at least two flea or mite species. This selection resulted in calculations of co-occurrence metrics (a) for infracommunities in component communities of fleas and mites in six and eight host species, respectively, and (b) for component communities in compound communities of fleas and mites in 44 and 47 localities, respectively.

Environmental data

The latitudinal and longitudinal positions of the locality centers were determined using ArcGIS 10.6. Environmental data for each locality included altitude; the amount of green vegetation (normalized difference vegetation indices (NVDI) separately for autumn, winter, spring, and summer); mean, maximum, and minimum air temperatures as well as annual and monthly ranges; and precipitation (separately for autumn, winter, spring, and summer), averaged across the area of a 2.5-km radius around the geographic position of the locality center. Altitude data were obtained using ArcGIS 10.6. NDVI data were taken from the VEGETATION Program (http://free.vgt.vito.be) for the period 1999–2018. Air temperature and precipitation data were taken from WORLDCLIM (BIOCLIM) 2.0 package (Fick and Hijmans 2017) for the period 1970–2000.

Calculation of co-occurrence metrics

The data for each component or compound community were organized as a presence/absence matrix with rows representing flea or mite species and columns representing either host individuals (for component communities) or host species (for compound communities). In the analyses of parasite co-occurrences, incidence (i.e., presence/absence) matrices are more appropriate than abundance matrices because measurements of parasite occurrences are more reliable than measurements of their abundances (Gotelli and Rohde 2002), especially due to the aggregated character of parasite distribution among host individuals (Poulin 2007).

Then, we applied the null model analyses implemented in the program EcoSim Professional 1.2d (Acquired Intelligence, Inc., and Pinyon Publishing; http://www.garyentsminger.com/ecosim/index.htm), and we used the C-score (the average number of checkerboard units found for each species pair; Stone and Roberts 1990) as a metric of co-occurrence of flea or mite species in each component or compound community [i.e., parasites × hosts (individuals or species, respectively) a matrix]. The C-score is one of the most commonly used metrics of species co-occurrence (Gotelli and McCabe 2002; Gotelli and Rohde 2002; Krasnov et al. 2006; Tello et al. 2008; Gotelli and Ulrich 2010; Kohli et al. 2018). A C-score was calculated for each present/absent matrix (observed C-score) and compared with the C-scores calculated for 5000 randomly assembled null matrices (expected C-scores); the tail probability that the observed index was larger or smaller than expected by chance was measured. A C-score is an inverse indicator of the co-occurrence frequency, so that an observed C-score larger than the average of expected C-scores (observed (O) > expected (E)) indicates negative co-occurrences (i.e., species are segregated), while an observed C-score smaller than the average of expected C-scores (O < E) indicates positive co-occurrences (i.e., species are aggregated) (Gotelli and Graves 1996; Gotelli 2000). We assembled null matrices by Monte Carlo procedures using a fixed-equiprobable (FE) algorithm, which does not constrain the number of parasite species on a host individual or species assuming that different host individuals or species are equivalent in their probability to harbor a particular number of ectoparasite species. Krasnov et al. (2006, 2010b, 2011) presented a biological justification for using the FE algorithm for analyzing the community structure of ectoparasites harbored by small mammals.

Then, we calculated the standardized effect size (SES) for each component or compound community matrix. SES measures the number of standard deviations that the observed index is above or below the mean index of simulated matrices (Gotelli and McCabe 2002) and is calculated as the difference between an observed index and a mean of simulated indices divided by the standard deviation of simulated indices. Approximately 95% of the observed SES values are expected to fall between − 2.0 and 2.0 under the assumption of a normal distribution of deviations. The sign of the SES of a C-score thus indicates a pattern of species association (segregation or aggregation), whereas its absolute value is a measure of association strength (Stone and Roberts 1990; Kohli et al. 2018). In many communities, the observed indices did not differ significantly from the null expectations (see “Results”). Nevertheless, independently of whether the observed indices differed significantly from the metrics calculated for simulated matrices, we considered communities with negative SES values as tending to be aggregated and communities with positive SES values as tending to be segregated.

Data analyses

To test for latitudinal variation in the pattern or strength of species associations, we applied either logistic or linear, respectively, models using the R package “stats” (R Core Team 2018). A response variable in the linear models was the absolute value of SES corrected for matrix size where necessary (see below). For a binomial response variable in the logistic models, we assigned zero or one to the communities with a tendency to demonstrate either segregative or aggregative, respectively, patterns of species co-occurrence. McFadden pseudo-r2 values for logistic regressions were calculated using the package “pscl” (Jackman 2017) implemented in the R Statistical Environment (R Core Team 2018). We applied both models separately for fleas and mites and across either component (e.g., within a host species) or compound (e.g., across localities) communities.

Then, we analyzed the effects of geographic distance and environmental dissimilarity on the dissimilarity in the pattern and strength of species associations in infra- and component communities of fleas and mites across component and compound communities, respectively, from different localities. The effects of geographic distance and environmental dissimilarity on the dissimilarity in the pattern of species associations were analyzed using multiple regression on distance matrices (MRM; Manly 1986; Legendre and Legendre 1998; Lichstein 2007), whereas these effects on the strength of species associations were analyzed using generalized dissimilarity modeling (GDM; Ferrier 2002; Ferrier et al. 2002; Ferrier et al. 2007). This difference in the analyses was necessary because GDM could not be applied to a binary response matrix (see below).

To test for the effects of geographic distance and dissimilarity in altitude and environmental factors on the dissimilarity in the patterns of co-occurrence, we constructed a matrix of pairwise binary distance measures assigning each pair of communities a distance of zero if they demonstrated the same pattern of co-occurrence (both segregative or both aggregative) or one if they demonstrate contrasting patterns. MRM is an extension of a partial Mantel analysis aimed at investigating relationships between a multivariate response (distance) matrix and a number of explanatory (distance) matrices. The significance of the model and regression coefficients is tested by permuting (10,000 permutations) a response matrix while holding the explanatory matrices constant. The rows and corresponding columns in the response matrices are permuted simultaneously, and the coefficient of determination of the model and regression coefficients are calculated for each permutation to generate a null distribution (Legendre and Legendre 1998; Lichstein 2007). Geographic distances between localities where ectoparasite communities occurred were calculated using Vincenty’s formula for distance on an ellipsoid implemented in the R package “geosphere” (Hijmans 2017). A dissimilarity matrix for altitude was constructed as absolute differences in altitude between each pair of these localities. The NDVI and climatic dissimilarities were computed between each pair of rows of data matrices (e.g., localities) using the Euclidean distance measure with the function “dist” of the R package “stats” (R Core Team 2018). MRM analyses were performed using the function “MRM” from the R package “ecodist” (Goslee and Urban 2007) modified by Pilosof et al. (2015).

The GDM analyses of the effects of geographic distance and environmental (altitude, NDVI, and climate) dissimilarities on the dissimilarity in the strength of species associations among ectoparasite communities followed van der Mescht et al. (2018). GDM represents an extension of matrix regression designed to take non-linearity into account. This is because (a) the relationship between ecological pairwise dissimilarity among communities or localities and the environmental or geographic distance between them is definitely curvilinear at high values of dissimilarity (because dissimilarity may vary only from 0 to 1), and (b) the rate of change of, for example, community structure along geographic distance or an environmental gradient may not be constant (Ferrier et al. 2007). To overcome (a), GDM transforms the linear predictor variable via a link function that defines the relationship between pairwise dissimilarities in structure among communities (constrained to the range 0–1) and a scaled combination of pairwise distances between communities based on environmental or geographical variables (see Ferrier et al. 2007 for details). To overcome (b), GDM transforms each predictor variable using an iterative maximum-likelihood estimation and I-splines (i.e., monotone piecewise functions). A given I-spline indicates the importance of a given predictor, while all other predictors are held constant (so that I-splines are partial regression fits). The maximum height of an I-spline represents the total amount of change along a given gradient, while its slope demonstrates the rate of change and its variation along this gradient (Ferrier et al. 2007).

To run GDMs, we used the “gdm” package (Manion et al. 2018) implemented in R. Dissimilarity matrices of the strength of species associations in flea or mite infra- or component communities were constructed using absolute pairwise differences in standardized C-scores (i.e., SES) between the component or compound communities, respectively, of either fleas or mites. The size of a community (i.e., matrix size; number of rows × number of columns) can significantly affect the absolute value of SES (Gotelli and McCabe 2002). This indeed appeared to be the case for all six component communities of fleas (r2 = 0.23–0.77, F = 4.21–9.67; p < 0.05 for all) and three of the eight component communities of mites (communities of Sorex araneus, Myodes rufocanus, and Apodemus agrarius; r2 = 0.20–0.80, F = 5.59–24.51; p < 0.05 for all), as well as for the compound communities of both ectoparasite taxa (r2 = 0.61, F = 65.01 for fleas and r2 = 0.43, F = 33.65 for mites; p < 0.01 for both). No relationship between matrix size and the absolute value of SES was found for the remaining component communities of mites (r2 = 0.02–0.18, F = 0.68–3.06; p > 0.10 for all). Consequently, prior to calculating dissimilarity matrices on the strength of species association, we substituted the original values of SES with their residual deviations from their regression on matrix size (for communities in which the relationships between these variables were significant). Then, we scaled the values of either absolute SES values or the abovementioned residuals to a 0–1 range and constructed dissimilarity matrices from these scaled values.

Before further analyses, we applied a principal component analysis separately to NDVI and climatic (air temperature and precipitation) variables. We extracted a single principal component from four NDVI variables (further referred to as a NDVI factor). This component explained 85.3% of total variation in NDVI, and its scores correlated negatively with four original (= seasonal) NDVI variables (r ranged from − 0.98 to − 0.85). A principal component analysis of climatic variables resulted in two principal components (climatic factor 1 and climatic factor 2) that explained 77.03% of the total variation. Climatic factor 1 correlated positively with spring, summer, and fall precipitation and negatively with the annual range of air temperature (r = 0.81–0.94 and r = − 0.74), whereas climatic factor 2 correlated positively with the remaining temperature variables (r = 0.73–0.95).

For each of the abovementioned factors, as well as for the altitude, environmental dissimilarity matrices were constructed using Euclidean distances between each pair of component or compound communities by the internal function of the “gdm” package. Then, we used the default setting of three I-splines to fit the GDMs. The response matrix in the main GDM was pairwise dissimilarity in the strength of flea or mite species associations, whereas the predictor matrices were pairwise dissimilarity in altitude, NDVI factor, climatic factors 1 and 2, and geographic distance between the localities of component and compound communities.

We did not adjust the alpha-level for multiple comparisons because this may increase the probability of a type II error, which has been severely criticized by both statisticians and biologists (Perneger 1998; Nakagawa 2004).

Results

The majority of the C-scores of the observed present/absent matrices indicated a tendency to species aggregation rather than segregation in infra- and component communities of both fleas and mites (Table 1). The C-scores of the observed matrices were significantly smaller than those of the simulated matrices for 86 of 244 component communities and 27 of 122 compound communities (Table 1). The C-scores of the observed matrices were significantly larger than the C-scores of the simulated matrices for only two component communities (fleas in infracommunities of Myodes glareolus and mites in infracommunities of Microtus oeconomus) (Table 1).

Table 1 Summary of null model analyses of species co-occurrences in flea and mite infracommunities (i.e., at the scale of a component community) and component communities (i.e., at the scale of a compound community). O < E and O > E: numbers of communities for which the observed index of co-occurrence (C-score) was either smaller or greater, respectively, than the averaged indices in simulated communities. Numbers of communities with significant (p < 0.05) difference between the observed C-score and the average C-score of simulated matrices are in parentheses

There was no effect of latitude on the pattern of species associations (McFadden pseudo-r2 = 0.0002–0.12, p > 0.23 for coefficients in all models). The same was true for the strength of species associations in a community (i.e., absolute value of SES) for both fleas and mites in either component (r2 = 0.0006–0.19, F = 0.01–2.91 for fleas and r2 = 0.01–0.15, F = 0.01–3.13 for mites; p > 0.09 for all) or compound (r2 = 0.1, F = 0.68 for fleas and r2 = 0.02, F = 1.02 for mites; p > 0.32 for both) communities.

The results of the logistic MRM analysis of the effects of geographic distance and environmental variables on dissimilarity in the pattern of species co-occurrence (segregative versus aggregative) are presented in Table 2. No effect of either geographic distance or environmental dissimilarity on the dissimilarity of the pattern of species co-occurrence in infracommunities (within a component community) was found in either fleas or mites. The same was true for component communities within a compound community of fleas. However, dissimilarity in the pattern of mite species co-occurrence appeared to be affected by dissimilarity in the amount of green vegetation (Table 2). The probability of the pattern of species co-occurrence in a pair of communities to be different increased with an increase of dissimilarity in NDVI (Fig. 1).

Table 2 Results of logistic MRM analysis of the effects of geographic distance (GD) and dissimilarity in altitude (A), NDVI and climate (see text for explanation) on dissimilarity in the pattern of flea and mite species associations in infracommunities (i.e., at the scale of a component community) and component communities (i.e., at the scale of a compound community). Coefficients of the models are shown. *p < 0.001
Fig. 1
figure 1

Probability of a pair of component communities of mites within a compound community to demonstrate either the same (S) or different (D) patterns of species co-occurrences dependent on dissimilarity in the amount of green vegetation (NDVI)

Total deviance explained by the full GDMs ranged from 0.88 to 58.49% for the strength of species associations in flea infracommunities and from 2.27 to 47.18% in mite infracommunities (Tables 3 and 4). A relatively large proportion of total deviance was explained by GDMs in only three host species for fleas (Apodemus agrarius, M. glareolus, and Myodes rufocanus) and two host species for mites (Microtus gregalis and M. rufocanus) (Tables 3 and 4). The best predictors of dissimilarity in the strength of flea species associations differed between host species, with the NDVI factor for A. agrarius, geographic distance for M. glareolus, and climatic factor 1 for M. rufocanus (Table 3). In the two former host species, dissimilarity in the strength of species associations was the greatest between communities in localities with the lowest amount of green vegetation (note the negative correlation between the observed values of NDVI and the NDVI factor) or those that were situated at the farthest distances, whereas in the latter, species dissimilarity in the strength of species associations sharply increased in localities with lower precipitation and a high annual range of air temperature (see “Materials and methods”) and then stabilized (Fig. 2). Climatic factor 1 was the best predictor of dissimilarity in the strength of mite species associations in infracommunities harbored by both M. gregalis and M. rufocanus. In both host species, the pattern of the rate of change in the strength of species associations along this gradient was similar to that found for flea infracommunities in the latter species (Fig. 3).

Table 3 The total deviance (%) explained by GDMs (TD) of dissimilarity in the strength of species associations in flea infracommunities (i.e., across component communities) and component communities (i.e., across compound communities) and coefficients of the I-splines from the GDM of the dependence of dissimilarity in the strength of species associations on geographic distance (GD) and environmental variables (altitude (A), NDVI factor (NDVI), and climatic factors 1 and 2 (CF1 and CF2, respectively); see text for explanations)
Table 4 The total deviance (%) explained by GDMs (TD) of dissimilarity in the strength of species associations in mite infracommunities (i.e., across component communities) and component communities (i.e., across compound communities) and coefficients of the I-splines from the GDM of the dependence of dissimilarity in the strength of species associations on geographic distance (GD) and environmental variables (altitude (A), NDVI factor (NDVI), and climatic factors 1 and 2 (CF1 and CF2, respectively); see text for explanations)
Fig. 2
figure 2

Generalized dissimilarity model–fitted I-splines (partial regression fits) of NDVI factor (negative correlation with seasonal NDVI), geographic distances, and climatic factor 1 (positive correlation with seasonal precipitation and negative correlation with the annual range of air temperatures) as predictors of the dissimilarity in the strength of species associations in infracommunities of fleas harbored by Apodemus agrarius, Myodes glareolus, and Myodes rufocanus. The steeper slope of the transformed relationship on a given section of the gradient indicates a greater rate of changes in the strength of species associations

Fig. 3
figure 3

Generalized dissimilarity model–fitted I-splines (partial regression fits) of climatic factor 1 (positive correlation with seasonal precipitation and negative correlation with the annual range of air temperatures) as a predictor of the dissimilarity in the strength of species associations in infracommunities of mites harbored by Microtus gregalis and Myodes rufocanus. The steeper slope of the transformed relationship on a given section of the gradient indicates a greater rate of changes in the strength of species associations

The proportion of total deviance explained by the full GDMs for dissimilarity in the strength of species associations in flea and mite component communities was low and constituted only 0.04% and 0.16%, respectively.

Discussion

In general, the results of this study did not support the majority of our expectations. First, we did not find any effect of either latitude or environmental variables on either the pattern or the strength of species associations. Second, dissimilarity in the pattern and strength of species associations between parasite communities did not depend on geographic distance (except for flea communities harbored by M. glareolus) but was affected by dissimilarity in environmental factors, although this was found for component communities of some but not other host species and for compound communities of mites but not fleas.

One of the reasons for the lack of the effect of latitude on community assembly is that latitude is not a factor that can directly affect species relationships but is rather a proxy for many factors such as, for example, climate and soil and vegetation structure, as well as their interactions (Hawkins and Diniz-Filho 2004; Morand 2015). However, the direct effects of the NDVI and climatic variables on either the pattern or the strength of species associations also remain undiscovered. This can be associated with the relatively short latitudinal range in our study (from the highest 68.04°N to the lowest 50.09°N) and the concomitant weak latitudinal variation in bioclimatic factors. Moreover, many fleas and mites spend most of their lives in host burrows/nests with a relatively stable microclimate that varies spatially and temporally much more weakly than does the surrounding environment (Shenbrot et al. 2002). The microclimatic stability of burrows does not even force rodents to construct deeper burrows in more northern regions because of the insulation provided by soil and snow (e.g., Van Vuren and Ordeñana 2012). Consequently, the within-burrow environment has likely not been perceived by ectoparasites as more benign in the south or harsher in the north. As a result, the combination of the stress gradient and the latitudinal gradient of community assembly hypotheses (Qiao et al. 2015) cannot hold for nidicolous ectoparasites, at least, for the latitudinal range considered in our study. In addition, the latitudinal gradient in the parasite community structure, including species richness and composition, as well as the traits of individual species, appeared not to be universal (Vinarski et al. 2007; Blasco-Costa et al. 2015; van der Mescht et al. 2018).

Similar to latitude, geographic distance per se is not a real factor, but it rather reflects the dissimilarity in biotic and abiotic conditions among localities. As a result, compositional dissimilarity in ectoparasite communities has been found to be affected mainly by environmental dissimilarity rather than geographic distance (Vinarski et al. 2007; Krasnov et al. 2010a; Maestri et al. 2017). Indeed, we found an effect of geographic distance on the dissimilarity in the strength of flea (but not mite) species associations in one host species only (M. glareolus). Moreover, the differences in altitude and the amount of vegetation between localities also affected the dissimilarity in the strength of species associations in flea communities harbored by this host. It is thus possible that geographic distance was correlated with some other environmental variables important for flea communities of M. glareolus that have not been measured. We, however, admit that this explanation is speculative.

Despite relatively homogeneous environmental conditions across our study area, environmental differences between localities were sufficiently pronounced for their effects on the pattern or strength of species associations to be detected. However, the effect of environmental dissimilarity on the pattern of species co-occurrence has been found in only one case—across compound communities of mites—although the proportion of communities with contrasting patterns of co-occurrences did not differ between the two ectoparasite taxa. The most obvious reason for the general lack of any relationship between dissimilarity in the pattern of associations and environmental dissimilarity or geographic distance is merely the relative invariance in this pattern. Indeed, an absolute majority of communities were characterized by positive species associations. This is in agreement with the results of our earlier studies on fleas at different hierarchical scales (Krasnov et al. 2006, 2010b, 2011). Predominantly positive species co-occurrences in fleas have been explained by apparent facilitation (Levine 1999) among species mediated via the host due to immunosuppression in a host subjected to multiple challenges (Cox 2001). However, support for this mechanism from experimental manipulations with a pair of flea species was equivocal, and the outcome of species interactions depended on the identities of both fleas and hosts (Khokhlova et al. 2015 versus Khokhlova et al. 2016). Another, not necessarily alternative, reason for the positive co-occurrences of flea and mite species on host bodies can be the microclimatic conditions in host burrows that are favorable for many ectoparasite species. Coupled with a large amount of organic matter serving as food resources for flea larvae and immature and mature stages of many mite species, these conditions likely result in the co-occurrence of multiple species in the hosts’ burrow/nest, which is further translated into their co-occurrence on the hosts’ bodies (Krasnov et al. 2004).

Nevertheless, a relationship between the dissimilarity in the amount of green vegetation and the probability of the pattern of species co-occurrence in a pair of mite communities to be different was found. This suggests that vegetation structure may somehow affect mite species interactions. The most likely mechanism behind this is the effect of the structure of the host’s nest on interactions between mite species because vegetation structure affects the selection of burrow/nest sites and the composition of nests in small mammals (e.g., Kuroe et al. 2007). In addition, nidicolous ectoparasites searching for a host may move from the nest to the entrance of the host’s burrow and even outside the burrow (Humphries 1969; Tagiltsev and Tarasevich 1982; Cox et al. 1999; Burdelov et al. 2007) and thus be directly affected by vegetation structure. However, life history details are unknown for the majority of mite species, so it is difficult to propose a more detailed explanation.

Changes in the strength of species associations along environmental gradients were detected across component communities. These changes were mainly affected by gradients in the amount of green vegetation and precipitation (indicated via climatic factor 1). In general, this supports the idea that environmental factors may enhance or suppress the intensity of both positive and negative species interactions (Kraft et al. 2014). Environmental mediation of species interactions has long been known (Hutchinson 1961) and has often been reported for free-living species (see review in Brooker et al. 2008 for plants). For example, the intensity of interspecific competition between two bird species varied due to habitat productivity reflected in food availability (Dhondt 2010). Water temperature was found to affect the intensity and outcome of interspecific interactions in fish (Milazzo et al. 2012). Choler et al. (2001) demonstrated that facilitation among alpine plants increased with increasing altitude. To the best of our knowledge, the effect of environment on species interactions has never been specifically studied in parasites. However, studies on co-infection patterns suggest that this effect undoubtedly exists (see review in Viney and Graham 2013). Proximate mechanisms for the effect of environment on the outcome of species interactions may include similar environmental preferences of interacting species that ultimately result in the co-occurrence of a certain set of species in a particular environment (= environmental filtering; see Krasnov et al. 2015 for fleas). These mechanisms may also be associated with differential responses to environmental factors causing species segregation among localities (see Krasnov et al. 2001 for fleas parasitic on the same host species).

As mentioned above, positive parasite co-occurrences may arise from the processes acting in a host body (immunosuppression due to multiple challenges) or processes acting in a host burrow (favorable conditions for multiple ectoparasite species) or both. We found the presence of relationships between environmental factors and the strength of ectoparasite species associations (predominantly positive) in the infracommunities of some but not other host species. One explanation for this could be among-host differences in the extent of spatial or environmental variation in immunocompetence or burrow structure. Although the study of the eco-immunology of wild small mammals is in its infancy, and their immune abilities are poorly known (Viney and Riley 2017), among-species differences in immunocompetence have been shown (Goüy de Bellocq et al. 2006; Previtali et al. 2012), and thus, differences in the response of this trait to environmental variation are likely. For example, regarding burrows, it is known that burrow architecture (depth, tunnel length, number of entrances) varies among habitats in some small mammal species more than in others (Kucheruk 1983).

In conclusion, the results of our study demonstrate that the pattern and strength of species associations in ectoparasite communities rarely conform to biogeographic rules. Nevertheless, when a biogeographic pattern in community assembly is found, its manifestation differs among host species and between ectoparasite taxa.