Introduction

Host-associated bacteria play key roles in development, reproduction, digestion, and protection against pathogens for their hosts [1]. In recent decades, culture-independent molecular techniques have rapidly expanded our knowledge of the diversity, ubiquity, and functional ability of these symbiotic communities. In addition, the integration of different molecular techniques and “omics” methods, such as metabolomics combined with 16S ribosomal RNA (rRNA) gene amplicon sequencing, is providing an opportunity to address important ecological questions, including insights into the potential link between community structure and function in complex microbial communities [2, 3]. For example, the use of 16S rRNA gene amplicon sequencing has provided important insights into the structure-function relationship in soil microbial communities, where functional redundancy might be present in important soil microbial processes [4], and in the gut microbiome of mammals, in which functional repertoires of microbiome genes can be predicted by the structure of the bacterial community [5].

One key function of host-associated microbes on animal hosts is host defense against pathogens, which has been observed across distantly related host taxa, including corals, shrimp, Hydra, insects, birds, humans, and amphibians [611]. For example, amphibians harbor diverse skin bacterial communities that appear to be host species-specific [1215]. Some of these skin bacteria can protect their amphibian hosts from the pathogenic fungus Batrachochytrium dendrobatidis (Bd) [1519] seemingly through the production of secondary metabolites that inhibit Bd growth [18, 20, 21]. As Bd has been associated with drastic global amphibian population declines [22] and infects over 500 amphibian species across the globe [23], interest has grown in understanding the factors that shape these microbial communities and their function.

In general, relatively little is known about how environmental factors influence the structure and function of host-associated microbial communities, although there is certainly appreciation more broadly for the role of context dependency in determining the outcome of symbiotic interactions [2426]. For example, for host-pathogen interactions, changes in temperature can alter transmission rates of pathogenic fungi from adult bark beetles to pine trees [27], enhance bleaching in corals [28, 29], and influence the morbidity of white-nose syndrome in bats [30]. Chytridiomycosis outbreaks in amphibians, caused by Bd infections, have varied in intensity across space and time, which suggests a context dependency in the outcome of interactions among the amphibian host, Bd, and the environment [31, 32]. In the Neotropics, amphibian diversity losses due to Bd have been substantial [33], but in general, Bd-induced population declines and local extinctions have been more dramatic at higher elevations relative to the lowlands [3437], potentially because of variation in environmental factors (e.g., temperature and rainfall) that alter disease outcomes.

Indeed, context-dependent outcomes of host-microbiome-pathogen interactions could play a critical role in wildlife diseases [32]. But while some effort has focused on understanding how amphibian-Bd interactions might change across elevations (e.g., [3842]), little work has addressed changes in the amphibian-microbiome interaction with elevation. In the present study, we aimed to determine how the diversity, structure, and potential function (represented by metabolite profiles) of skin bacterial communities on amphibians vary with elevation. Specifically, we sampled populations of the species Silverstoneia flotator—a species thought to be tolerant to Bd and with a broad distributional range at both highland and lowland sites. We hypothesized that we would observe distinct bacterial communities and metabolite profiles across elevations given that abiotic factors, such as precipitation, temperature ranges, and strength of seasonality, vary along elevational gradients. Importantly, these environmental factors could directly or indirectly influence the skin bacterial communities.

Material and Methods

Silverstoneia flotator (Family: Dendrobatidae, Dunn 1931) occurs from “5 to 1050 m” in Panamá [43]. Across this elevational range, vegetation changes from lowland wet/moist forest (<600 m) to premontane forest (600–1500 m), which is associated with changes in climatic factors such as temperature and precipitation [43]. S. flotator is a common terrestrial diurnal species occurring in leaf litter, including along streams. This species is broadly distributed across Panamá and may be tolerant of Bd infection considering it has not declined following Bd arrival at one highland site [33] and that there are populations persisting with Bd at other highland sites [36, 42].

Sample Collection

In 2013, we sampled 10–15 S. flotator at each of six sites where Bd is known to occur to assess their skin bacterial communities, skin metabolite profiles, and Bd infection status. Of the six sites, three were highland sites above 600 m, while the other three were lowland sites below 300 m (Table 1; Fig. 1). Among the study sites, chytridiomycosis has caused amphibian declines at two of the highland sites, El Cope and Cerro La Campana [34, 36], while there have been no declines at one of the lowland sites, Soberanía, despite the presence of Bd [36]. There are no published studies for the other three sites describing the impact of Bd arrival on the amphibian community, though it is known that Bd is present at these sites (R. Ibáñez and J. Voyles pers. comm.).

