Introduction

Anthropogenic release of antibiotic resistance genes (ARGs) into environmental reservoirs has raised global public health concerns [1, 2]. The importance of wastewater treatment plants (WWTP) both as a barrier for resistant bacteria and as a potential hotspot for dissemination has been highlighted, although the evaluation of the risks for human health remains unresolved [3, 4]. The increasing environmental occurrence of clinically relevant ARGs and evidence for horizontal dissemination of resistance between environmental bacteria and human pathogens demonstrate the importance of environmental resistomes (collections of resistance genes in a metagenome) [1, 5,6,7]. Communal WWTPs receive diverse anthropogenic antimicrobial and microbiological contaminants including antibiotics [8], biocides [9], metals [10], and human pathogens [11]. Metagenomic or qPCR analysis of genomic or plasmid DNA highlight the (co-)occurrence and prevalence of diverse ARGs and metal resistance genes (MRGs) in WWTPs [12,13,14,15,16,17], which are implicated as point sources for their release into the environment [16, 18]. Moreover, several PCR-based and cultivation-based studies have detected vancomycin-resistant enterococci, methicillin-resistant staphylococci, and cefazolin-resistant Enterobacteriaceae in wastewater biofilm, as well as clinically relevant ARGs (e.g., CTX-M, ampC, qnr, and NDM-1) in the final effluent [6, 19, 20]. However, the mechanisms which allow resistance genes to traverse WWTPs and how they are influenced by secondary treatment remain open questions (Fig. 1).

Fig. 1
figure 1

Key hypotheses about processes affecting the resistome (resistance gene content of the microbial metagenome) during passage of a WWTP. The WWTP consists of compartments with contrasting environmental conditions (a) including changing concentrations of antibiotics, metals, and other stressors (b) that may act as drivers on microbial community assembly and resistomes. By design (activated sludge process), and as an effect of the changing habitat conditions, we expect changes in biomass per volume (piechart area) but also persistence or even enrichment of ARG-carrying bacteria (red wedge) (c). Likewise, we expect a strong shift in the composition of the microbial community as a whole (d), and the antibiotic-resistant subset (colored, ARB). These changes are expected to correlate to changes of the resistome (e), which are here shown as metagenomic contigs (bars colored by bacterium of origin) carrying different ARGs (colored arrows). ARB and ARGs discharged with the effluent may have different origins: Some may have passed through the entire WWTP if the bacteria survive treatment (here, e.g., the red bacterium), others may originate from populations of bacteria that grow in the WWTP (blue and brown bacteria). If the environmental conditions in the WWTP favor populations that carry ARGs, these ARGs may become enriched in the bacterial community of the effluent. Studying ARG transcription and changes of transcription across stages (indicated by different shades of the red bacterium (d)) may provide clues if genes that are enriched are also active. A contig-centered analysis further allows identification of marker genes for mobile genetic elements (blue squares) occurring on the same contig as an ARG. Horizontal gene transfer may act on evolutionary timescales (f), thus that, e.g., resistance plasmids arriving with human pathogens or commensals in the inflow could eventually become established also in WWTP bacteria. If horizontal transfer of ARGs would happen with such high frequency that it amounts to a mass flow on timescales relevant to the flow of biomass, shifts in the population size of the original host bacteria may no longer correlate with ARG abundance, and the resistome structure could shift independently of the phylogenetic community structure (color figure online)

Environmental contaminants including metals and biocides represent widespread and recalcitrant stressors in the WWTP environment that might exert selective pressure that potentially contribute to the persistance and enrichment of antibiotic resistance determinants through selection or co-selection [21,22,23,24]. Although co-selection is well demonstrated at the levels of species and population [23], whether the sub-inhibitory wastewater antibacterial residues may lead to trackable community resistance selection remains unclear. So far, no data is available on the extent to which resistome genes are expressed in WWTPs. Studying resistance gene expression could give important hints, which, if any, of these functions are active, and whether the activity changes across compartments or in response to environmental stressors. Importantly, determining the extent to which resistance determinants (i.e., bacteria, genes and transcripts) are selected for and horizontal gene transfer is facilitated by environmental conditions within WWTPs would inform policy decisions in risk assessment and resistance surveillance for preventing dissemination of antibacterial resistance to the environment.

