Introduction

Understanding the mechanisms which determine the generation of biodiversity and the structure of biological communities is a major concern of ecology1. Ecologists generally agree that the structure and assembly of communities are the result of a complex combination of ecological processes that interact with each other and whose relative importance changes with spatial scale2,3. On the one hand, niche-related processes are deterministic and include environmental filtering and interactions among individuals (e.g. competition, predation, facilitation). On the other hand, neutral processes include stochastic events such as dispersal, speciation and extinction. Disentangling and assessing the relative importance of these processes in shaping biological communities has attracted the attention of ecologists for many years4. The topic continues to be heavily debated, particularly in the field of microbial ecology where the tiny size of individuals makes it difficult to track the dynamics of populations in time and space5,6,7,8.

In freshwater ecology, diatoms have long been used as a model taxonomic group to study microbial communities’ diversity patterns9,10,11. However, despite important progress, uncertainty persists regarding the ecological forces driving diatom community assembly. These questions have traditionally been addressed using a taxonomic perspective of diversity where taxa are regarded as independent entities. However, species are not independent entities because of their shared evolutionary history and standard statistical approaches based only on taxonomic names are limited because they cannot reflect this dependence. It is acknowledged that in order to elucidate mechanisms of ecological assembly, ecologists need to account for species differences and similarities regarding their environmental tolerances and dispersal capacities12,13,14.

Since functional diversity offers more insights into the processes at the origin of biodiversity15,16, a stronger emphasis has been placed on trait-based ecology in recent years17. However, given their large diversity and their microscopic size it is challenging to collect trait data for diatoms, and a comprehensive trait database for ecological studies is still missing18. To circumvent this problem, it was proposed to group diatom species into guilds or functional groups19. While useful to study the general structure of communities along environmental gradients20,21, guilds remain a very coarse classification and cannot be used to capture the multiple and subtle ecological strategy differences among species. Ecological strategies are often best represented as continuous variables22 and binning species into ecological guilds or functional groups can bias the analyses against detection of non-random assembly processes14.

Phylogenetic diversity offers a promising alternative to taxonomic and functional approaches for studying diatom ecology. Under the assumption that functional trait differences between species are correlated with the time since they diverged, phylogeny can be used as a proxy for species ecological similarity. By integrating the evolutionary history of the species, phylogenetic diversity can provide substantial insights into the ecological processes underlying community structure and composition23,24.

Community ecologists have been particularly interested in using methods designed to assess the phylogenetic structure of communities (i.e. divergence)25 to infer local ecological processes26,27. The observed phylogenetic divergence of a set of species within a site can be compared to the divergence in simulated null assemblages, allowing the detection of non-random patterns in community assembly. These non-random patterns of phylogenetic co-occurrence can in turn be interpreted as the result of ecological processes. If co-occurring taxa are found to be more related than in null assemblages, species are phylogenetically clustered and this is generally seen as the result of environmental filtering. Alternatively, if taxa are found to be less related than in null assemblages, species are phylogenetically over-dispersed and this is often interpreted as evidence for competitive exclusion.

In addition, it is essential to study how diversity changes across sites (beta-diversity) in order to understand the mechanisms of ecological assembly driving the structure of communities across environmental and spatial gradients28,29. Again, incorporating phylogenetic information into the study of compositional turnover between communities is important, as species are not independent entities30. Taking into account the functional variation among species through their phylogenetic relatedness is therefore a significant improvement, especially in hyperdiverse clades like diatoms where the large number of species is likely to increase the degree of functional redundancy.