Table 1 Study sites and sample sizes taken per site. All six sites have Bd present, according to data in Lips et al. [34] and Woodhams et al. [36] and based on personal communication (R. Ibáñez and J. Voyles pers. comm.)
Fig. 1
figure 1

Map of Panamá showing the location of field sites throughout the country

During sampling, we handled each frog with a new pair of gloves and placed it in a sterile Whirl-Pak® bag (Nasco, Fort Atkinson, WI, USA) until being swabbed within 30 min. The swabbing protocol was conducted as in Belden et al. [14]; prior to swabbing, each frog was rinsed with 50 mL of sterile deionized water to remove any dirt and transient bacteria [12, 14, 44]. Then, each frog was swabbed twice: the first swab was used to assess the skin bacterial community and Bd infection status, and the second swab was used to assess the metabolite profile. The first swab was a sterile rayon swab (MW113, Medical Wire Equipment), and the second swab was a pre-treated polyurethane swab (14-960-3J, Fisher Scientific). The polyurethane swabs were pre-treated to remove methanol-soluble impurities by stirring them in a methanol wash and letting them be air-dried in a fume hood [45]. Each swab collection consisted of 20 strokes on the ventral surface and 5 strokes in a single direction on each thigh and hind foot for a total of 40 strokes per swab. The swabs were individually placed in 1.5-mL centrifuge tubes and stored in a cooler either with dry ice or with ice packs (samples from Soberanía, Cerro Azul, and Sierra Llorona) or in liquid nitrogen (Cope, LowCope, and Campana) during fieldwork. Temperature variation in short-term sample storage does not influence the assessment of bacterial community composition [46]. In the laboratory, swabs were placed at −80 °C until processing. Frogs were returned to the site of capture after swabbing.

Data from 60 frogs (N = 5–12/site) was used for the comparative analyses of the skin bacterial communities (Table 1). We expected to find a low incidence of Bd infection on S. flotator since it persists in sites with Bd and because we sampled during the beginning of the rainy season, which could be a time of low seasonal prevalence of infection in the Neotropics (e.g., data from Costa Rica [47]). Of the 60 frogs we swabbed, we preliminarily selected 40 individuals from four sites (two highlands: Cope High and Cerro Azul; and two lowlands: LowCope and Soberanía) to assess Bd infection status. For the metabolite profiles, we included a total of 72 individuals from five sites (N = 12–15/site, with no metabolite swabs from Sierra Llorona; Table 1). Out of these 72 individuals, 55 overlapped with the set of 60 used for the bacterial community analyses.

Sample and Data Processing

Skin Bacterial Communities

DNA was extracted from the first swab using the DNeasy Blood and Tissue Kit (Qiagen, Valencia, CA, USA) following the manufacturer’s protocol and with an initial lysozyme incubation at 37 °C for 1 h. A final volume of 100 μL of DNA was obtained, which was used as the template DNA for the Bd infection analyses as well.

Skin bacterial communities were assessed by amplifying and sequencing the V4 region of the 16S rRNA gene with the primers 515F and 806R [48]. The barcoded reverse primer contained a 12-base error-correcting Golay code to tag PCR products, which allowed for multiplexing. PCR reactions (25 μL) were prepared with 12 μL of molecular-grade PCR water, 10 μL of 5 Prime Hot Master Mix, 0.5 μL of each primer (10 μM concentration), and 2.0 μL of template DNA. PCRs were run in triplicate with a control that did not contain template DNA. PCR reactions were conducted with an initial cycle of 3 min at 94 °C, followed by 35 cycles of 45 s at 94 °C, 60 s at 50 °C, and 90 s at 72 °C, with a final extension of 10 min at 72 °C. PCR products from triplicate reactions were pooled and visualized on a 1% agarose gel and quantified using a Qubit 2.0 fluorometer (Invitrogen, Carlsbad, California). PCR products of each sample (200 ng/sample; N = 60) were pooled to make a composite sample and cleaned with the QIAquick PCR Purification Kit (Qiagen, Valencia, CA). The final pooled sample was sent for sequencing on an Illumina MiSeq instrument with a 250-bp paired-end strategy at the Dana-Farber Cancer Institute of Harvard University following Caporaso et al. [48].