In this study, we used meta-omics approaches benchmarked with mRNA internal standards and qPCR analysis to build quantitative inventories of resistome genes, specifically ARG, biocide resistance genes (BRG), and metal resistance genes (MRG) in 12 communal WWTPs, providing a highly resolved view of the flow of resistance genes and their transcription in this system (Fig. 1). In the context of this manuscript, a resistome is thus understood as the collection of these resistance genes in the metagenome of a sample. By comparing the abundance and transcription levels of resistance genes across treatment compartments, we determined the factors that best predict the composition and transcription of the resistome among a wide range of biotic and abiotic (i.e., physicochemical and operational) variables. Through gene assembly and co-localization analysis, we obtained reliable ARG identification and additional information on co-located genes to predict ARGs mobility incidence (M%) and phylogenetic distribution. The results we obtained reveal how the conventional treatment process strongly influences resistance genes and their transcriptional activities within wastewater treatment stages. Our insights provide useful guidance to the risk assessment and control strategy of WWTP discharge of resistance determinants.

Materials and methods

A full version of the Materials and methods are available in the Supplementary Information (SI).

Biomass and liquid collection

For DNA and mRNA analysis, biomass was collected from post-primary clarifier influent, denitrifying and nitrifying bioreactors, and secondary clarifier effluent of 12 Swiss WWTPs between March and April 2016 (Table 1), as described in the SI. Filtered liquid samples were collected for in-lab chemical analysis (Supplementary Fig. S2).

Table 1 Treatment capacity, wastewater characteristics and operational parameters of the 12 Swiss wastewater treatment plants sampled

mRNA internal standards

mRNA internal standards were spiked immediately after cell lysis in known copy numbers to determine volume-based or biomass-based absolute copy numbers for transcript type (i.e., copies/L or copies/g of biomass measured as volatile suspended solids). This approach circumvents the limitations of non-spiked metatranscriptomic datasets, which only provide relative abundance information [25,26,27]. Two mRNA standards without poly(A) tails (to mimic prokaryotic and organelle mRNAs), BMS5 and BMS6, were synthesized by plasmid linearization and in vitro transcription based on a method modified from [26], as described in the SI.

RNA processing for metatranscriptomes

Total RNAs were extracted from tube pellets and filters using the RNeasy Mini Kit (Qiagen, Germany) after cell lysis in a FastPrep instrument (MP Biomedicals) for 40 s (at the speed of 6.0 m/s) and the spiking of mRNA internal standards into the cell lysate, as described in SI. Then, the residual DNA were digested by two successive treatments with the TURBO DNA-free Kit Kit (Invitrogen, Carlsbad, CA) and mRNA was enriched from the digested total RNA samples using illumina Ribo-zero rRNA Removal Kit. cDNA libraries were generated using the rRNA-depleted RNA by NEBNext® Ultra RNA Library Prep Kit (NEB, USA) following the manufacturer’s instructions.

DNA processing for metagenomes

Genomic DNA was extracted using the FastDNA® SPIN Kit for Soil (MP Biomedicals, France), following the manufacturer’s instructions. The DNA extracts were then split and used for construction of metagenomic libraries, 16S rRNA gene amplification, and quantitative polymerase chain reaction (qPCR), as described below. Metagenomic libraries were generated from 1 μg DNA per sample using NEBNext® Ultra™ DNA Library Prep Kit for Illumina (NEB, USA), following manufacturer’s recommendations.

16S rRNA gene amplification and qPCR

The V3-V4 hypervariable regions of bacterial 16S rRNA genes were amplified using genomic DNA and the forward primer 338F and reverse primer 802R [28]. Bacterial 16S rRNA gene, class 1 integron-integrase gene (intI1), and sulfonamide resistance gene sul1 were quantified with qPCR using LightCycler® 480 Probes Master (Roche, Basel, Switzerland) and Roche LightCycler® 480 II. Details on the primer sets and PCR conditions used were available in the SI.

Sequencing

The constructed DNA and cDNA libraries were sequenced on the Illumina’s Hiseq4000 platform using a paired-end (2 × 150) sequencing strategy at the NOVOGENE (Beijing). The 16S rRNA gene amplicons were sequenced on the Illumina’s Miseq platform using a paired-end (2 × 250) sequencing strategy at the Microsynth (Switzerland).

Analytical chemistry

Dissolved antibacterial pharmaceuticals in the samples were measured by liquid chromatography triple quad mass spectrometry with electrospray ionization. Dissolved metals were measured by high-resolution inductively coupled plasma mass spectrometry. Different forms of dissolved inorganic nitrogen and phosphate were measured using SKALAR SAN++ Continuous Flow Analyzer (Skalar, Breda, Netherlands). Dissolved total organic carbon was measured on a TOC-L TOC Analyzer (Shimadzu).

Bioinformatics and statistics

The bioinformatics and statistical analysis of metagenomes, metatranscriptomes, and 16S rRNA gene amplicon data are described in detail in the SI (Fig. S2). Identification of antibiotic, biocide and metal resistance genes was based on similarity search against a concatenated protein database of The NCBI Reference Sequence Database (RefSeq release 78) [30], The Comprehensive Antibiotic Resistance Database (CARD v1.0.1) [29, 31], Stuctured Antibiotic Resistance Genes Database (ARDB v1.1) [32], Antibacterial Biocide and Metal Resistance Genes Database (BacMet v1.1) [24] and functionally validated ARGs [33,34,35], followed by cross validation using hmmscan search against Resfams (v1.2) [36], keyword match, and manual inspection.

