Introduction

The adoption of a metacommunity perspective in understanding riverine fish community organization requires the recognition of suitable spatial scales in which ecological mechanisms operate (Heino et al., 2015). Riverine systems have a hierarchical branching structure where multiple isolated branches (headwaters) are connected to the mainstem channel forming a riverine network (Grant et al., 2007; Muneepeerakul et al., 2008; Lynch et al., 2011; Altermatt, 2013; Altermatt et al., 2013; Vitorino Jr. et al., 2016; Tonkin et al., 2018). The notion that freshwater fish communities are linked by species movement through the river network has stimulated aquatic ecologists to consider the dendritic nature of riverine metacommunities (Altermatt, 2013; Tonkin et al., 2018). In this context, headwater streams and mainstem channel sites are potential patches to be occupied by species but this occupation depends on the characteristics and dispersal constraints of each species (Erős, 2017), and the relative influence of dispersal and niche-based processes on the structure of metacommunities may vary spatially (Brown & Swan, 2010; Henriques-Silva et al., 2019). Therefore, studies encompassing the broader range of habitats present in riverine networks, such as headwater streams and mainstem channel sites, may provide valuable information about the context dependency of processes underlying the metacommunity organization in freshwater systems (Carvalho & Tejerina-Garro, 2015).

Headwater streams are located at the most upstream section of the river network and their environmental variability and unpredictability act as strong filters to fish species and their ecological traits (Poff, 1997; Jackson et al., 2001; Grenouillet et al., 2004; Carvalho & Tejerina-Garro, 2015). Therefore, fish assemblages of headwater streams are often composed of only a few species with some level of endemism (Meyer et al., 2007; Altermatt, 2013; Borges et al., 2020) and with similar functional traits (Carvalho & Tejerina-Garro, 2015). Nevertheless, in headwater habitats, environment and physiography may differ among streams (Tejerina-Garro et al., 2005; Súarez & Petrere Jr., 2006; Vitorino Jr. et al., 2016) suggesting that each fish assemblage will be primarily structured by its own set of local factors (species sorting mechanism, sensu Leibold et al., 2004) with species and trait selection leading to taxonomic and functional turnover across headwater streams. In fact, recent studies conducted in the Neotropical region reveal that taxonomic turnover and functional nestedness explain beta diversity patterns in tributaries (Vitorino Jr. et al., 2016; Peláez et al., 2017; Peláez & Pavanelli, 2019). On the other hand, mainstems are recognized to be environmentally stable, presenting higher habitat heterogeneity than headwater streams and providing connection among fish assemblages along the upstream/downstream gradient (Meffe & Minkley, 1987; Jackson et al., 2001). These characteristics are expected to reduce the environmental effects on fish assemblages and favor regional processes, such as species dispersal and mass effects (Heino et al., 2015). In this context, one may expect the occurrence of species turnover to be related to species dispersal abilities and a decrease in functional dissimilarities among assemblages along this longitudinal gradient, which represents an intermediate spatial scale. At this scale, evidence has been found for fish taxonomic turnover (Vitorino Jr. et al., 2016; Peláez et al., 2017; Zbinden & Matthews, 2017; Peláez & Pavanelli, 2019), functional turnover (Vitorino Jr. et al., 2016), and functional nestedness patterns (Peláez & Pavanelli, 2019). Despite the increasing number of studies regarding fish beta diversity patterns (e.g., Brown & Swan, 2010; Logue et al., 2011; Vitorino Jr. et al., 2016; Medina Torres & Higgins, 2016; Peláez et al., 2017; Zbinden & Matthews, 2017; Huang et al., 2019; Peláez & Pavanelli, 2019), few have addressed the role of the riverine network in structuring fish β-diversity within the Neotropical region. Furthermore, there is a paucity of knowledge regarding the spatial distribution of β-diversity components (turnover and nestedness; Baselga, 2010) in different ecological gradients; the consistency of these patterns among different regions/sections within a river basin; and the effect of the overall area encompassed by a study (spatial extent; Wiens, 1989) on beta diversity patterns along a longitudinal gradient (upstream to downstream habitats).