While the number of phylogenetic analyses of diversity has grown exponentially in recent years, none have been conducted on diatoms. Here, we analyse the phylogenetic structure and diversity of 581 freshwater benthic diatom communities in order to investigate the ecological mechanisms that drive microbial community assembly in rivers and streams. It has long been demonstrated that niche-related processes play an important role in shaping communities of microorganisms in general7 and of diatoms in particular31,32,33. Our goal is to extend these results and test the hypothesis that environmental filtering is dominant but can be modulated by the environmental condition. In particular, we expect environmental filtering to be stronger in nutrient poor or acidic environments, which are known to be stressful conditions for diatoms. In order to test this hypothesis, we assess the relationship between environmental conditions and the structure of diatom communities. We also investigate the pairwise community phylogenetic structure variation along environmental and spatial gradients. Numerous recent studies of diatom beta-diversity have highlighted that communities are the result of both local factors (current ecological factors) and regional factors (origin, dispersal and extinction events). Our aim is to assess if, by including an evolutionary perspective, phylogenetic diversity can corroborate and deepen these results.

Results

Across the 581 samples, the mean of the standardised mean pairwise distance index (SES-MPD) and of the standardised mean nearest taxon distance index (SES-MNTD) were both found to be significantly below zero (Fig. 1, SES-MPD mean = −0.211, t-test t = −3.533, p-value < 0.001; SES-MNTD mean = −1.786, t-test t = −36.018, p-value < 0.001), indicating a general tendency to species phylogenetic clustering within communities. Moreover, we found SES-MNTD values to be significantly lower than SES-MPD (Fig. 1, paired t-test t = −20.248, p-value < 0.001), indicating that species clustering was possibly more important near the tips of the tree.

Figure 1
figure 1

Standardized effect size of the mean pairwise distance index (SES-MPD) and the mean nearest taxon distance index (SES-MNTD) in the 595 investigated sites. The thick lines represent the means.

The best model explaining SES-MPD variation included upstream catchment area (UCA), total organic carbon (TOC) and pH (Table 1). The relative importance metric LMG identified UCA as being the most important predictor (Fig. 2). Overall, we found that SES-MPD increases with UCA, TOC and pH (Table 1, Fig. 3).

Table 1 Results of the best fit selected models (multiple regressions) explaining the standardised mean pairwise distance index (SES-MPD) and the standardised mean nearest taxon distance index (SES-MNTD) variation.
Figure 2
figure 2

Relative importance (LMG value) of the environmental variables retained from the best fit models explaining the standardised mean pairwise distance index (SES-MPD) and the standardised mean nearest taxon distance index (SES-MNTD) variation. Vertical bars represent the 95% confidence intervals computed on the basis of 1000 bootstrap runs.

Figure 3
figure 3

Relationship between the environmental variables retained from the best fit models and the standardised mean pairwise distance index (SES-MPD; first row) and the standardised mean nearest taxon distance index (SES-MNTD; second row). All relationships are significant (p-value < 0.05).

For SES-MNTD, the best model included UCA and nutrients (Table 1). In this case, nutrients were the most important predictor (LMG = 0.12, CI = [0.08; 0.17]). We found that both nutrients and UCA have a positive effect on SES-MNTD (Table 1, Fig. 3)

The forward selection procedure selected three environmental variables (Nutrients, pH, TOC) and 55 db-MEMs for the Jaccard index, all the environmental variables and 30 db-MEMs for the Dpw index and three environmental variables (Nutrients, pH, UCA) and 36 db-MEMs for the Dnn index. Variation partitioning (Table 2) indicated a significant effect of environment and space on turnover for all the investigated measures of beta-diversity (all p-values < 0.001). Overall, the effect of space (without environment) was found to be more important than the effect of environment (without space). The proportion of variance explained by space and environment taken together was the highest for the phylogenetic index Dnn (total R²adj = 0.42), followed by the taxonomic index Jaccard (total R²adj = 0.19). The variation of the phylogenetic index Dpw was poorly explained by the model (total R²adj = 0.04).

Table 2 Results of beta-diversity variation partitioning. For each index, the explained variation (R²adj) is given for the effect of environment without space (Environment|Space), the effect of space without the environment (Space|Environment), and the joint effect of environment and space (Environment ∩ Space).