Results

Gene inventories of WWTPs

Gene inventories of microbiomes were built from influent, bioreactor, and effluent metagenomes of 12 communal WWTPs (Table 1). Bioinformatics analysis of 47 metagenomes (16.6 to 22.3 million reads each) allowed us to identify 9,151,591 non-redundant open-reading frames (ORFs) with contig N50 length of 1.82 kb (Dataset S1). Based on protein sequence-based homology search coupled with string match and manual inspection (see methods), we predicted 16,554 ORFs as ARGs and 7465 ORFs as biocide and/or metal-resistant genes from all samples (Fig. 2a). These are carried on a total of 40,971 resistance contigs with N50 length of 18.8 kb (Dataset S2). From all resistance contigs, 7687 ORFs co-located with resistance genes were identified as mobility indicators (iMGE) by string match of their annotations using keywords, such as transposase, plasmid, and integrase [33].

Fig. 2
figure 2

Antibiotic (ARG), biocide (BRG), and metal (MRG) resistance genes predicted from influent, bioreactors, and effluent metagenomes of 12 communal wastewater treatment plants (WWTPs). a Percent of non-redundant open-reading frames (ORFs) predicted as resistance genes (left y-axis) and number of resistance contigs (right y-axis) for each WWTP (Table 1). b Number of ORFs assigned to major mechanisms for antibiotic resistance

The resistance genes were further assigned to 109 resistance ‘‘Types’’ by the antibacterial agents to which they were predicted to confer resistance to (Dataset S3). The most frequent ARG types were multidrug, aminoglycoside, beta-lactam, macrolide, teicoplanin, and tetracycline (Fig. 2b), representing three classic resistance mechanisms: antibiotic efflux mainly by Resistance-Nodulation-Cell Division (RND)-type, ATP-binding cassette (ABC)-type, Major facilitator superfamily (MFS)-type multidrug efflux pumps, antibiotic inactivation (e.g., beta-lactamase), and modification of antibiotic targets.

Resistance genes shared by wastewater treatment compartments

How many resistance genes traverse WWTPs and whether they are differentially expressed remains largely unknown, although answers to these questions are critical to address the roles of dispersal and local enrichment of antibacterial resistance within WWTPs. The use of a cross-sample mapping strategy enabled us to quantify numerous resistance genes that were present in a sample, but not successfully assembled from its individual metagenome (Fig. S3). Based on the mapping results, a number of quantitative metagenomic and metatranscriptomic metrics were computed and used to measure the relative and absolute abundance of microbial genes and transcripts (Table S1).

Overall, we found that while each compartment harbored unique sets of ARGs (Fig. 3a) and ARG transcripts (Fig. 3b), all compartments shared 7.4( ± 4.1)% of ARGs and 2.6( ± 0.9)% of ARG transcripts. This small core gene subset of the resistome (i.e., core resistome) was quite abundant (Fig. 3a). Similar results were found for the BRGs and MRGs (Table S2), as well as their gene transcripts (Table S3), revealing wastewater-driven dispersal of certain abundant and transcribed resistance genes or selective outgrowth of the bacteria carrying such genes throughout the WWTPs. Remarkably, 10.7 ± (2.7)% of ARGs (Fig. 3a), 9.4 ± (2.2)% of BRGs, and 10.5 ± (2.6)% of MRGs undetectable in the influent samples became subdominant in the downstream compartments (Table S2), implicating their selective enrichment within each compartment. In contrast, 70.8% of the non-redundant ARGs detected in the influent samples were no longer represented in the effluent samples.

Fig. 3
figure 3

Cross-compartmental variation of the richness and abundance of genes, transcripts, and mobility indicators of the WWTP resistomes. Four compartments: influent (red); denitrification (green); nitrification (cyan); effluent (purple). a, b Shared and unique percent richness (relative abundance) of ARGs (a) and ARG transcripts (b). Overall, 7.4% of ARGs and 2.6% of ARG transcripts detected in all compartments account for 26.1% of the sum for relative abundance of all ARGs (a) and 42.7% of the sum for relative abundance of all ARG transcripts (b), revealing the persistence of certain abundant resistance genes that are transcribed throughout WWTPs. ce gene copies per 16S rRNA gene (c), transcripts per liter (d), transcripts per-gram-of-biomass (e), and transcripts per gene (f). Boxes denote the interquartile range between the 25th and 75th percentiles, respectively, the line and white diamond inside denote the median and average value, black dots denote outliers and asterisks indicate significant different mean values (adjusted P*** < 0.001 < ** < 0.01 < * < 0.05), compared with influent, which is checked by permutational Student’s t-test with 10,000 simulations (n = 11). For any downstream compartment with significantly different means (*) with influent, there is also a significant difference (P < 0.05) between their medians (checked by Mann–Whitney U-test) (color figure online)