Raw sequences from the Illumina 16S rRNA gene amplicon sequencing were assembled with Fastq-Join [49]. Assembled sequences were processed and quality-filtered using the default parameters of the Quantitative Insights Into Microbial Ecology (QIIME) pipeline [50], with the exception that we allowed for no errors in the barcodes, increased the number of minimum consecutive low-quality base calls allowed before truncating a read (r) to 10, and decreased the fraction of the minimum number of consecutive high-quality base calls to include a read (p) to 0.5. Sequences were clustered into operational taxonomic units (OTUs, ~bacterial species) based on a 97% similarity threshold using the UCLUST method [51], and OTUs were represented by the most abundant sequence. The representative sequences were aligned to the Greengenes 13_5 reference database [52] using PyNAST [53] and assigned taxonomy using the RDP classifier [54]. We removed OTUs with fewer than 0.001% of the total number of sequences [55]. The sequencing depth per sample ranged from 6132 to 96,126, so we rarefied the dataset at a depth of 6000 reads/sample. The final dataset consisted of 3497 OTUs across the 60 samples, with 193–1079 OTUs (mean = 491 ± 186) per frog.

Skin Metabolite Profiles

To assess the metabolite profiles, we isolated and characterized small molecules from the swabs using HPLC-UV/Vis detection [45]. This method is useful for identifying metabolite patterns across environmental gradients, even though we cannot identify individual compounds. Given the nature of the method, highly polar compounds, such as peptides and proteins that might be produced by the amphibian host, are not detected; thus, the compounds detected represented small molecules hypothesized to be bacterial secondary metabolites [45]. For the characterization of the metabolite profiles, swabs were sent frozen to Villanova University and processed as detailed in Belden et al. [14].

Compounds eluted from samples were characterized by retention times and UV-Vis chromophore. Retention times of all detected compounds (peaks) were normalized to that of a naphthalene internal standard (20.69 min). The retention time of each chromatographic feature was determined manually using Applied Biosystems Analyst software V.1.5.1. The generated dataset was then revised to account for slight variations in retention time across multiple samples, with a focus on major chemical components. Compounds present in multiple samples that displayed both similar retention times and identical spectroscopic features were assigned as a single compound, and unique compounds only detected in a single sample were considered noise and therefore disregarded. Lastly, chromatographic features with less than 3000 mAU × min were considered minor components and disregarded.

Bd Detection and Quantification

The 40 samples assessed for Bd were analyzed with a TaqMan real-time PCR (qPCR) assay developed by Boyle et al. [56]. We amplified ITS-1-5.8S of the Bd genome using primers ITS1–3 Chytr and 5.8S Chytr and the probe MGB2. DNA standards were prepared by making serial dilutions for 1000–0.1-zoospore genomic equivalents of the strain JEL 310, a strain isolated from Smilisca phaeota from Fortuna, Panamá [57]. Given that the copy number of the region ITS-1-5.8S of the strain used for the standards is unknown, a low value equal to one copy number could not be estimated, as described by Rebollar et al. [37]. Thus, a sample was considered infected when the values estimated by the qPCR assay were above 0.1-zoospore genomic equivalents. The samples were run in duplicate and considered positive when amplification was observed in both replicates. The infection intensity (i.e., number of zoospore equivalents) of a sample represents the average of both replicates.

Data Analysis and Statistical Methods

Overview

We assessed whether there were differences in skin bacterial community structure and metabolite profiles between lowland and highland populations of S. flotator, as well as structure-function relationships. As there was very little Bd infection detected, we were not able to assess variation based on Bd infection intensity or prevalence. We also described the core microbiome to provide information about the bacterial taxa associated with a neotropical species that has survived chytridiomycosis epidemics and persists at sites with endemic Bd. Unless noted, all analyses were conducted in R version 3.2.2 [58].

Alpha and Beta Diversity Analyses