Although several ecological studies consider the environment as a key driver of local community structure, freshwater ecologists have found evidence that space and spatially structured environments play an important role in structuring taxonomic and functional diversity of fish assemblages even in small spatial scales (Azevedo et al., 2007; Sharma et al., 2011; Nakagawa, 2014; Carvalho & Tejerina-Garro, 2015; Borges et al., 2020). While space reflects how species composition and traits vary among sites due to spatial distance and specific species dispersal constraints, the spatially structured environment expresses the variation in species composition or traits linked to dispersal limitations. This is because nearby sites are similar to each other due to structured environmental variation (Münkemüller et al., 2012; Soininen, 2016). In this context, procedures that allow us to access these components in order to model spatial structures representing possible patterns of dispersal among sampling sites (Blanchet et al., 2008, 2011), including spatial trends of fish assemblages (Bertolo et al., 2012; Carvalho & Tejerina-Garro, 2015; Massicotte et al., 2015; Cetra et al., 2017; Rodrigues-Filho et al., 2018), are important because they reflect processes based on species dispersal (Gilbert & Lechowicz, 2004; Diniz-Filho et al., 2012).

In this paper, we investigated how the riverine dendritic network constrains taxonomic and functional beta diversity patterns of fish assemblages in two ecological gradients: mainstem/headwater (hereafter lateral gradient) and upstream/downstream (hereafter longitudinal gradient). For the lateral gradient, we aimed to answer the following questions: i) which component (turnover or nestedness) explains taxonomic and functional beta diversity patterns along the mainstem/headwater gradient?; ii) is the main component explaining beta diversity a consistent pattern for different lateral sections of the river basin? Based on recent findings for the Neotropical region (Vitorino Jr. et al., 2016; Peláez et al., 2017; Peláez & Pavanelli, 2019), we expect to find turnover and nestedness components explaining taxonomic and functional beta diversity at the lateral gradient, respectively, in different sections of the river basin given that similar ecological processes are expected to structure fish assemblages towards headwaters independently of its localization. For the longitudinal gradient, we sought to answer the following questions: (i) which component (turnover or nestedness) explains taxonomic and functional beta diversity patterns along the upstream/downstream gradient?; (ii) how does spatial extent affect beta diversity patterns?; iii) how do spatial and environmental factors structure taxonomic and functional fish beta diversity? While recent studies agree that taxonomic turnover related to fish species dispersal explains beta diversity when both mainstem and tributaries are considered (Vitorino Jr. et al., 2016; Peláez et al., 2017; Zbinden & Matthews, 2017; Peláez & Pavanelli, 2019), the same is not observed for functional beta diversity and divergent patterns are found (Vitorino Jr. et al., 2016; Peláez & Pavanelli, 2019). Here, we assumed that the connection among mainstem sites and headwater streams along the longitudinal gradient will reduce the environmental signal on fish assemblages and favor species dispersal (regional process; Heino et al., 2015), increasing species turnover but decreasing functional dissimilarities among patches. At this intermediate spatial scale (longitudinal gradient), we expect that beta diversity patterns will be primarily structured by spatial components. We also expect that increasing the spatial extent of the longitudinal gradient will potentialize dispersal constraints and lead to increased beta diversity.

To answer these questions, we used samplings conducted at the Almas River basin (Tocantins River, Amazon) that exhibits an expressive altitudinal gradient, waterfalls, steep streams, and considerable environmental variability among streams (Oliveira & Bispo, 2001). These features may affect fish species and traits selection and dispersal in both lateral and longitudinal gradients; therefore, the study area is appropriate to investigate and answer our questions about fish metacommunities and beta diversity patterns in the riverine dendritic network.

Materials and methods

Study area and habitat description

The study was conducted in the Almas River basin, upper section of the Tocantins-Araguaia River basin, Central Brazil (Fig. 1). Its climate is Aw according to Köppen–Geiger classification (Cardoso et al., 2014), characterized by a well-defined dry (April to September) and rainy (December to February) seasons (Nimer, 1989). The headwaters of the Almas River basin are located at the Serra dos Pirineus with an altitudinal gradient varying between 450 m and 1200 m above sea level (Barbalho et al., 2018); its streams are usually steep, presenting rock, sand, and foliage substrates and are often associated with waterfalls (Oliveira & Bispo, 2001). The region is historically threatened by human actions with direct impacts on freshwater habitats (Tejerina-Garro, 2008; Tejerina-Garro et al., 2017).