Cross-compartmental differences in resistance gene transcription

We used quantitative metaomic approaches to absolutely quantify gene abundance and transcription throughout communal WWTPs (Table S1). We demonstrated high reproducibility in transcript abundances in three metatranscriptomes spiked with mRNA internal standards (R2 > 0.99, Fig. S4). Using the sulfonamide resistance gene sul1 as an example, we also found strong correlations between gene abundance derived from our quantitative metagenomic approach and the qPCR method (Fig. S5). To account for the significant change in the microbial biomass concentration (Table S4), bacterial 16S rRNA gene copies (Fig. S6a) and gene concentration (Fig. S6b) across WWTP compartments (P < 0.001), transcript copies were scaled to biomass concentration (transcript copies per-gram-of-biomass) and to gene copies of the same gene/gene type (transcript copies per gene copy) to explore differential patterns of resistance gene transcription across samples.

The absolute and relative transcript abundance metrics of the WWTP resistomes were significantly (P < 0.05) different across treatment compartments (Fig. 3e, f), consistent with the significant cross-compartmental variations in the relative (Fig. 3c) and absolute (Fig. S7) abundances of resistance genes. Relative to the influent and effluent, the nitrifying and denitrifying bioreactor sludge had significantly higher per-liter transcript copies of antibiotic, biocide, and metal resistance genes (Fig. 3d). The strong correlations of all resistance gene categories with biomass metrics (Spearman’s rs > 0.75, see the network in Fig. S8) support the expectation that bacterial biomass is the main driver on the variations in the total concentration of both resistance genes and transcripts throughout the WWTPs. In contrast, the effluent and influent had significantly higher transcript copies per-gram-of-biomass (Fig. 3e) and transcript copies per gene copy (i.e., expression ratio, Fig. 3f) of resistance genes, compared with the bioreactor sludge. Notably, we observed significantly higher relative abundance for both class 1 integron-integrase gene (Fig. S6a) and resistance genes (Fig. 3c) in the effluent than in the influent. These results together suggest that conventional secondary WWTPs release bacterial populations in which resistance genes and/or class 1 integrons are significantly enriched and that express these genes.

We further checked which types of antibacterial resistance genes were upregulated and enriched in the effluent relative to the influent. Based on the relative change in the transcripts per-gram-of-biomass of the most abundant resistance types for antibiotics, biocides, and metals (Fig. 4a), we found that the transcription of most resistance types increased significantly (*P < 0.05) from the influent to effluent (see red bars, Fig. 4a). This pattern was most pronounced for resistance types including four antibiotic classes (tetracycline, trimethoprim, bleomycin, and polymyxin), three biocides (e.g., hydrogen peroxide), and one metal (iron). Likewise, most resistance types showed higher average transcript copies per gene copy in the effluent than the influent (Fig. 4b), suggesting that transcription of these resistance genes could be upregulated in at least a subset of all WWTPs examined. However, the lack of significant differences in the averages of transcript copies per gene copy (P ≥ 0.05) indicates that the increase in transcripts per-gram-of-biomass largely originates with increases in the relative abundance of resistant bacteria. Indeed, the significant increase in relative abundance of most types of resistance genes, as measured by gene copies per copy of 16S rRNA gene (GP16S, Fig. 4b), agrees with the significant increase of antibiotic, biocide, and metal resistance gene copies per-gram-of-biomass (Fig. S7b). These results remarkably suggest substantial relative enrichment of a broad set of antibacterial resistance genes after conventional secondary wastewater treatment.

Fig. 4
figure 4

The relative change of transcript and gene abundance of antibiotic, biocide, and metal resistance genes from post-primary clarifier influent to secondary effluent. Relative change is defined as the difference between effluent and influent values divided by the maximum value, thus positive (negative) values indicate increase (decrease) after wastewater treatment. a Top x-axis: relative change (bars) in transcript copies per-gram-of-biomass (TPB) from influent to effluent; bottom x-axis: gene copies per liter of effluent (gray circles). b Relative change in transcript copies per gene copy (TPG) and gene copies per 16S rRNA gene (GP16S). The significance of mean difference in each metric between influent and effluent is tested by permutational Student’s t-test with 10,000 simulations (P*** < 0.001 < ** < 0.01 < * < 0.05, n = 11). The data suggests massive increases in the expression ratio, per-gram-biomass transcript copies, and relative abundance of most antibacterial resistance types (see red bars and cells). TPP tetraphenylphosphonium (color figure online)