Alpha diversity comparisons of skin bacterial communities between elevations and across sites were conducted for richness (OTUs/individual), phylogenetic diversity, and the Shannon index (H′, which assessed community evenness). These metrics were computed for each frog with QIIME. We compared alpha diversity estimates between elevations by fitting the metrics to generalized linear mixed models (GLMMs), in which the variable “Site” was included in the models as a random effect to account for the nestedness of individual frogs within each site. Among-site comparisons were performed by fitting the metrics to generalized linear models (GLMs). For richness estimates, we used a negative binomial error distribution with the log link function to account for overdispersion; for elevation comparisons, we used the function glmer.nb from the package lmer4 [59], and for among-site comparisons, we used the function glm.nb from the package MASS [60]. For Shannon and phylogenetic diversity estimates, we used a Gamma error distribution with the inverse link function to account for heteroskedasticity; for elevation and among-site comparisons, we used the functions glmer and glm from the package lmer4 [59], respectively. Multiple comparisons were conducted with Tukey tests using the function glht of the package multcomp [61], which includes multiple comparisons for generalized linear models. Moreover, we also compared metabolite richness (metabolites/frog) between elevations and among sites by fitting the metric to a linear mixed model (function lmer) and a linear model (function lm), respectively (packages lmer4 and stats). Visual assessments of residual plots with model predictions corroborated that these approaches were appropriate.

We performed GLMs to assess the effect of longitude (converted to UTM) on the alpha diversity estimates. GLMs were performed as described above, with a negative binomial error distribution for richness estimates and a Gamma error distribution for Shannon and phylogenetic diversity. Visual assessments of residual plots with model predictions corroborated that these approaches were appropriate.

To examine whether elevation and site explained variation in the structure of the bacterial communities and metabolite profiles (beta diversity), we performed permutational multivariate analyses of variance, PERMANOVA [62], based on a Bray-Curtis dissimilarity matrix for the OTUs and on a Jaccard dissimilarity matrix for the metabolites. Jaccard dissimilarities, which only take into account presence-absence, were used for the metabolite data because the HPLC-UV/Vis output does not allow for the estimation of relative abundance. Results were visualized using non-metric multi-dimensional scaling (NMDS). The distance matrices were calculated with the function vegdist, and PERMANOVAS were performed using the function adonis in the vegan package [63].

Examining Links Between Bacterial Community Structure and Metabolite Profiles

To assess potential relationships between bacterial community structure and metabolite profiles, we conducted a Mantel test. The Mantel test requires that the matrices being tested have the same samples, so we removed the 12 frogs from the metabolite dataset that were not represented in the OTU dataset. This resulted in the same 55 samples in both data matrices. We conducted the Mantel test in two ways: separately by individual sites, and then with all the sites together. Mantel tests were performed with the function mantel in the vegan package [63].

Incidence of Bd Infections

Bd was only detected in one of the highland sites (Cope), and in only three frogs, so no comparisons regarding Bd across sites or elevation could be conducted. Bd prevalence and infection intensity at Cope (zoospore equivalents) were estimated using the Wilson interval and a bootstrap approach (BCa; 10,000 permutations), respectively, using R [37]. As only three of the 40 frogs analyzed were Bd-positive, we did not quantify Bd in the remaining 20 frogs from the other two sites.

Core Microbiome

The core microbiome is defined as “organisms common across microbiomes” [64] and may be fundamental to community function [64]. The core microbiome for S. flotator was determined using the compute_core_microbiome script in QIIME and was defined as OTUs present on ≥90% of all the frogs. The relative abundances of the core OTUs, across frogs, sites, and elevations were visualized via a heatmap, using the function heatmap.2 in the package gplots [65]. We examined whether the relative abundance of each core OTU significantly differed based on elevation and site with a Kruskal-Wallis test. We calculated the corrected p values for the multiple comparisons based on the Bonferroni procedure using the group_significance script in QIIME.

Results

Bacterial Community: Diversity and Structure

None of the three metrics of alpha diversity of bacterial communities differed between high and low elevations (richness: χ 2 = 0.06, p = 0.81; Shannon: χ 2 = 0.01, p = 0.92; phylogenetic diversity: χ 2 = 0.24, p = 0.62, Table S1a). However, we observed significant differences among sites for all the metrics (richness: deviance = 60.62, p < 0.001; Shannon: F = 10.36, p < 0.001; phylogenetic diversity: F = 5.2, p < 0.001). Alpha diversity pairwise comparisons among sites showed a potential west to east trend, especially for richness and phylogenetic diversity estimates, where the sites west of the Panamá Canal had significantly higher diversity estimates than those on the east side (Fig. 2; Table S1b). The generalized linear models used to assess this pattern suggested a significant decline towards the east in the three alpha diversity metrics (richness: log-scale slope = −3.88E−06, SE = 7.27E−07, p = <0.001; Shannon: inverse-log scale slope = 5.55E−07, SE = 1.07E−07, p = <0.001; phylogenetic diversity: inverse transformed slope = 7.66E−08, SE = 1.67E−08, p = <0.001; Table S2, Fig. S1).