Fig. 1
figure 1

Spatial distribution of mainstem river (MS) and headwater stream sites sampled in the Almas River, Upper Tocantins-Araguaia River basin in Goiás State (gray area), Central Brazil. Each basin section is composed of one mainstem river site and a set of headwater streams. Watercourses of each basin section are identified by a code and different symbols (MS1, triangles; MS2, circles; MS3, squares; MS4, pentagons). MS1 the most upstream section sampled, MS4 the most downstream section

Headwater streams sampled had an average channel width and depth of 5.35 m (min. 1.05 m, max. 16.54 m) and 0.30 m (min. 0.09 m, max. 0.59 m), respectively; mainstem river sites had an average channel width and depth of 108 m (min. 36 m, max. 173 m) and 1.67 m (min. 1.21 m, max. 2.64 m), respectively. Headwater streams display ponds, pools, and rapids with a substrate predominantly composed of sand, gravel and rocks or a mix of clay, leaves, and branches; the banks displayed three vertical vegetal layers (herbs, shrubs, trees), but it was sometimes absent in some tributaries. In the mainstem, the presence of pools and rapids with a substrate composed mainly of rocks was observed; the riverbank was visually distinguished by two vertical layers (shrubs and trees) with the absence of these at the fourth site.

Sampling design and fish species sampling

Fish species were sampled in four mainstem river sites distributed along the river channel and in 29 headwater streams (Fig. 1). For each mainstem site, we sampled a set of headwater streams located upstream to it, describing a lateral gradient along four distinct sections of the river (Fig. 1). Given the connection among all headwater streams through the mainstem, the set formed by all mainstem sites and headwater streams also described a longitudinal gradient along the river basin. Therefore, this sampling design allowed us to evaluate beta diversity patterns in both lateral and longitudinal gradients and to compare these patterns among different lateral sections of the river basin. In this case, each lateral section was represented by one mainstem river site and some headwater streams sampled upstream to it.

Watercourses were sampled once between April and September 2016, during the dry season when fish sampling is more efficient (Pease et al., 2012). Sampling sites were defined according to accessibility and in the case of the mainstem river sites at least 30 km of hydrological distance was preserved between them so as to avoid spatial autocorrelation. At mainstem sites, species were sampled along a 1000 m stretch using four sets of gillnets with different mesh sizes (10 m × 1.5 m × 12–70 mm) and placed in pools at 5:00 PM and retrieved at 7:00 AM. In headwater streams, species were sampled using the electrofishing method (Mazzoni et al., 2000), with four persons traversing a 50 m stretch three times for two hours, in a downstream to upstream direction. Despite the use of different sampling methods in mainstem sites and headwater streams, both techniques are known to return a reliable estimation of fish species composition (Tejerina-Garro & Mérona, 2000; Medeiros et al., 2010). Therefore, to avoid any bias related to abundance data, we only used presence-absence data.

All fishes were fixed in formalin (10%), placed in identified plastic bags and stored in barrels containing formaldehyde. In the laboratory of the Centro de Biologia Aquática (CBA, Pontifícia Universidade Católica de Goiás), fishes were identified using taxonomical keys (Santos et al., 2004; Rocha, 2012; Costa e Silva, 2015; Fernando R. de Carvalho, personal communication) and stored in containers containing alcohol 70%.

Environmental data

Concomitantly to fish sampling, we measured nine environmental variables in the mainstem and headwater streams: channel depth (m) and width (m), water velocity (cm s−1), water turbidity (NTU), dissolved oxygen (mg l−1), pH, water conductivity (µS cm−1), water temperature (°C), and altitude (m). These parameters were measured in 10 transversal transects along the mainstem river stretch (1000 m) and five transversal transects along headwater stream (50 m stretch). All transects were equidistant from each other. For analyses, we used the mean value of each environmental variable considering all transects sampled.

Functional traits