Discussion

Here we analysed a large set of diatom communities using an evolutionary perspective of diversity. At the community level we detected phylogenetic clustering which is often regarded as evidence of environmental filtering34. However, several factors may weaken the hypothetical links between observed patterns and on-going ecological processes35,36. As a consequence of this, the interpretation of non-random phylogenetic patterns is a delicate procedure which demands detailed investigation. To this end, comparing different metrics and relating their respective variation to environmental gradients can be of great help.

The SES-MPD and SES-MNTD metrics used to measure within-sites phylogenetic divergence yielded results with important differences. These differences can be explained by the fact that these two metrics are not detecting phylogenetic patterns at the same depth37. In theory, phylogenetic structures within communities vary according to the phylogenetic signal in functional traits and habitat association38, which in turn vary with the phylogenetic depth23. In our study, the degree of clustering was found to be stronger by SES-MNTD (Fig. 1) which, unlike SES-MPD, is a terminal metric detecting patterns near the tips of the tree. This result is consistent with our knowledge of niche evolution in diatoms, as it has been shown that the phylogenetic signal for many ecological optima is mainly located near the surface of the phylogenetic tree39.

Our results highlight the primary role of nutrient availability in environmental filtering of diatom communities. This was reflected by a stronger phylogenetic clustering in nutrient-poor environments (Fig. 3). Diatoms are autotrophic cells and their growth directly depends on light and nutrient supply. In low nutrient streams, adaptations providing better efficiency for nutrient uptake are strictly necessary for maintenance and ecological success. Contrary to nutrients, neither pH nor TOC were found to be important predictors of SES-MNTD, despite the fact that these two parameters are known to favour specific diatom genera (e.g. Eunotia and Frustulia for pH)40. However, in this dataset pH and TOC are to some extent correlated with nutrients. In particular, streams with low pH are often nutrient poor and collinearity effects could explain why pH and TOC were excluded from the SES-MNTD model.

Because ancient lineages of diatoms have diversified into sub-clades inhabiting a large variety of environments39, the phylogenetic signal in habitat association is assumed to be low in the deepest part of the tree. Hence, it is not surprising that we found a weak average level of structure using a basal metric like SES-MPD. However, it is worth noting that we found the strength of phylogenetic structure to be highly variable among communities (Fig. 1). This variation is mainly explained by UCA (Fig. 2, Table 1), with divergence increasing as UCA increases (Fig. 3). We suggest two possible explanations for this result. First, a small catchment upstream the sampling point is most often an indication that the stream is rather small where sampled, and is likely subject to a stronger perturbation regime which may filter morphologically adapted species. Environmental filtering would therefore be more important in the upper part of the basin, and this process could be detected with a basal metric since structural morphological features and life-forms are likely to be conserved throughout the species’ evolutionary history. Second, SES-MPD can be controlled by dispersal. As the size of the catchment area increases, the number of tributaries and the diversity of environmental conditions upstream statistically increase, thereby increasing the potential chances to recruit new lineages. Diatoms are known to disperse passively with water flows and over large distances through animals and atmospheric deposition41. In microbial species with high dispersal capacities like diatoms, dispersal-related dynamics can play an important role in community assembly42 and it has been shown that dispersal can have a strong effect on community phylogenetic structure43.

In general, our results do not support the idea of competitive exclusion that would select for niche differentiation. Our results can be interpreted as evidence for weak biotic interactions among coexisting species44. However, in the particular case of diatoms, phylogenetic distance could also be limited in explaining relative fitness differences among species, as reported in freshwater green algae45. It is also important to note that other factors than those we have analysed in our study, such as local water chemistry, flow disturbances and access to light are known to play an important role on benthic diatom community structure. Microbial benthic communities are organized in 3 dimensions forming complex ecosystems with vertical gradients of light and nutrients decreasing from top to bottom. In these systems (sometimes compared to microbial forests)19,46 erected and colony-forming species are considered to constitute the canopy while other species have developed strategies (e.g. heterotrophy, motility) to maintain themselves in the lower part of the biofilm. Similarly to terrestrial forests, the development of a river biofilm is the result of a species succession process where competition plays an important role, and in which the community composition can be largely dependent on the time since the last disturbance and the disturbance regime. However, high-resolution data on disturbances and light penetration through biofilms are rarely available in large scale diatom assessments. Hence, the study of phylogenetic community structure dynamics during diatom successional changes would require further in situ colonisation controlled experiments.