Fig. 2
figure 2

Alpha diversity of bacterial OTUs by site (richness, phylogenetic diversity, Shannon index)

Bacterial community structure (beta-diversity) differed between elevations and among sites when taking into account all the sites (Fig. 3a, b. NMDS stress 0.16; by elevation: adonis pseudo-F = 5.83, p < 0.001, R 2 = 0.09; by site: adonis pseudo-F = 5.13, p < 0.001, R 2 = 0.32). However, the differences in community structure and the variation explained by the factors “elevation” and “site” were likely driven by the distinct communities at LowCope, as shown on the NMDS. When LowCope was removed from the analysis, there was not a significant difference based on elevation or site for the remaining sites (by elevation: adonis pseudo-F = 1.03, p = 0.34, R 2 = 0.021; by site: adonis pseudo-F = 1.53, p = 0.12, R 2 = 0.12).

Fig. 3
figure 3

Beta diversity comparisons of bacterial communities using non-metric multi-dimensional scaling (NMDS) ordinations based on Bray-Curtis dissimilarity distances between elevation categories (a) and among-study sites (b). Each point represents a single frog, and point shapes: triangles = high elevation sites; circles = low elevation sites. Axis labels (MDS) represent the multi-dimensional scaling

Metabolite Profiles: Diversity and Structure

A total of 84 unique metabolites were identified (range 25–38/frog; mean ± SD 33.38 ± 2.52). Metabolite richness differed significantly between elevations, although the means were very similar (χ 2 = 5.73, p = 0.017; mean ± SD: high 33 ± 2.72; low 34 ± 1.97). There was no difference in metabolite richness among sites (F = 1.48, p = 0.217; mean ± SD: Campana 33 ± 2.47; Cerro Azul 33 ± 3.19; Cope 33 ± 2.73; CopeLow 34 ± 1.90; Soberanía 34 ± 2.11). Metabolite profiles differed between elevations and across sites (Fig. 4a, b; NMDS stress 0.14; by elevation: adonis pseudo-F = 10.37, p < 0.001, R 2 = 0.13; by site: adonis pseudo-F = 15.53, p < 0.001, R 2 = 0.48); however, site explained more of the observed variation (PERMANOVA: site R 2 = 0.48; elevation R 2 = 0.13). As one site (i.e., Soberanía) appeared to potentially drive this difference based on the NMDS ordination (Fig. 4b), we conducted a further analysis excluding the site “Soberanía.” However, there was still significant variation in metabolite profiles among sites after excluding Soberanía (adonis pseudo-F = 4.42, p < 0.001, R 2 = 0.20, Table S3). All pairwise comparisons of metabolite profiles among sites were significantly different, except for LowCope-Campana (Table S3).

Fig. 4
figure 4

Beta diversity comparisons of metabolite profiles using non-metric multi-dimensional scaling (NMDS) ordinations based on Jaccard dissimilarity distances between elevation categories (a) and among-study sites (b). Each point represents a single frog, and point shapes: triangles = high elevation sites; circles = low elevation sites. Axis labels (MDS) represent the multi-dimensional scaling

Linking Bacterial Community Structure and Metabolite Profiles

Based on Mantel tests, we found no correlation between the structure of the bacterial communities at the sites and their respective metabolite profiles (Campana: Mantel r statistic = −0.12, p = 0.65; Cerro Azul 0.04, p = 0.34; Cope 0.20, p = 0.16; LowCope 0.03, p = 0.36; Soberanía 0.11, p = 0.31; all sites together 0.06, p = 0.16).

Bd Occurrence

Prevalence of infection by Bd at Cope was 30% (3/10 frogs; CI 95% 11–60%), and the mean infection load per frog was 250 (CI 95% 98–347) zoospore genomic equivalents. No Bd was detected at the other three sites we tested.

Core Microbiome