We collected data for seven ecological and life-story functional traits: body mass, trophic guild, parental care, foraging method, water column position, foraging locality, and migratory habit (see traits categories and functional data in the supplementary file, respectively, Online Resources S1 and S2). Body mass was calculated as the average body mass for all specimens found of a given species. All other traits were obtained by consulting specialized literature (scientific papers, books, and doctoral thesis) and the world database for fishes (FishBase; Froese & Pauly, 2019; to access literature consulted see the Online Resource S4). Functional traits collected are commonly used in studies of fish functional diversity (Logez et al., 2013; Stuart-Smith et al., 2013; Keck et al., 2014; Carvalho & Tejerina-Garro, 2015; Gravel et al., 2016), reflecting habitat alteration (Frimpong & Angermeier, 2010), abiotic and biotic interactions (Winemiller, 2005), and ecosystem processes (Holmlund & Hammer, 1999). Fish body mass or size are related to food acquisition, mobility, and nutrient budget (Villéger et al., 2017); trophic level is associated to bioaccumulation, food web stability, resilience and dynamics (see Holmlund & Hammer, 1999); parental care is a response to species interactions such as predation (Winemiller, 2005) or represents different reproductive modes (Winemiller, 1989); benthic species redistribute sediments/nutrients; and migratory species transport and distribute nutrients (Holmlund & Hammer, 1999). Therefore, chosen traits are relevant to describe functional patterns of assemblages and ecosystem processes.

Whenever we could not define a given trait (absence of data or species identified only at the morphospecies level), we extrapolated information found for the genus or family level. This kind of extrapolation is possible because recent studies showed that aspects of the ecological niche of fishes are conserved, and species from the same clade maintain similar traits and responses (Roa-Fuentes et al., 2015; Pease et al., 2018; Rodrigues-Filho et al., 2018; Carvalho et al., 2020). If the extrapolation was not possible, functional trait was considered as not available (NA).

Data analyses

To test whether taxonomic turnover and functional nestedness are the main patterns of beta diversity along the lateral gradient, we calculated the turnover (βSIM) and nestedness (βNES) values for each lateral section of the river basin. For the calculation of the taxonomic turnover (βTSIM) and nestedness (βTNES), we decomposed a taxonomic matrix (species vs. sites) according to each lateral section and computed fish composition dissimilarities among sites via Sorensen dissimilarity index (Baselga et al., 2018). For the functional turnover (βFSIM) and nestedness (βFNES) calculation, we used a functional matrix (species vs. traits) to obtain a functional dendrogram for each lateral section of the river basin and we computed fish trait dissimilarities among sites via Sorensen dissimilarity index (Baselga et al., 2018). The functional dendrogram was obtained converting the functional matrix into a distance matrix using the Gower distance (Pavoine et al., 2009). Then, the functional distance matrix was converted into a functional dendrogram using the unweighted pair group method with arithmetic averages (UPGMA) as the clustering method. Both protocols allowed us to access the components of taxonomic and functional beta diversity and compare their trends among different sections of the lateral gradient. We used the function beta.multi to calculate βTSIM and βTNES (Baselga 2012) and phylo.beta.multi to calculate βFSIM and βFNES, both available in the betapart package (Baselga 2012) of the R Software (R Core Team, 2019). In the case of the phylo.beta.multii function, we substituted the phylogenetic tree required for calculation by the functional dendrogram since both structures have similar properties (Kembel et al., 2010; Pavoine & Bonsall, 2010). To obtain the dendrogram we used vegan (Oksanen et al., 2019), ade4 (Dray & Dufour, 2007) and picante (Kembel et al., 2010) packages of the R Software.

The same set of procedures mentioned above was used to evaluate whether taxonomic turnover and functional nestedness are the main patterns explaining fish beta diversity along the longitudinal gradient. However, the taxonomic matrix included all watercourses sampled (mainstem sites and headwater streams) within the river basin, and the functional matrix included all species found and their traits in order to represent the variation of all species and traits along the longitudinal gradient.