The beta-diversity analyses revealed a significant effect of environment and space on diatom community turnover, regardless of the metric used (Table 2). This result was expected, as many recent studies have highlighted the joint effect of niche related processes and dispersal limitation in controlling diatom community taxonomic structure33,42,47,48. Nonetheless, it is important to note that the variation in Dnn was much better explained by space and environment than the taxonomic beta-diversity metric (Jaccard). This result can be attributed to the fact that phylogenetic diversity (here Dnn) can achieve a better ecological realism than taxonomic beta-diversity, precisely because it incorporates information on species similarities. In this case, a high functional redundancy is likely to generate a high turnover between closely related diatom species which is best modelled by a phylogenetic metric of diversity.

Similarly to local phylogenetic divergence, phylogenetic beta-diversity is highly dependent on the strength and location of phylogenetic signal in habitat association. Thus, Dpw which is a basal metric37,49, was very poorly explained by the environmental matrix as a consequence of the low phylogenetic signal in diatom ecological niche in the deeper part of the tree. In addition, the amount of variance in Dpw explained by spatial predictors was found to be very low, indicating a weak phylogeographic signal. Again, the strong dispersal capacities of microscopic organisms can explain this observation. At the investigated scale, the dispersal rate of diatoms is high enough to obscure any geographical signature of historical colonization or local diversification.

Our study offers new insight into the community assembly of freshwater diatoms and confirms the ability of phylogenetic approaches to shed new light on long-standing questions in microbial ecology. Previous works have approached ecological questions in benthic diatoms by using taxonomic ranks as a surrogate for phylogenetic information44,50. However, molecular phylogenies constitute a significant improvement over taxonomy because identically ranked taxa are often not comparable in terms of age and diversification rate51. The phylogenetic tree used in this study reflects more closely the evolutionary history of diatoms than a taxonomy-based approach would do, and provides a good estimate of the relative age of the genera. Still, a large number of species have been inserted on the basis of taxonomy and the nested phylogenetic relationships below the genus level remain poorly resolved. It should also be noted that in this study, the phylogenetic information was collected separately from the biological data. The diatom community compositions were obtained through classical morphology-based microscopy, but the strength of these data is that they were produced by a handful of trained diatomists and they were all intercalibrated and harmonized. However, our approach of mapping taxa identified through microscopy onto a molecular phylogeny can be limited by discrepancies between morpho-taxonomy and genetic diversity. We can therefore expect that future studies will take advantage of advances in diatom sequencing and phylogenetic reconstruction to study environmental filtering and competitive exclusion at the finest resolution possible. Further investigations will also be necessary to combine phylogeny with trait data (upon availability) in order to provide an integrated perspective of the mechanisms driving diatom ecology and community assembly. It will be particularly interesting to contrast which traits explain deep and recent phylogenetic structures in diatom communities. Finally, the question of spatial scale, which is also important in understanding biological diversity across time and space, should be investigated in combination with phylogeny in future studies.

Materials and Methods

Data

A total of 581 diatom samples were collected across lotic systems in Sweden (Supplementary Fig. S1) between 1998 and 2010 (between August and October) and prepared following standard protocols52,53. For each sample, at least 400 valves were counted under microscope, and identified to the lowest taxonomic level possible using the literature in the Swedish standard54. Identification was performed by only a few Swedish analysts, all harmonized to conventions adopted by the Nordic-Baltic Network for Benthic Algae in Freshwater55, meaning that the variation in diatom species lists was not larger between than within analysts56.