Despite a total of 3497 OTUs identified on S. flotator, only 25 OTUs were in the 90% core microbiome (from nine families in three phyla: Actinobacteria, Firmicutes, and Proteobacteria; Table S4). In addition, the most abundant core OTUs (relative abundance ≥1%) were in the families Cellulomanadaceae (mean relative abundance of family 15%), Comamonadaceae (1%), Enterobacteriaceae (1%), Pseudomonadaceae (4%), and Xanthomonadaceae (1%). There was no significant difference in the relative abundance of any core OTUs between elevations (Fig. 5), except for one Comamonadaceae (ID number 4456068) that had higher mean relative abundance (χ 2 = 12.62, p = 0.010) at high elevation (0.015 vs. 0.008%). However, there was significant variation across sites for ten core OTUs (Fig. 5). This variation mainly reflects the difference at LowCope; six of the ten core OTUs occurred at a lower relative abundance there, and two Enterobacteriaceae (ID numbers 2119418 and 814442) and one Pseudomonadaceae (269930) occurred at a higher relative abundance (Enterobacteriaceae ID 2119418: χ 2 = 21.68, p = 0.02; Enterobacteriaceae ID 814442: χ 2 = 21.52, p = 0.02; Pseudomonadaceae ID 269930: χ 2 = 23.19, p = 0.008).

Fig. 5
figure 5

Heatmap of the relative abundances of the OTUs considered members of the core microbiome across samples and sites. Each row in the heatmap represents a single frog sampled. The colors next to rows are associated with a specific site. Columns represent each core OTU. OTUs with an asterisk (*) represent OTUs with significantly different relative abundances (p < 0.05) across sites. Red asterisks represent OTUs with a significant higher relative abundance at the LowCope site (color figure online)

Discussion

In our study, we used replication of highland and lowland sites to try to understand the potential role of environmental variation in the structure and function of skin bacterial communities. However, we did not see key differences in bacterial communities on S. flotator between high and low elevations, either in terms of alpha diversity metrics or in terms of bacterial community structure. Skin metabolite profiles, which we used as an estimate of microbial community function, did differ between elevations. This suggests that environmental conditions at high and low elevation sites might not contribute to the establishment of completely different bacterial communities, but they could result in a change in function of the communities. While we cannot, with our current method, identify the specific metabolites that differed across elevations or among sites, this is a promising area of future research. In addition, the absence of an elevational pattern in the diversity of these amphibian-associated bacterial communities seems to be somewhat consistent with observations of free-living soil bacterial communities, where no consistent elevational patterns have been observed. For example, one study showed a negative relationship between elevation and diversity within the phyla Acidobacteria in the western USA [66], another one found a peak in OTU richness at mid-elevation at Mount Fuji in Japan [67], and lastly, a study conducted in the Andean region showed no elevational trend in the bacterial communities from organic and mineral soils [68]. Additionally, although an understanding of the variation in the function of animal-associated bacterial communities across elevations is scarce, in free-living soil microbial communities, changes in environmental factors across elevations were associated with changes in community function, therefore influencing microbe-mediated nitrogen dynamics [69].

While the structure of bacterial communities on S. flotator was also relatively consistent among sites, with the exception of LowCope, there was variation across sites in metabolite profiles. In addition, the bacterial communities and metabolite profiles were not correlated either within elevations or across sites. Taken together, these results suggest that similar communities may produce different combinations of secondary metabolites at different sites, which could infer a potential functional plasticity in these bacterial communities. This could be mediated by differences in environmental conditions among sites. For instance, Daskin et al. [70] determined that specific bacterial isolates cultivated at a range of temperatures ecologically relevant to the amphibian-Bd interaction produce different quantities of the same metabolite and/or different types of metabolites. Moreover, Woodhams et al. [71] found variation in antifungal activity of metabolites against Bd from a bacterial isolate cultivated across a range of temperatures. Temperature is one of the main factors influencing bacterial cell growth and metabolic activity [72] and can influence the production of antibiotic compounds in bacteria [73, 74], potentially because of variation in temperature thresholds for the expression of genes involved in metabolite production [70, 75].