To evaluate how the increase of the spatial extent influences on taxonomic and functional beta diversity patterns along the longitudinal gradient, we constructed four different scenarios. In the first one, we calculated values of taxonomic and functional beta diversity (including turnover and nestedness components) for the most upstream lateral section of the river basin (MS1, Fig. 1). In the second scenario, we added to the design the section MS2 (lateral section located downstream to MS1) and we recalculated taxonomic and functional beta diversity values. The third and fourth scenarios included the addition of sections MS3 and MS4 to the design, respectively, followed by the calculation of taxonomic and functional diversity values. Then, we compared the variation of beta diversity when the spatial extent was sequentially increased.

To disentangle environmental and spatial effects on taxonomic beta diversity and its components, we used the taxonomic matrix with all sites and Sorensen dissimilarity index to extract three distance matrices describing: the overall beta diversity (βTSOR), beta turnover (βTSIM) and beta nestedness (βTNES). Each matrix was submitted to a Principal Coordinate Analysis (PCoA) to retain the two first axes (eigenvectors) representing most of the covariability observed among data. Then, PCoA axes were tested against standardized values of environmental variables to find those correlated to beta diversity, and the significance of the squared correlation coefficient (R2) was tested with a randomized procedure (9,999 permutations) using the envfit analysis available in the R software. The environmental variables with significant values (P < 0.05) were retained and tested for multicollinearity with the variance inflation factor (VIF). If an environmental variable had a VIF value > 3, it was removed from the analysis (Zuur et al., 2010; Dorman et al., 2012). After that, PCoA axes were tested against spatial predictors to find those correlated to beta diversity. The correlation was tested through a redundancy analysis (RDA) and randomized procedures (9,999 permutations; Legendre & Legendre, 2012; Oksanen et al., 2019), and only significant spatial axes were retained for analyses (P < 0.05). To obtain the spatial predictors, we used the Asymmetric Eigenvectors Maps (AEM) considering flow direction to create a sites-by-edges matrix and represent possible patterns of dispersal among sampling sites (for more details see Blanchet et al., 2008). A sites-by-edges matrix and the spatial coordinates of watercourses were used to construct a connection diagram, where sites are linked according to asymmetric processes. We used the adespatial package for multivariate spatial analysis (Dray et al., 2019) available in the R software (R Core Team, 2019) to construct AEMs. Finally, the environmental and spatial predictors retained were used in a RDA and variation partitioning analysis against PCoA axes (Borcard et al., 1992; Peres-Neto & Legendre 2010) with rda and varpart functions available in the vegan package of the R software (R Core Team, 2019). The distance matrices describing beta diversity were obtained using the beta.pair function available in the betapart package of the R Software.

To disentangle environmental and spatial influence on functional beta diversity and its components, we used the taxonomic matrix with all sites and the functional matrix with all traits to extract distance matrices describing: the overall functional beta diversity (βFSOR), functional beta turnover (βFSIM), and functional beta nestedness (βFNES). After that, the same steps and procedures used for taxonomic beta diversity were performed, excepting for the use of the function phylo.beta.pair (betapart package of the R Software) to extract functional distance matrices. Additionally, we compared environmental variables values (log10) among basin sections (MS1 to MS4) using an ANOVA for unequal variances.

Results

We sampled 82 fish species belonging to six orders and 26 families (Table 1). In the mainstem, we found 25 fish species from three orders and 13 families, whereas in headwater streams we found 67 species from six orders and 21 families (Table 1). Characiformes (36) and Siluriformes (32) were the most speciose orders and Characidae (17), Loricariidae (16), and Cichlidae (7) were the most speciose families (Table 1).

Table 1 List of fish orders, families, and species collected in the Almas River basin, Central Brazil during the 2016 dry season. Species collected in the main river channel (MS, mainstem) and its tributaries (HS, headwater streams) are indicated

Taxonomic and functional beta turnover were the main patterns observed along lateral gradients of the river basin (Table 2a). These patterns were consistent for all four sections despite a functional nestedness increase (Table 2a), indicating the occurrence of species and functional trait replacement among fish assemblages along the mainstem/headwater gradient. Taxonomic and functional beta turnover were also the main patterns along the longitudinal gradient of the river basin (Table 2b), suggesting that species and functional trait replacement occur in the upstream/downstream gradient at this intermediate spatial scale. The increase in spatial extent led to an increase in turnover component along the longitudinal gradient for both taxonomic and functional diversity, despite the low increment when the last sections of the river basin (MS3 and MS4) were added (Table 2b).