Mobility incidence and biotic and abiotic drivers of WWTP resistomes

Co-localization or co-occurrence analysis between resistance genes and mobility indicators has been used to assess resistance mobility with regard to the potential for horizontal dissemination [5, 22, 25, 33]. To quantify mobility potential of resistance genes, we define “mobility incidence” (M%) as the percentage of resistance gene encoding contigs flanked with at least one co-occurring mobility indicator (iMGE) in all resistance contigs. Using resistance contigs assembled from all metagenomes, antibiotic, biocide, and metal resistance genes scored a mobility incidence of 8.6%, 11%, and 20%, respectively. We then classified all resistance genes by their mobility incidence. This innovative method enables the identification of resistance types, subtypes, or genes that tend to be more mobilized than others in any environmental resistome. We found that in the WWTPs examined ‘‘highly mobilized’’ ( > 95% mobility) antibiotic resistance types included sulfonamide and mercury resistance, whereas ‘‘poorly mobilized’’ ( < 5% mobility) ones included polymyxin and nitroimidazole resistance (Table S5). At the subtype level (Table S6), we found 21 highly mobilized subtypes encoding resistance functions to carbapenems (e.g., OXA-58 and OXA-181), oxacillin (e.g., OXA-10), macrolides (ermB and mel), sulfonamide (sul1, sul2, and sul3), trimethoprim (dfrB3), copper (ctpG), mercury (e.g., merE and merT), silver (silP), and etc.

We further compared the relative strength of biotic factors (i.e., mobility elements, biodiversity, and biomass) and abiotic factors (i.e., antimicrobials, wastewater indexes, and operational parameters) in explaining the compositional variances of WWTP resistomes (Dataset S5). Redundancy analysis showed that the variances of both resistome gene and transcript compositions in the influent and effluent were best explained exclusively by biotic variables representing genetic mobility, including intI, resolvase and conjugative transfer protein, suggesting that changes happen primarily in the mobilized resistome. Bacterial alpha-diversity metrics including Shannon’s H and Simpson’s E (Table 2) also explained part of the variances, indicating the importance of community composition. In contrast, in the nitrifying and denitrifying bioreactors (Table S7), smaller but significant parts of resistome compositional variances were explained by three nitrogen metrics, three operational parameters, two metals (i.e., cadmium and nickel), and seven pharmaceuticals (e.g., levofloxacin, trimethoprim, and sulfamethoxazole). We also identified significant positive correlations (P < 0.05, Table S8) between the concentration (ng/L) of measured antibiotics (i.e., macrolides, sulfonamides, lincosamide, trimethoprim, and vancomycin) and the concentration of certain ARGs (170 instances, e.g., Fig. S9a–c) or ARG transcripts (43 instances, e.g., Fig. S10a–c). The majority of these correlations were found between an antibiotic class and ARGs (Fig. S9d–h) or ARG transcripts (Fig. S10d–f) conferring resistance to a different antibiotic class, i.e., correlations that could theoretically be derived from gene co-selection or co-expression.

Table 2 Redundancy analysis showing percent variation in the wastewater resistome composition explained by biotic and abiotic variables

Interconnected WWTP resistomes and microbiomes

Bacterial phylogeny structures soil resistomes [33]. To test if this was the case in our dataset, we used ordination to follow structural variations in the resistomes (Fig. 5 and S10) and microbiomes (Fig. S12) both between and within treatment compartments. The samples consistently clustered into three main groups by treatment compartment with bioreactor samples closely clustered together, whether the analysis was based on abundance metrics of antibiotic, biocide, and metal resistance genes (Fig. 5a–c and Fig. S11a–c) or transcripts (Fig. S11d–l). Consistent with the resistomes, the microbiomes also clustered by treatment compartment, whether a dissimilarity metric of bacterial abundance (Bray-Curtis), phylogeny (unweighted UniFrac), or both (weighted UniFrac) was used (Fig. S12). The ordinations for both resistomes and microbiomes typically showed higher within-cluster variances for the effluent samples, whereas within-cluster variances were typically smaller for the influent samples, reflecting a role of wastewater treatment in the divergence of the microbial community structure.

Fig. 5
figure 5

Resistome composition correlates with bacterial community composition and phylogeny across wastewater treatment compartments. ac Non-metric multidimensional scaling plots depict Bray-Curtis distances between treatment compartments based on relative abundance of antibiotic (a), biocide (b), and metal (c) resistance genes in the metagenomes. df Procrustes analyses depict significant (P< 0.001) and strong (r > 0.85) correlations between bacterial community composition (Bray-Curtis, red circles) and content of antibiotic (d), biocide (e), and metal (f) resistance genes (Bray-Curtis, blue circles), respectively. OTU operational taxonomic unit. IDs were labeled for samples outside compartment-defined sample clusters (Dataset S1) (color figure online)