Understanding the link between biodiversity and ecosystem function can be challenging. Distinct approaches—studies across gradients and diversity manipulation—often give inconsistent results, including bacterial systems [76]. Nevertheless, it seems likely that the link between bacterial community structure and function across ecological systems may be influenced by environmental conditions, including both abiotic and biotic factors. For example, the diversity of free living soil ammonia- and nitrite-oxidizing bacteria changes across gradients of inorganic nitrogen availability, which influences the nitrification process [7678]. Also, pathogen protection of corals by coral-associated bacteria is influenced by temperature [28]. In our system, it is possible that variation in environmental factors at different elevations, such as temperature, has more of an effect on bacterial community function (metabolite profiles) than on the structure of the communitites. Biotic factors that can impact host-associated microbial communities, in particular, include potential host pathogens. We could not examine the link between current pathogen infection with Bd and skin bacterial community structure or function in the present study due to the low incidence of Bd in our samples. However, prior experimental studies in other amphibian host species suggest that the bacterial community on the skin can potentially alter the disease outcome of Bd exposure and that Bd exposure can drive changes in the bacterial community structure [14, 57, 7981]. Thus, potential context dependency driven by biotic factors, such as pathogen presence, might add another layer of complexity in understanding environmental context-dependent outcomes between microbes and their host and the mechanisms driving community function in these systems.

While we could not examine the effect of current Bd infection on the microbiome in our study, we did observe a longitudinal trend in alpha diversity of the skin bacterial communities across our sites that is consistent with the west to east spread of Bd in Panamá [36, 37, 82, 83]. Richness and phylogenetic diversity, in particular, decreased from the western sites to the eastern sites. Two prior studies have examined changes in the skin bacterial communities across host populations with different Bd histories in Panamá. Rebollar et al. [84] found that the terrestrial species Craugastor fitzingeri had lower skin bacterial community diversity in populations where Bd occurs at an endemic infection stage compared to Bd-naïve populations and higher relative abundance of some OTUs from the genera Cellulomonas, Sanguibacter, and Pseudomonas in the populations where Bd is endemic. However, in a separate study, across a gradient of Bd endemic sites, no clear west-east pattern was identified in the skin bacterial communities and metabolite profiles of two pond-breeding frogs, Agalychnis callidryas and Dendropsophus ebraccatus [14]. It may be that there are host species-specific patterns in the response of the skin microbiota to the presence of Bd in the environment. Species-specific responses of skin bacterial communities to Bd might add complexity to the studies addressing the ecological processes shaping the composition, structure, and function of these communities. This could partially explain the variable results regarding skin bacterial communities across Bd exposure experiments and across field studies working on distinct species [14, 57, 7981].

We found that a very small fraction (0.7%) of the OTUs found on S. flotator can be considered as members of the core microbiome. But overall, the community was similar to what has been seen previously in Panamanian amphibians [14]. The most abundant OTUs identified in the S. flotator core belong to the genera Cellulomonas and Pseduomonas, which have also been found in high relative abundance on C. fitzingeri occurring at sites in Panamá where Bd is endemic [84]. Moreover, the families Comamonadaceae and Pseudomonadaceae, both abundant in the core microbiome of S. flotator, include many anti-Bd isolates from non-Bd-susceptible Panamanian amphibian species [15], and one OTU from the family Comamonadaceae was associated with individuals of the endangered species Atelopus zeteki that cleared experimental Bd infections [57]. Two core OTUs from S. flotator were in the family Enterobacteriaceae and were significantly more abundant in the Cope lowlands (LowCope), the only site with distinct bacterial communities relative to other sites. Interestingly, unlike the other study sites, the LowCope site was located in the proximity of a village. Importantly, there is evidence that amphibians and reptiles living on aquatic environments exposed to human domestic and industrial waste can harbor Enterobacteriaceae with high resistance against antibiotics and heavy metals, including the genus Citrobacter [85], which was identified in the present study.

Overall, we provide evidence that host-associated bacterial communities can be dynamic and that it is likely that their performance on the host depends on environmental conditions. In addition, we identified possible functional plasticity of amphibian skin bacteria along a gradient in the tropics where Bd epidemics have varied in intensity, though it would be premature to conclude that the observed variation in metabolite profiles, which we used to assess potential function, represents variation in function against Bd specifically. Considering the minimal variation in community structure of these bacterial communities across sites, we suggest that further characterization of the functions of these communities could be a promising area of research to elucidate how diversity influences function across environmental gradients. Lastly, we suggest that probiotic-based amphibian conservation efforts should consider the context-dependent function of probiotic candidates within the range of environmental conditions associated with sites of future reintroductions.