Table 2 Results of β-diversity partitioning (βSOR) into turnover (βSIM) and nestedness (βNES) components of taxonomic (TDB) and functional (FBD) fish diversity

The ANOVA indicated that environmental variables values differed among basin sections (P < 0.05 in all cases; Online Resource S3). The evaluation of fish species distribution and environmental variables relationship via envifit analysis and permutation procedures for the taxonomic and functional beta fish diversity revealed, respectively, that the altitude, channel depth and width, water velocity, and water temperature were significantly correlated to βTSOR and βTSIM (P < 0.006 for all cases) and only conductivity to βTNES (P = 0.03), whereas the altitude, channel width, dissolved oxygen, water velocity, and water temperature were significantly correlated to βFSOR and βFSIM (P < 0.006 for all cases) and only conductivity to βFNES (P = 0.03). In all cases, the multicollinearity tests among environmental variables selected by envifit analysis indicated a VIF < 2 for all variables, and all of them were retained for RDA and variation partitioning models. AEM models generated 14 spatial predictors and, in all cases, RDA models indicated spatial predictors 1 and 12 as important for both taxonomic and functional beta fish diversity and its components (P < 0.05 for all cases). Therefore, both axes were used in RDA and variation partitioning models.

The RDA models showed that space and spatially structured environments affected taxonomic (βTSOR and βTSIM) and functional (βFSOR and βFSIM) beta diversity patterns (Table 3; Variation partitioning). Even combined, their contribution in structuring beta diversity patterns was low and most variation was explained by residuals (Table 3).

Table 3 Results of the RDA models testing the significance of environmental and spatial effects on β-diversity (βSOR), β-turnover (βSIM) and β-nestedness (βNES) of taxonomic (TDB) and functional (FBD) fish diversity

Discussion

Studies addressing the influence of the riverine dendritic network on metacommunities’ organization form a baseline for fish ecology and conservation (Altermatt, 2013), but their number in tropical regions remains low (Vitorino Jr. et al., 2016). Our findings revealed that taxonomic and functional turnover are the main components explaining beta diversity patterns of fish metacommunities along the lateral gradient (mainstem/headwater) as it appears to be related to species sorting by environmental filtering and species dispersal limitation in headwater habitats. Species sorting assumes that environmental differences among patches will drive the structure of local communities in the river network (Altermatt, 2012; Brown et al., 2016), a condition that can be observed among headwater streams (Tejerina-Garro et al., 2005; Súarez & Petrere Jr., 2006) and it is frequently associated with species and functional trait filtering in headwaters (Poff, 1997; Altermatt, 2013; Carvalho & Tejerina-Garro, 2015; Borges et al., 2020). Environmental influence was already reported as an important driver of species turnover and functional dissimilarities in fish assemblages of tributaries (Medina Torres & Higgins, 2016; Vitorino Jr. et al., 2016; Peláez et al., 2017; Zbinden & Matthews, 2017; Huang et al., 2019; Peláez & Pavanelli, 2019). Our results reinforce these findings, showing that taxonomic and functional turnover towards headwater habitats is a consistent trend for different lateral sections of a river basin. However, it is important to point out that the study region is characterized by the presence of waterfalls, steep slopes, and an expressive altitudinal gradient (Oliveira & Bispo, 2001), factors that usually constrain species dispersal. Although dispersal limitation is expected to generate a nestedness pattern (Gianuca et al., 2017; Peláez et al., 2017; Peláez & Pavanelli, 2019), if the environment leads to a unique fish assemblages formation because different filters act on headwater streams, then species dispersal limitation generated by natural barriers along the dendritic network may help to maintain species and traits replacement among streams (Finn et al., 2011; Carrara et al., 2012). In this case, both environmental filtering and species dispersal limitation would be responsible for generating taxonomic and functional turnover trends in the lateral gradient of the Almas River basin network.