We considered four environmental variables, based on their availability and recognized importance for diatom communities: pH, total organic carbon (TOC), nutrients (composite variable including nitrogen and phosphorus) and upstream catchment area (UCA). For each environmental variable we computed the mean value of the records available for the 12 months period preceding the biological sampling. Both TOC and UCA were log-transformed prior to analyses. Nitrogen and phosphorus concentration were found to be highly correlated which can be problematic for inference analyses. Therefore, they were pooled into one single variable reflecting nutrient availability. This variable was calculated as the site projection on the first component of a principal component analysis (PCA) including log-transformed total nitrogen and log-transformed total phosphorus concentrations.

Phylogeny

We used the time-calibrated phylogeny of diatoms published by Nakov et al.57. This tree of 1151 taxa is the most inclusive diatom species phylogeny to date. It was reconstructed by maximum likelihood using 11 genes (18 S rRNA, 28 S rRNA, 16 S rRNA, atpB, psaA, psaB, psbA, psbC, rbcL, cob and coxI) and 38 calibration points (see57 for details). The phylogeny included 193 taxa of the community dataset. We grafted missing taxa to the most recent common ancestor of all members sharing the lowest taxonomic level available in the tree. Missing varieties (67) were inserted at species-level and missing species (515) were inserted at genus-level. This way, each inserted taxon is separated from the other on the basis of its taxonomic name and is replaced on an independent branch in the tree. Missing taxa belonging to genera that were not available in the tree were not used in the analyses (98). Therefore, the analyses were conducted on 775 taxa. The complete list of species included in the analyses is available as Supplementary Methods S1.

Phylogenetic community structure

To measure the phylogenetic structure of the communities we calculated two statistics: the mean pairwise distance index (MPD) and the mean nearest taxon distance index (MNTD). Both MPD and MNTD are classical measures of phylogenetic divergence and can be used to assess whether local communities are non-randomly structured25,26. However, they differ in their sensitivity to phylogenetic depth37,58. The MPD index is a basal metric which is sensitive to deep phylogenetic structures, whereas the MNTD index is a terminal metric which is sensitive to structures near the tips of the tree. Because these measures of phylogenetic diversity are not statistically independent from the species richness, we calculated a standardized effect size of each metric (SES-MPD and SES-MNTD) against a distribution of 1000 null values computed by shuffling the tip labels in the tree.

To examine changes in community structure across the environmental gradients, we used linear models to regress SES-MPD and SES-MNTD against environmental variables. In each case, the best fit model was selected based on the minimum AICc score. The relative importance of the variables in the best models was assessed using the average of sequential explained variances over all possible orderings of regressors, noted LMG59.

Phylogenetic beta-diversity

For each pair of sites, we calculated a taxonomic dissimilarity index and two phylogenetic dissimilarity indices. We used the Jaccard index to measure the taxonomic turnover in diatom composition among sites and the intercommunity MPD (Dpw) and MNTD (Dnn) indices to measure the phylogenetic beta-diversity.

We used distance based redundancy analysis (db-RDA) to relate the variation in the different diversity indices to the environmental gradients. Finally, variation partitioning was used to examine the relative importance of space and environment in explaining taxonomic and phylogenetic turnover among sites. In variation partitioning, space was modelled using distance-based Moran eigenvector maps (db-MEM)60,61. We extracted db-MEM exhibiting a positive correlation and performed a forward selection procedure with double stopping criterion62 to limit the number of variables included in each model.

Software

Analyses were performed in R v3.3.1. Taxonomic diversity analyses were conducted with vegan63 and phylogenetic diversity analyses with picante64. Relative importance metrics (LMG) for linear regression were computed with relaimpo65. We computed db-MEM with adespatial66. Multivariate analyses were conducted with vegan.