The structural correlations between resistome and microbiome were computed and visualized based on procrustes analyses (Fig. 5d–f). When all the treatment compartments were considered, Bray-Curtis distances calculated from abundance metrics of ARGs (d), BRGs (e) or MRGs (f) significantly (P < 0.001) correlated with both bacterial OTUs (r = 0.81–0.97, Fig. 5d–f) and taxa (i.e., at the genus, family, order, class, and phylum levels, Table S9) inferred from 16S rRNA sequence data, whether a dissimilarity metric of abundance (Bray-Curtis), phylogeny (unweighted UniFrac), or both (weighted UniFrac) was used. Likewise, Bray-Curtis distances calculated from transcript abundance metrics of all three categories of resistance genes also significantly correlated (P < 0.001, r = 0.56–0.83) with both the bacterial abundance and phylogenetic structure (Table S9). On the other hand, resistome composition within treatment compartments also significantly (P < 0.05) correlated with abundance and/or phylogeny-based bacterial community structure (Table S10). If horizontal gene transfer occurs at very high frequencies, we might expect increasingly weaker correlations between resistome and phylogenetic structure from inflow to effluent, but this was not observed. Combined, the resistome composition correlates with both the phylogenetic (UniFrac) and taxonomic (Bray-Curtis) distance metrics of community structure across and within treatment compartments, revealing a close relationship between resistome composition and bacterial phylogeny.

Discussion

The power of metagenomics and bioinformatics have been demonstrated in exploring diversity of environmental ARGs [5, 13, 15, 37, 38]. However, the absolute quantification of a broad-spectrum of ARGs and their transcripts remains challenging. We demonstrated the integration of metaomic approaches with mRNA internal standards and qPCR data of marker genes (e.g., 16S rRNA gene) as a powerful methodology to realize both absolute and relative quantification of a broad-spectrum of microbial community genes and transcripts within a complex microbial ecosystem like WWTPs. Using these techniques, we provide extensive information on the fate and expression of the WWTP resistome genes, and influential biotic and abiotic factors.

Fate and expression of antibacterial resistance genes

Our data confirm previous findings that conventional WWTPs remove the majority of bacterial cells and with it resistance genes. Previous studies have presented contradicting evidence regarding the removal vs. enrichment of ARGs in WWTPs [6, 17, 39,40,41,42]. General conclusions remain difficult because of the discrepancies in the types of ARGs reported, abundance metrics used (i.e., relative or absolute), and/or normalization methods implemented (e.g., against 16S rRNA gene or biomass). Our data strongly supports the notion that WWTP are sites for the relative enrichment of antibacterial resistance genes and class 1 integrons, as we found a surprisingly consistent increase in the relative abundance of most resistance genes and the class 1 integron-integrase gene intI1. While the relative enrichment of ARGs is also noticed in WWTPs elsewhere [17, 40, 41], the release of class 1 integrons from wastewater systems deserves further research on their potential clinical relevance and environmental risks in the receiving environment [43].

Further, quantitative metatranscriptomics suggests that resistance genes are differentially expressed across the WWTP compartments, which provides credence to the idea that the resistance activity is influenced by environmental conditions during wastewater treatment. The constantly fluctuating physicochemical composition of influent wastewater and rapidly changing redox conditions from one treatment compartment to the next can expose microorganisms within WWTPs to rapidly varying stress. The expression of resistance genes could thus be tied to a general stress response that is not directly linked to the presence of suspected specific stressors such as measured antibiotics or metals. The impact of such specific agents is, therefore, discussed in detail below. The redox contrast between denitrification and nitrification compartments at least did not result in an overall differential expression of resistance genes (Fig. 3d–f). We have further demonstrated that (i) the core resistome genes are persistent, abundant, and transcribed in all the WWTP compartments and (ii) resistance genes and mobility indicators are more transcriptionally active in the secondary effluent than in activated sludge bioreactors. These findings indicate that some resistance genes and resistant bacteria are highly recalcitrant to conventional secondary treatment processes and that these facilities release abundant actively transcribed resistance genes together with mobile genetic elements into the receiving environment. It should be noted, that the expression ratios of ARGs in WWTPs we detected are far lower than one transcript per gene copy. While these values are comparable to those reported with the same methodological approach for biogeochemically relevant genes in the Amazon River Plume [28], such values lie far below what is typically observed in organism-based studies. Further research will be needed to understand these seemingly low transcriptional activities.

Biotic and abiotic drivers of the WWTP resistomes