The spatial congruence between taxonomic and functional beta diversity patterns considering the lateral gradient suggests that basin’s regions displaying high taxonomic turnover will present high functional turnover. Although the spatial congruence among different diversity facets was already observed in fish assemblage’s studies (Strecker et al., 2011; Pool et al., 2014), we consider our result carefully. We found a higher contribution of the nestedness pattern in structuring functional beta diversity than taxonomic beta diversity; other studies conducted in the Neotropical region have already found the turnover component associated with taxonomic diversity and nestedness to functional diversity in tributaries (Vitorino Jr. et al., 2016; Peláez & Pavanelli, 2019). Thus, if environmental filtering selects different species with similar fish functional traits in headwaters as observed by Carvalho & Tejerina-Garro (2015), the congruence between taxonomic and functional beta diversity may change from place to place according to the strength of filters acting on headwater habitats. As stated before, in the case of the study region the specific combination of environmental filtering and species dispersal limitation mediated by natural barriers seems to generate taxonomic and functional turnover among headwater streams.

We found that taxonomic and functional turnover are the main patterns explaining the variation in fish beta diversity along the longitudinal gradient, and both patterns gradually increased with increasing spatial extent. Increasing the extension of the overall area studied possibly implies in higher levels of connectivity and environmental heterogeneity between mainstem sites and headwater streams (Altermatt, 2013; Tonkin et al., 2018), favoring species dispersal through the river network and leading to a high species turnover along this gradient (Heino et al., 2015). Additionally, given that species may move between different habitats (mainstem and headwaters) with different local environmental conditions, it is possible that filters select species with different functional traits, explaining the functional turnover pattern. The results of the variation partitioning analyses seem to reinforce such perspective because the space and spatially structured environments were important drivers of taxonomic and functional beta diversity. In our models, space represents the spatial distance among assemblages considering the river flow, and its influence possibly indicates the occurrence of dispersal-based process in structuring fish assemblages, as already reported by Carvalho & Tejerina-Garro (2015) for fish dispersal between main channel sites and headwater streams. The spatially structured environment indicates that spatial distance is important since nearby sites are more similar to each other due to structured environmental conditions. This situation is responsible for driving composition and functional dissimilarities of fish assemblages between main channel and headwater habitats in Neotropical regions (Carvalho & Tejerina-Garro, 2015). Such results suggest that both niche- and dispersal-based processes are important in structuring taxonomic and functional beta fish diversity along the longitudinal gradient considering an intermediate spatial scale. However, it is important to notice that the observed contribution of space and spatially structured environments in explaining beta diversity patterns was low and most of the variation was related to unknown factors. One explanation is associated with the spatial scale dependency, because the strength of spatial components in structuring diversity patterns can be higher at broader spatial scales (Gilbert & Lechowicz, 2004; Diniz-Filho et al., 2012; Heino et al., 2015), including beta diversity patterns of fish assemblages (Leprieur et al., 2011). Another explanation is related to the number of environmental variables considered in this study, as they represent only a fraction of the variables that can structure fish assemblages in mainstem and headwater streams (Poff, 1997). Therefore, increasing the number of environmental variables may reveal stronger associations between beta diversity patterns and spatially structured environments at this spatial scale.

The degree of connectivity and dispersal among sites regulates how diversity varies among assemblages in riverine systems (Altermatt, 2013; Tonkin et al., 2018), and conservation strategies must go beyond traditional approaches that focus on local scales to incorporate the metacommunity perspective. The predominance of the turnover component in explaining taxonomic and functional diversity along lateral and longitudinal gradients, as we observed, has important implications for the conservation of Neotropical riverine systems. It indicates that (1) a successful conservation strategy should consider the protection of multiple and contiguous regions or sites to preserve the regional variation of diversity (Vitorino Jr. et al., 2016; Gianuca et al., 2017); (2) anthropogenic impacts that affect mainstem and headwater stream sites locally, such as river impoundments along the Tocantins River (Lima et al. 2016), may jeopardize the preservation of diversity in a regional scale; and (3) similar conservation strategies may be applied to preserve both taxonomic and functional beta diversity in a region. Therefore, our study not only shows how taxonomic and functional diversity are structured along mainstem/headwater (lateral) and upstream/downstream (longitudinal) gradients in Neotropical systems, but it also provides an initial baseline for future conservation approaches in these regions addressing the dendritic nature of riverine networks.