The relative roles of biotic and abiotic factors in shaping environmental resistome and facilitating resistance selection are poorly understood [2, 23]. We demonstrate that biotic factors including mobility elements (intI1, conjugal transfer protein, and resolvase) and biomass play an important role in shaping compositional variations of the influent and effluent resistomes. Class 1 integrons are central players in resistance dissemination [43, 44], whose activation upon conjugative plasmid transfer allows host bacteria to rapidly develop antibiotic resistance [45, 46]. Plasmid-mediated antibiotic and metal resistance has been reported in wastewater [6, 12, 14, 47]. The proportions of ARGs (5.4%) and MRGs (8.1%) in total plasmid-borne genes we identified are comparable to the levels in two other Swiss WWTPs (ARG: ~2.5 and 4.0%; MRG: ~4.5 and 12.5%) [14]. The strong explanatory power of mobility indicators thus shows the importance of mobilized resistance in the wastewater, and supports the use of, e.g., intI1 as a general indicator of resistance [2, 43]. However, in the activated sludge abiotic factors (i.e., inorganic nitrogen, pH, dissolved oxygen, and several antimicrobials) appear to play an additional role in shaping resistomes (Table S7). In this compartment, nutrients and oxygen are substantially consumed by activated sludge biomass and may thus act as driving forces for both community and resistome composition.

Positive correlations between antibiotics and resistance

Positive correlations were found between certain antibiotics in wastewater and “their” resistance genes and resistance gene transcripts, as well as with resistance genes conferring resistance to a different antibiotic class. On the one hand, such positive relationships, for example, those between wastewater concentrations of macrolide antibiotics, clarithromycin (76-460 ng/L) and azithromycin (46-310 ng/L) and the concentration of macrolide resistance gene macB (Fig. S9a–b), could be the consequence of enrichment of the resistance genes in the population based on selective pressures exerted by the antibiotic. Considering the demonstrated selection of resistant strains at very low and sub-inhibitory antibiotic concentration [48] this is a reasonable expectation. However, further antibiotic susceptibility tests on wastewater isolates or experimental validation with wastewater communities are required to validate this correlation-based speculation. On the other hand, the demonstrated positive correlations between wastewater antibiotics and resistance genes or transcripts of another antibiotic class could reflect co-selection of multi-resistance on the same genetic elements, i.e., co-resistance [23]. The most striking examples are the strong positive correlations found between macrolide antibiotics and both vancomycin resistance genes (Fig. S9d–e) and their transcripts (Fig. S10d–e). The co-localization or adjacency of vancomycin and macrolide resistance genes on the same genomic fragments (12 instances, Dataset S2), as well as the strong positive correlations between their absolute copies in all the four WWTP compartments (R2 = 0.77–0.93, Fig. S9f–i), are strong evidence for their co-selection, which also makes the induced expression of the vancomycin resistance genes by clarithromycin plausible (Fig. S10d–e). Another intriguing example is the strong positive relation found between the concentrations of sulfamethoxazole and transcripts of trimethoprim resistance gene dfrB3 (R2 = 0.94, Fig. S10f). A general practice of combined use of trimethoprim and sulfamethoxazole in clinical settings may facilitate their co-selection. However, the observed correlations could also be inherited from selective processes in human gut bacteria of patients under treatment rather than within the WWTPs.

The above findings highlight the multi-dimensionality and complexity of environmental (co-)selection of antibiotic resistance and thus explain the inability of previous studies to assign or relate certain antibiotics to the occurrence and/or abundance of their respective resistance genes [10, 37, 49,50,51]. In particular for the WWTP environment, one may argue that metal contaminants may also co-select for ARGs and MRGs, thus decoupling simple ‘‘antibiotic-ARG’’ relationships [23]. However, our contig data do not support that such co-selection is common in the WWTPs, considering a very low incidence (0.6%) of finding an ARG and an MRG encoded on the same resistance contig (Dataset S2). This lack of co-occurrence scenarios between MRGs and ARGs agrees with their rare co-occurrence on plasmids from natural environments ( < 0.7%) [25]. However our resistance contig-based analysis (N50 length of 18.8 kb) likely underestimates the co-selection potential if these genes are distanced on different genomic islands or multi-resistance plasmids [23].

Gene mobility potentials of the WWTPs resistomes

The average mobility incidences (M%) of ARGs found in our WWTPs influent (10%), activated sludge (7.1–7.8%), and effluent (9.8%) resistomes were comparable to those found in the human gut resistomes (14% of 161 contigs), where horizontal gene transfer (HGT) is implicated in facilitating resistance acquisition by human pathogens [34]. In contrast, lower mobility incidence of ARGs have been reported for soils (0.8% of 4655 contigs [5]), where HGT is suggested to play a limited role in resistance dissemination. Remarkably, we find that of the 17,486 resistance genes shared by bacteria, the majority (93.5%) are encoded on multiple resistance contigs (2 to 46) with considerably diverging flanking regions (Dataset S6). This novel finding of a large-scale distribution of identical resistance genes on divergent contigs derived from DNA samples from different WWTPs/compartments strongly implicates a history of substantial exchange of antibacterial resistance genes.

Moreover, three further lines of evidence suggested HGT may play a more important role in the secondary clarifiers than previously appreciated: (i) an important role of intI1, resolvase and conjugal transfer protein in structuring resistomes in the low-biomass clarified effluent rather than the thick activated sludge (Fig. S13), (ii) the higher per-gram-of-biomass and per gene transcriptional activities of resistance and mobility-related genes (Fig. 3e, f), as well as higher relative abundance of intI1 (Fig. S6a) and ARGs (Fig. 3c) in the secondary effluent than activated sludge, and (iii) high incidences of integrases (31%) and conjugal transfer proteins (35%) co-located with plasmid proteins on the same resistance contigs (Dataset S2). Based on these findings, we hypothesize that contrary to our original expectations, secondary clarifier suspended bacteria, which are mostly planktonic, are exposed to higher overall stress from contaminants (e.g., per-gram-of-biomass antibiotic/metal loadings). This results in both, stronger selection and more active transcription, of resistance-related genes compared with bacterial cells harbored within the protective activated sludge flocs. In flocs antibacterial resistance or detoxification can be achieved through extracellular inactivation (e.g., beta-lactam and aminoglycoside), exopolysaccharide binding (e.g., some metals and chemical toxins) and/or biodegradation or biotransformation (e.g., biodegradable pharmaceuticals).

Despite the evidence for gene mobilization within the resistomes of WWTP effluent, we have demonstrated that the resistome composition overall correlates tightly with the bacterial community phylogenetic and taxonomic composition (Fig. 5), suggesting that the changes to the species composition resulting from the wastewater treatment process strongly determine the effluent resistomes. While this finding agrees with a close connection found between antibiotic resistome and bacterial phylogeny in soils and human guts [33, 37], it may also reflect the existence of certain phylogenetic constraints for the horizontal dissemination of antibiotic resistance between bacterial populations.

Implications for risk assessment and management of resistomes

Our data strengthens the case for using intI1 gene abundance and concentration as a general indicator of anthropogenic impacts [43], as we could demonstrate their predictive power for WWTP resistomes and relative enrichment after wastewater treatment, in accordance with the significant increase in relative abundance of resistance genes. Using mobility incidence (M%), we are able to predict and compare the transferable potentials of resistance genes at the levels of resistance type, subtype and ecosystem, which is an important aspect for risk ranking in resistomes [52]. While the keyword-based approach used in the assessment of M% is likely to have shortcomings—for example, we only test for co-localization of an appropriately annotated genetic element but do not confirm its function or if it actually confers mobility to the ARG—it proved a useful tool and provided believable rankings. Typical examples of 100% mobilized ARGs we identified from WWTP effluent include well-known acquired resistance genes such as CTX-M, OXA, and TEM family extended-spectrum beta-lactamases (ESBL) and OXA family carbapenemases. Our approach could be further improved, for example, by using a verified reference database of mobility indicators instead of keywords. Besides gene mobility, risk ranking in resistomes should also consider the host pathogenicity and clinical importance of ARGs with regard to disease control in humans and/or domestic livestock [52]. We demonstrate that contig-based analysis of metagenomes can again provide a basis for such assessments: For instance, we found 11 non-redundant ARGs representing a total of 138 ORFs with 100% identity to reference sequences from known clinical isolates of human pathogens (Table 3). The high occurrence frequency of these ‘‘pathogenic’’ ARGs (11/12) and their transcripts (9/12) in the effluent of examined WWTPs (e.g., sul1, ermB, ANT3, and cmlA) suggests that further investigation of their fate and health risk in the receiving environment is warranted.

Table 3 Non-redundant antibiotic resistance genes with 100% identity to known human bacterial pathogens

Additional preventative or control measures of antibiotic resistance determinants in WWTP effluents may currently not be a priority, unless direct health risks for humans are verified. Nonetheless, our data underscores that the absolute amounts of resistance bacteria and genes discharged by WWTPs into the environment is heavily dependent on the bacterial biomass remaining in the final effluent. Thus, any measure that substantially reduces bacterial biomass in the discharged effluent, such as an increase of sludge settleability in the secondary clarifiers [53] or membrane filtration would reduce WWTP discharge of resistance genes. In agreement with this idea, membrane bioreactors are implicated to show much higher absolute removal efficiency of some ARGs and bacteria than conventional WWTPs [18].