1 Introduction

The intertidal region, especially the coastal tidal flat, is an important area that consists of various types of ecosystems and provides an important habitat for marine organisms (Nordlund et al. 2014; Li et al. 2022). Coastal tidal flat has a variety of sediment types, complex hydrodynamic conditions, rich biological resources, and biodiversity (Boehm et al. 2014; Li et al. 2016), which is an active zone in the geochemical cycles of nutrients. However, the emergence of pollution sources such as land industry and agriculture, domestic wastewater, and pollutants has accelerated the degradation of tidal flat wetlands (Alahmed et al. 2022). It is necessary to conduct ecological studies on coastal tidal flats, which can provide theoretical support for the scientific utilization and high-quality development of coastal aquaculture.

Accumulation of nutrients has become one of the key environmental concerns in coastal tidal flats (Hu et al. 2014), as it has significant effects on microbial processes and directly or indirectly affects the biogeochemical cycle (Deng et al. 2020). The large consumption of dissolved oxygen stimulates the microbe-mediated degradation of organic matters, in which metabolites of ammonium and nitrite are biotoxic (Hu et al. 2014; Jin et al. 2017) and released gases of CH4 and N2O are also considered significant emission sources of the greenhouse effect (Groffman et al. 2000; Yang et al. 2015). During the sulfur cycle mediated by sulfate-reducing bacteria and hydrogen sulfide-oxidizing bacteria, the sediments are enriched with high concentrations of hydrogen sulfide, causing the mudflat mud to become black and smelly, which leads to the deterioration of water quality and affects the growth of cultured species (Yang et al. 2017). Furthermore, the excessive nutrition causes mass multiplication of pathogenic microorganisms (Defoirdt 2014), which leads to a decline in the productivity of aquaculture and further destroys the ecological balance of the coastal tidal flat (Li et al. 2017). Meanwhile, the biodeposits of aquatic products accelerate the sedimentation rate of nutrients in tidal flats, which promote the growth of benthic algae (Gibbs et al. 2004), further changing the microbial community (Jordan and Valiela 1982). Therefore, sediment microorganisms have a great metabolic potential for nutrient transformation and pollutant degradation in coastal tidal flats. Their community structure and metabolic activities can be used as important indicators for assessing nutrient dynamics in tidal flat ecosystems (Huang et al. 2016).

Pollution by potentially toxic elements (PTEs) is a key problem in aquatic environments (Capangpangan et al. 2016). Higher concentrations of metal contaminants adversely affect the composition of the microbial communities (Shi et al. 2018). PTEs change the microbial community structure by destroying cells to a certain extent (Yan et al. 2020), whereas microorganisms can convert PTEs into organometallic compounds, thereby enhancing their toxicity and increasing the risk of water pollution. Bacteroides had a significant negative correlation with Cd, Cu, and Zn in highly polluted sediments (Gillan et al. 2005), and Nitrospirae was significantly negatively affected by PTEs except Cr, while Cr was significantly positively correlated with the Planctomycoetes-Verrucomicrobia-Chlamydia super-phylum in nearshore sediments (Zhuang et al. 2019). Deltaproteobacteria, Acidobacteria, Gemmatimonadetes, and Nitrospira may be indicators of Zn and Cu pollution in the eutrophic water environments (Wang et al. 2019). With the enhancement of the tolerance of species to PTE pollution, the abundance of sensitive species susceptible to metal pollution gradually decreases, which then changes the microbial diversity (Tipayno et al. 2018). Hence, exploring the impact of PTE pollution on the microbial community can reflect the biological indicators of metal contaminant status, which is helpful for monitoring and managing coastal tidal flat ecosystems.

Antibiotic resistance is regarded as an increasingly global public health threat (Cassini et al. 2019), and emerging pollutants of antimicrobial resistance genes (ARGs) and resistant bacteria (ARB) persist in the dissemination of resistance in aquatic environments (Yang et al. 2018). The wide use of antibiotics means that the discharged pollutants circulate around the tidal flats, which may cause potential risks for long retention times to the ecosystem and cause pollution control in coastal tidal flat. Sediment is considered an important area for ARG accumulation and transmission (Kümmerer 2009), while ARB is repositories of ARGs in the sediments (Martínez 2008). Bacterial hosts acquire ARGs through integrons, which further accelerate the spread of ARGs in the environment (Zhang et al. 2020). Moreover, long-term nutrient input promoted the reproduction of ARGs (Zhao et al. 2017). Previous studies have indicated that carbon, nitrogen, and phosphorus affect the distribution and abundance of ARGs by changing the composition of the microbial communities (Zhou et al. 2017; Pan et al. 2020). Therefore, it is of great significance to study the relationships between ARGs, microbial communities, and environmental factors in the sediments of coastal tidal flats.

In the present study, using 16S rRNA sequencing and metagenome sequencing, three typical coastal tidal flat zones located at the South Bank of Hangzhou Bay, China, were chosen to investigate the community dynamics, potential function, and adaption mechanism of the microbiome in surface sediments. It is hypothesized that microbial composition and functional genes would respond to pollution of nutrient and PTEs in coastal tidal flat. The main objectives of this study were to (1) determine the distribution and diversity of the microbial community, (2) evaluate the impact of PTE contaminant on sediment microbial structures, and (3) examine the responses of functional genes with biogeochemical cycles to the accumulation of nutrients in coastal tidal flat.

2 Materials and methods

2.1 Site description and sample collection

Cixi City is located at the South Bank of Hangzhou Bay in Zhejiang Province, China, between 30°2' and 30°19' north latitude and 121°2' and 121°36' east longitude. Its coastline is 78.5 km long and has the largest contiguous beach south of the Yangtze River. Using abundant beach resources to develop mariculture, Cixi City gradually formed a large-scale coastal aquaculture production base with regional characteristics. The Longshan Wharf (LS), Gaobeipu (GBP), and Shuiyunpu (SYP) are three typical offshore aquaculture zones. The LS is a mass fishing port wharf with a berthing grade of 100 tons. The SYP is one of the main flood gates in the Zhonghe District of the Yaojiang River Basin. Using a Van Veen grab sampler (35 cm × 25 cm × 30 cm), surface sediment samples (0–5 cm) were collected from three offshore sites in May 2021 (Fig. 1). Three parallel samples were collected and pooled into one sample mixing for each site to ensure that the sampling truly represented the coastal tidal flat as much as possible (Yuan et al. 2003; Shen et al. 2022). Each sample was then divided into two parts: one was refrigerated in a sterile tube at 4 °C for physicochemical parameter measurements, and the other was stored at − 80 °C until molecular analysis.

Fig. 1
figure 1

Map of the sampling site. Sediment samples were collected from the Longshan Wharf (LS, 30.109° N, 121.591° E), Gaobeipu (GBP, 30.248° N, 121.483° E), and Shuiyunpu (SYP, 30.321° N, 121.400° E) in Cixi City, Zhejiang Province, China

2.2 Physicochemical analyses

Water quality and sediment monitoring were performed at LS, GBP, and SYP sampling sites in the aquaculture zones. The pH, dissolved oxygen (DO), and chemical oxygen demand (COD) of the water were monitored in situ using a multi-parameter water quality analyzer (UPW-T700N, China). Available phosphorus (AP) was measured using a spectrophotometer (UV2550, Shimadzu, Japan). The dissolved inorganic nitrogen (DIN) was determined using a Discrete Chemistry Analyzer (CleverChem380, Dechem-Tech, Germany). The oil content was measured using a water–oil analyzer (InfraCal 2 ATR-SP, Spectro Scientific, USA). Sediments Cu, Pb, Cd, Zn, and Cr were analyzed using inductively coupled plasma mass spectrometry (ICP-MS, 7900, Agilent, USA) after digestion with a microwave digester (Ethos A, Milestone, Italy). Physicochemical characteristics of each sampling site are presented in Table 1.

Table 1 Physicochemical parameters of water quality and sediment at three sampling sites in the tidal flat zones

2.3 DNA extraction

Genomic DNA was extracted using the FastDNA® SPIN Kit for Soil (MP Biomedicals, Southern California, USA) from 0.5-g fresh sediment of each sample. The final DNA quality was confirmed by electrophoresis on 1% agarose gel. The DNA concentration and purification were determined using Qubit 3.0 (Thermo Fisher Scientific, Waltham, MA, USA). Three parallel samples of DNA were extracted from each site, manually pooled into one sample, and stored at − 80 °C.

Plasmid standards were constructed by inserting the bacterial 16S rRNA gene fragment amplified by PCR using the universal primers 341F/534R (Muyzer et al. 1993). qPCR was performed in duplicate using a Bio-Rad CFX384 Real-Time PCR Detection System (Bio-Rad Laboratories Inc., Hercules, CA, USA). The gene copy numbers of the sediment samples were calculated from the cycle threshold (CT) value and are presented as copies per gram of wet sediment using the absolute standard curve. The average amplification efficiency of these genes was 87.5%.

2.4 16S rRNA sequencing and data analysis

The V3–V4 region of the bacterial 16S rRNA gene was amplified using the universal primer 338F/806R with adaptor sequences to link to the barcodes using a thermocycler PCR system (Bio-Rad Laboratories Inc., Hercules, CA, USA) (Xu et al. 2016). The amplification conditions included initial denaturation at 95 °C for 3 min, 25 cycles of denaturation at 95 °C for 30 s, annealing at 55 °C for 30 min, and elongation at 72 °C for 30 s, followed by a final extension at 72 °C for 5 min. Each sample was amplified in triplicate, containing 5 × FastPfu Buffer, 2.5 mM dNTPs, 50 mM of Mg2+, 0.1 µM of each primer, 1 unit of TransStart® FastPfu DNA Polymerase (TransGen, Beijing, China), and 1 ng of DNA template. The PCR products were analyzed by 2% agarose gel electrophoresis, purified using Agencourt AMPure XP (Beckman, USA), and quantified using Qubit 3.0 (Thermo Fisher Scientific, Waltham, MA, USA). After purification, three parallel amplicons from each site were manually mixed into a single DNA library. According to standard protocols (http://www.illumina.com/), sequencing was performed using the Illumina MiSeq PE300 platform (Illumina, San Diego, CA, USA).

The raw fastq sequencing data were quality-filtered, and the paired reads were merged into long sequences using qiime2 (http://qiime.org/scripts/assign_taxonomy.html). The optimized sequences were then compared with the Silva (Release138, http://www.arb-silva.de) 16S rRNA database to remove eukaryotic and archaeal sequences. The screened bacterial sequences were classified into operational taxonomic units (OTUs) with a 97% similarity cutoff. The sequencing depth for each sample was 30,000.

2.5 Metagenome sequencing and Gene Catalogue Construction

The extracted genomic DNA was sheared into approximately 300-bp fragments and connected with the Y-shaped linker. A PE library was constructed using PCR amplification and library enrichment. One segment of DNA fragment was fixed on the chip, and the other was randomly complementary of the primer, forming a “bridge.” Subsequently, DNA clusters were generated by bridge PCR amplification and linearized into single DNA strands. According to standard protocols (http://www.illumina.com/), sequencing was performed at Majorbio Bio-Pharm Technology Co. Ltd. (Shanghai, China) using NovaSeq 6000 platform (Illumina, San Diego, CA, USA).

After the raw sequences obtained by sequencing were split, quality cut, and decontaminated, the optimized sequences were assembled, and genes were predicted by MetaGene (http://metagene.cb.k.u-tokyo.ac.jp/). Genes with nucleic acid length of ≥ 100 bp were selected and translated into amino acid sequences (Noguchi et al. 2006). The high-quality reads of each sample were compared with the non-redundant gene catalogue using SOAPaligner (Version 2.21), and the abundance information of predicted genes in the corresponding samples was obtained (http://soap.genomics.org.cn/). The resulting genes were annotated and classified by species and function using BLASTP (V2.2.2), including non-redundant (NR) and Kyoto Encyclopedia of Genes and Genomes (KEGG) databases.

2.6 Bioinformatics and statistical analysis

The sample alpha diversity index, including richness, evenness, diversity indices, and coverage, was determined using mothur software (version 1.30.2, https://www.mothur.org/wiki/Download_mothur). Principal coordinates analysis (PCoA) with Bray–Curtis distance was calculated to compare the similarities and differences in environmental samples. Redundancy analysis (RDA) with Monte Carlo permutation tests (999 unrestricted permutations, p < 0.05) was employed to analyze the relationships between the physicochemical parameters and microbial communities. Random forest analysis (RF) was conducted to evaluate the relative importance of each environmental factor in predicting the distribution of microbial communities. The contribution of environmental factors was assessed using “mean decrease accuracy” in the “randomForest” R package (Liaw and Wiener 2002). All analyses were visualized in R “vegan” package (Oksanen et al. 2019). Using SPSS 20.0 (IBM, Armonk, NY, USA), Pearson’s rank correlation and significance analyses were used to examine the potential relationships among diversity, community, and physicochemical parameters.

2.7 Accession numbers

The 16S rRNA gene sequences and metagenome sequences obtained from Illumina sequencing have been deposited in the public NCBI database (http://www.ncbi.nlm.nih.gov/) under the accession numbers PRJNA906945 and PRJNA908223.

3 Results

3.1 Physicochemical properties of the samples

At the time of sampling in May 2021, routine water quality and sediment monitoring were conducted for Longshan Wharf (LS), Gaobeipu (GBP) and Shuiyunpu (SYP) sampling sites in the offshore aquaculture zones (Table 1). No significant differences were noted among the three sampling sites in water pH (8.01, 7.92, and 7.91, respectively), dissolved oxygen (DO, 6.09, 6.80, and 7.73 mg L−1, respectively), inorganic nitrogen (DIN, 0.933, 1.118, and 0.832 mg L−1, respectively), and sediment Cu, Pb, Cd, Zn, and Cr (p > 0.05). However, the concentrations of chemical oxygen demand (COD), available phosphorus (AP), and oil in the samples were significantly different (p < 0.05). The concentrations of COD and oil were higher in LS and GBP than in SYP, whereas the concentrations of AP were highest in the LS sample. According to the Seawater Quality Standard of China (GB3097-1997), seawater quality is classified into four classes (I, II, III, and IV, corresponding to marine fishery water areas, aquaculture areas, industrial water areas, and marine port water areas, respectively). The pH and DO in the three sampling sites were classified as class I, whereas the concentrations of oil were classified as class I in SYP, and class II in LS and GBP. The concentrations of COD in LS and GBP (up to 1.042 times higher), AP in LS (up to 1.711 times higher), and DIN in three samples (up to 1.66 to 2.24 times higher) were considerably higher than the specified safety limits. According to the Marine Sediment Quality of China (GB18668-2002), marine sediment quality is classified into three classes (I, II, and III, corresponding to marine fishery water, industrial water, and marine port water areas, respectively). The concentrations of Cu, Pb, Cd, and Zn in the three sediment samples were classified as class I, while the concentration of Cr was classified as class II. Physicochemical characteristics indicated that GBP and LS were more hypernutrified and polluted than SYP.

3.2 Overview of 16S rRNA sequencing and metagenome sequencing

To investigate the diversity and function of the microbial community, 16S rRNA and metagenome sequencing were performed. After filtering and trimming the raw reads of 16S rRNA sequencing, 219,367 high-quality sequences were obtained from the three samples with an average length of 419.58 bp and were flattened by minimum sample sequence number (Table 2). Good’s coverage values ranged between 0.987 and 0.990 across samples, indicating that sequencing recovered most of the local species. A total of 770 bacterial OTUs in the sediments from the three sampling sites were classified with a threshold value of 97%.

Table 2 Statistics of alpha-diversity of the bacterial communities

Through metagenomic sequencing, 15.77 million clean reads (> 50 bp) were generated from the three samples (Table 3). After assembly, 1,404,224 contigs (> 300 bp) were obtained for prediction and annotation. The contigs_N50 and _N90 illustrated that the assembly efficiency was comparable with previous metagenome reports (Albertsen et al. 2012; Ye et al. 2012; Deng et al. 2020). A total of 565,459, 708,575, and 477,911 open reading frames (ORFs) (> 100 bp) were retrieved from GBP, LS, and SYP, respectively.

Table 3 Summary of the metagenomics sequencing, assembly, and taxonomy annotation

3.3 Abundance, diversity, and composition of the bacterial community in sediment samples

The copy number of the bacterial 16S rRNA gene ranged from 2.46 × 1010 to 6.05 × 1010 copies g−1 wet sediment in the three samples (Fig. S1). No significant spatial differences were noted in bacterial 16S rRNA gene abundance in the sediments of tidal flat aquaculture (p > 0.05). The richness and diversity indices based on the OTUs are shown in Table 2. The Ace and Chao1 indices of the three samples indicated that LS had the highest richness (Ace index of 3644 and Chao1 index of 3576), followed closely by SYP (3411 and 3400) and GBP (3321 and 3252). Similarly, the sediments of GBP had the lowest diversity, with a Shannon index of 6.38 and Simpson index of 0.00581, whereas the sediments of LS (6.64 and 0.00494) and SYP (6.62 and 0.00392) showed considerably greater diversity.

Circos showed the composition of the bacterial communities in the three sediment samples based on taxonomic assignment (Fig. 2). A total of 32 known bacterial phyla were detected in the samples, of which 17 were dominant phyla (relative abundance > 1%), including Proteobacteria, Actinobacteria, Chloroflexi, Acidobacteriota, Bacteroidota, and Desulfobacterota (Fig. 2A). Proteobacteria was the predominant bacterial phylum in all samples, with a prevalence of 31.2%, 31.5%, and 28.7% in the GBP, LS, and SYP, respectively. The relative proportions of Bacteroidetes and Firmicutes, accounting for 10.8% and 3.90% in SYP, respectively, were the highest, followed closely by those in GBP and LS, whereas Actinobacteriota and Cyanobacteria in GBP were significantly higher than those in LS and SYP (p < 0.05).

Fig. 2
figure 2

Composition and abundance of the sediment samples from Longshan Wharf (LS), Gaobeipu (GBP), and Shuiyunpu (SYP) at different taxonomic levels. Circos visualizing the distribution of microbial community for each sample at phylum (A), class (B), and genus (C) levels. The width of the bars from each phylum indicates the relative abundance in the sample. Ternary plot representing the relative occurrence of individual OTU (D), class (E), and genus (F) that are members of the most abundant phyla in samples. Species enriched in different compartments are colored by taxonomy of the most abundant phyla. The size of the circles is proportional to the mean abundance in the community

At the class level, there were 26 dominant bacterial classes (relative abundance > 1%) in the three samples (Fig. 2B). Gammaproteobacteria was the most abundant class in all samples, representing 21.6%, 22.6%, and 15.2% of GBP, LS, and SYP, respectively. The second most dominant class varied among the three samples, Alphaproteobacteria (13.5%) in SYP and Acidimicrobiia belonging to Acidobacteriota in GBP (12.3%) and LS (9.55%). Cyanobacteria comprised a relatively higher proportion in GBP than in LS and SYP, whereas the relative abundance of Bacteroidia and Bacilli in SYP was three orders of magnitude higher than those in GBP and LS.

At the genus taxonomic level, a total of 30 dominant bacterial genera (relative abundance > 1%) were observed in sediments of which accounted for more than 51.8% of classified sequences (Fig. 2C). The predominant genera observed were Woeseia and Actinomarinales, which accounted for more than 12% of the classified sequences. The relative proportions of Woeseia and Actinomarinales in LS and GBP was significantly higher than in SYP (p < 0.05). Gaiella belonged to Actinobacteria, accounting for 3.95%, 3.04%, and 2.09% in GBP, LS, and SYP, respectively. Similar to Cyanobacteria, Chloroplast had a relatively higher proportion in GBP than in LS and SYP (p < 0.05).

3.4 Correlation between microbial community and environmental parameters

Correlations between the environmental parameters and the microbial communities were analyzed by redundancy analysis (RDA) (Fig. S2). Nutrients and PTEs were significantly influential factors in explaining the total variation (p < 0.001). The random forest analysis (RF) found that DIN was the most important predictor for microbial community, with COD, Pb, and oil also highly ranked (Fig. S3), indicating that compared with PTEs, nutrient was the most contribution of environmental factor to the variations of microbial communities in the coastal tidal flat.

The relationship between the microbial community and environmental factors was examined using a heatmap analysis (Fig. 3). At the phylum level, DIN and oil were positively correlated with Actinobacteria and Planctomycetota (p < 0.001), whereas they were negatively linked with Firmicutes, Bacteroidetes, and Desulfobacterota (p < 0.001). PTEs, including Zn, Cu, and Cd, positively contributed to Chloroflexi and Myxococcota (p < 0.001) (Fig. 3A). Interestingly, MBNT15, Latescibacterota, Dadabacteria, Gemmatimonadota, Proteobacteria, and Acidobacteria were significantly positively correlated with Pb, pH, and AP (p < 0.001), whereas these dominant phyla were strongly negatively correlated with Cr and DO (p < 0.001).

Fig. 3
figure 3

Heatmap analysis of correlation between the bacterial phyla (A), classes (B), genus (C), and environmental parameters. DO, dissolved oxygen; COD, chemical oxygen demand; AP, available phosphorus; DIN, inorganic nitrogen; ***, p < 0.001

At the class level, DIN and oil contributed positively to Cyanobacteria, KD4-96, Thermoleophilia, Acidimicrobiia, and Vicinamibacteria (p < 0.001), whereas they contributed negatively to Desulfobulbia, Bacilli, Anaerolineae, Alphaproteobacteria, and Bacteroidia (p < 0.001) (Fig. 3B). DO and Cr were positively related to Desulfuromonadia and Verrucomicrobiae (p < 0.001), whereas they were negatively correlated to classes including Gemmatimonadetes, Subgroup_22, Subgroup_21, Dadabacteriia, Gammaproteobacteria, and Dehalococcoidia (p < 0.001), which showed opposite trends to the correlation between Pb, pH, and AP with those classes.

At the genus level, Woeseia, Subgroup_10, Dadabacteriales, and Anaerolineaceae were significantly positively correlated with Pb, pH, and AP (p < 0.001), but strongly negatively correlated with Cr and DO (p < 0.001) (Fig. 3C). DIN and oil contributed positively to Actinomarinales and Gaiella (p < 0.001), whereas they contributed negatively to Robiginitalea and Flavobacteriaceae (p < 0.001). Chloroplast was strongly negatively correlated with PTEs, including Zn, Cu, and Cd (p < 0.001).

3.5 Microbial processes in sediment samples

Based on the phylogenetic annotation of the predicted non-redundant ORFs, the overall taxonomic breakdown of the communities was assigned to bacteria, archaea, eukaryotes, viruses, and norank (Table 3). Domain bacteria dominated the genetic composition of the microbial communities, and matched metagenomic reads accounted for 96.34%, 96.54%, and 98.34% of all taxonomically assigned reads in GBP, LS, and SYP, respectively.

To determine the microbial contribution to specific functions, functional potentials were classified using Clusters of Orthologous Group (COG) analysis against the evolutionary genealogy of genes: Non-supervised Orthologous Groups (eggNOG) databases (Fig. S4). The total number of predicted functional genes was significantly higher in GBP and LS than in SYP (p < 0.05). The functional genes in the three sediments were more closely associated with metabolism, such as “Amino acid transport and metabolism” (9.73%) and “Energy production and conversion” (8.94%). COG classification related to “Cytoskeleton” was less abundant in LS (p < 0.05). Among functions, Proteobacteria was the most contributing phylum (Fig. 4). Actinobacteria and Thaumarchaeota contributed more to GBP than LS and SYP, while Chloroflexi and Acidobacteria contributed more to LS and SYP than GBP. The contributions of [W] extracellular structures were the phyla Proteobacteria, Bacteroidetes, and Firmicutes, while a reduced contribution to [W] extracellular structures at the phylum level from GBP to SYP belonging to Bacteroidetes and Firmicutes was observed.

Fig. 4
figure 4

Relative contribution of different taxa at phylum level to identified functional attributes of Clusters of Orthologous Group (COG) annotations in the sediment samples of Longshan Wharf (LS), Gaobeipu (GBP), and Shuiyunpu (SYP)

3.6 Functional genes involved in N- and P-cycling

Non-redundant genes focused on N- and P-cycling were searched against the Kyoto Encyclopedia of Genes and Genomes Orthologs (KO) databases. Seven and six key processes were involved in N- and P-cycling detected, respectively (Fig. S5). Genes nifD/H/K, nasA, nirA, nrtA/B/C, gltB/D, glnA, and ureB/C/A were more abundant in GBP than in LS and SYP, whereas norC, narG/H/I, napA, nrfA/H, narB, NRT, and gdhB in SYP were significantly higher than in GBP and LS (Fig. S5A). These results suggest that the processes of nitrogen fixation, assimilatory nitrate reduction (ANRA), nitrate assimilation, and organic N metabolism in GBP contributed more than those in LS and SYP, whereas denitrification and dissimilatory nitrate reduction to ammonia (DNRA) were the main N-cycling process in SYP. In the P-cycling processes, most genes related to P-cycling in SYP were distinct from those in GBP and LS (Fig. S5B). The relative abundance of regulatory and transporter genes in SYP was greater than that in GBP and LS. Moreover, the genes involved in organic P mineralization and polyphosphate degradation processes in GBP were more abundant than those in LS and SYP.

Heatmap analysis confirmed that functional genes, similar to microbial composition, are also affected by environmental properties (Fig. 5). The functional genes of nitrification, organic P mineralization, and polyphosphate degradation were positively correlated with COD, DIN, and oil contents in water. Some PTEs, such as Zn, Cu, and Cd, are related to denitrification, organic N metabolism, and polyphosphate synthesis. Whether N- or P-cycling, DO/Cr and Pb/Ph/AP showed opposite correlation trends with functional genes. Functional genes for dissimilatory nitrate reduction to ammonia (DNRA), regulatory, and transporters were positively correlated with DO and Cr, whereas functional genes for nitrification had positive correlations with Pb, pH, and AP. Therefore, the correlation analysis indicated the consistency of species and functions in coastal tidal flats.

Fig. 5
figure 5

Correlation analysis between the environmental properties and functional genes involved in N-cycling (A) and P-cycling (B) in the coastal tidal flat

3.7 Abundance and composition of antibiotic resistance genes in aquaculture-impacted tidal flat

To investigate the abundance and distribution of ARGs in tidal flat aquaculture, the top 20 ARGs categories and types were chosen by metagenome-assembly (Fig. 6). The highest abundance of multidrug resistance genes was detected in all sediment samples, followed by MLS, tetracycline, and glycopeptides (Fig. 6A). The distribution of ARGs is shown in Fig. 6B. The MacB and tetA genes were greater than the whole genes in the three sediment samples. Both msbA and novA gene abundance showed a similar pattern, which was higher in GBP than in LS and SYP. The tetA, oleC, and rpoB2 genes comprised a larger proportion of genes in GBP and SYP than in LS. Overall, ARG levels at different sample sites were not significantly different.

Fig. 6
figure 6

Heatmap analysis of the abundance among the top 20 occurring and widespread metagenome-assembled antibiotic resistance genes (ARGs) based on the categories (A) and kinds (B) in Longshan Wharf (LS), Gaobeipu (GBP), and Shuiyunpu (SYP)

3.8 Co-occurrence of microbial community and antibiotic resistance genes in tidal flat sediments

The co-occurrence patterns between ARGs and microbial communities were analyzed using network analysis (Fig. 7). At the phylum level, most ARGs, including multidrugs, tetracycline, fluoroquinolone, and sulfonamide, were positively correlated with Bacteroidetes, and negatively correlated with Nitrospirae. Proteobacteria and Thaumarchaeota had a significant positive correlation with pleuromutilin and bicyclomycin, and showed a negative correlation with phenicol and aminoglycoside, which was opposite to Chloroflexi, Acidobacteria, and Candidatus_Eisenbacteria (Fig. 7A). Meanwhile, Euryarchaeota, Firmicutes, Planctomycetes, Gemmatimonadetes, and Cyanobacteria showed similar trends in the correlation of some ARGs, while Candidatus_Dadabacteria, Actinobacteria and Verrucomicrobia showed opposite trends in the correlation with these ARGs. At the class level, Plactomycetia displayed significant positive correlations with tetA, oleC, mtrA, macB, efrA, and arlR, suggesting that although Proteobacteria was the most abundant in the community composition, Plactomycetia was the major potential bacterial host (Fig. 7B). The bacterial hosts encoding cpxA, baeS, and bcrA were opposite to those encoding novA, msbA, and TaeA. At the genus level, the zinc tolerance gene baeS had a negative contribution pattern with Woeseia and Nitrosopumilus (Fig. 7C). Gemmatimonas and Enhygromyxa showed similar trends in the correlation of tetB and evgS. Interestingly, Nitrospira and Xanthomonadales showed opposite trends in the correlation with macB, tetA, oleC, mtrA, arlR, efrA, and MexW.

Fig. 7
figure 7

Network analysis between antibiotic resistance genes (ARGs) and the dominant phyla (A), classes (B), and genus (C) of the microbial community

4 Discussion

4.1 Microbial community variation in response to nutrients availability

In this study, many common members of the sedimentary bacterial communities from the three typical coastal tidal flat zones were noted, which is consistent with previous studies (Omont et al. 2020). The dominant phyla in the coastal tidal flat were Proteobacteria, Actinobacteriota, Acidobacteriota, Chloroflexi, and Bacteroidetes. Previous studies have demonstrated that the dominance of Proteobacteria is involved in the availability of high nutrients, including the ability to degrade a large variety of organic compounds, fix atmospheric carbon, and transform nitrogen (Tomczyk-Żak and Zielenkiewicz 2015). Among Proteobacteria, Gammaproteobacteria was the most abundant and diverse class in the coastal tidal flat, which attested to the possibility of sulfidogenic contamination in the sediments of the tidal flat (Bowman et al. 2005). Alphaproteobacteria were related to photosynthesis, nitrogen fixation, ammonia oxidation, and methylotrophy (Williams et al. 2007; Dhami et al. 2018). High abundance of Alphaproteobacteria indicated that microorganisms in the coastal tidal flat depended on surface-derived carbon to maintain their growth. Compared with GBP and LS, Alphaproteobacteria had obvious advantages in SYP, suggesting that it had a high heterotrophic nitrogen fixation capacity in an environment with relatively low nutrient levels (Larouche et al. 2012).

Members of Actinobacteria have been reported to be involved in the decomposition of organic matter and carbon fixation (Gonzalez et al. 2019). Nitrogen metabolism is an important feature of the Actinobacteria, whose members participate in nitrogen fixation, dissimilatory nitrate reduction, and denitrification pathways (Zhang et al. 2019a). Actinomarinales was found to be relatively abundant in pesticide wastewater (Chen et al. 2022). In this study, a higher abundance of Actinobacteria in GBP and LS was observed than in SYP, which may be due to the accumulation of high inorganic nitrogen and oil in the former sediments. Members of Firmicutes have been reported to exist mainly in environments polluted by PTEs and organic compounds and participate in heterogenic degradation processes (Ettoumi et al. 2013; Lu et al. 2020). The relative abundances of Firmicutes and Bacilli in SYP were significantly higher than those in GBP and LS, implying high rates of accumulation and mineralization of organic matter in the sediment in SYP. Furthermore, the lower oil content in SYP confirms the decomposition role of Bacilli in PAH-contaminated sediments (Zhuang et al. 2002). Additionally, Bacteroidetes is considered to be an abundant phylum of sediments (Fan et al. 2018) and mainly plays a role in the degradation of organic particles, especially polysaccharides and proteins (Church 2008; Thomas et al. 2011). The reduction of oils and the increase in dissolved oxygen in SYP may be attributed to the higher abundance of Bacteroidetes. Cyanobacteria are mainly involved in the process of nitrogen fixation, nitrification, and nitrate assimilation in sediments, whose members are autotrophic by fixing nitrogen in the atmosphere and using inorganic nitrogen (ammonium, nitrate, and nitrite) (Zhao et al. 2016; Herrero and Flores 2019). The growth of Cyanobacteria in GBP was nearly 6–9 times higher than in LS and SYP, indicating nitrogen enrichment in GBP sediments. Thus, diversity studies have confirmed that the effects of available nutrients and PTEs may prompt the selection of dominant microbial members in the sediments of coastal tidal flats, which subsequently changes the diversity and composition of phylogenetic groups.

4.2 Nutrients, PTEs, and ARGs drive distribution of microbial communities

Sediments provide a series of niches for nutrient-cycling microbes, and the diversity and distribution of functional groups are the basis for the transformation of nutrient processes. The coastal tidal flat may have deposited amounts of nutrients due to the large amount of land industry and agriculture, domestic wastewater, and pollutant excretion, containing more than 80–88%, 52–95%, and 85% of residual carbon, nitrogen, and phosphorus, respectively (Xia et al. 2004; Yang et al. 2004). Based on physicochemical characteristics, the concentrations of COD, DIN, AP, and oil in the three sediments were clearly beyond the scope of class I water, and some exceeded class IV water, suggesting eutrophication of the coastal tidal flat in this study (Table 1). This was also consistent with the abundant metabolism of the functional potentials in the three tidal flat zones, such as [E] amino acids, [P] inorganic ions, and [I] lipid transport and metabolism (Fig. S4). Notably, abundant and diverse functional genes only reflect the resilience of microbial communities in the nutrient cycling process to environmental stresses, and transcriptomic or proteomic analyses are needed to demonstrate the expression of functional genes.

PTEs have attracted extensive attention owing to their toxicity, persistence, and bioaccumulation in ecosystems (Gan et al. 2017). The response of microbial communities to PTEs is mainly related to the toxicity of PTEs (Du et al. 2017). Previous studies comparing the toxicity of various metals to soil microbial activity and communities showed that Cr exhibited the strongest toxicity to microbes, followed by Pb, As, Co, Zn, Cd, and Cu (Wang et al. 2010). In this study, the concentrations of Cu, Pb, Cd, and Zn in the coastal tidal flat were uniformly classified as class I, whereas the concentration of Cr was classified as class II (Table 1), indicating that the coastal tidal flat was mainly polluted by Cr. This was in line with a previous study in which Zhejiang led to greatest discharge of Cr via wastewater discharge in nearshore sediments in China (Liu and Yu 2022). The toxicity of metals changes the microbial community structure through the interaction of metals with proteins and the inhibition of metabolic processes and decreases the diversity and activity of populations through their environmental stress (Gasic and Korban 2006; Khan et al. 2007). Cr was positively correlated with Desulfuromonadia and Verrucomicrobiae, whereas it inhibited the growth of Gemmatimonadetes, Subgroup_22, Subgroup_21, Dadabacteriia, Gammaproteobacteria, and Dehalococcoidia. In particular, Cr and Pb had opposite effects on microbial community composition. Desulfuromonadia and Verrucomicrobia play key roles in sulfur reduction and anaerobic fermentation of carbohydrates in sediments (Elshahed et al. 2007; Aoki et al. 2014). Gammaproteobacteria was the predominant bacterial class in the three sediments and was reported to be dominant in ecosystems with high nutrient pollution (Nogales et al. 2011; Custodio et al. 2022). Members of Gammaproteobacteria are important in the degradation of organic pollutants and the cycle of sulfur compounds (Quero et al. 2015). Recent surveys of 16S rRNA gene sequences have revealed that Woeseiales is a globally prominent group of bacteria in coastal sediments (Dyksma et al. 2016). Members of Woeseiales have the potential to facultative chemolithoautotrophy driven by the oxidation of hydrogen and inorganic sulfur compounds (Baker et al. 2015; Mußmann et al. 2017; Hoffmann et al. 2020). Dehalococodia is the only class of Chloroflexi known to participate in the degradation of organic halides. Previous studies have found that microorganisms may generate resistance and enable them to survive by increasing the transport and excretion of Cr ions (Li et al. 2020), and the activity of coenzyme F420, which is involved in methanogenesis, is affected by Cr concentration during anaerobic fermentation (Zhang et al. 2019b). Microbially mediated sulfate and metal reductions are the main drivers of the nutrient cycle in anaerobic environments (Hori et al. 2015; Otwell et al. 2016). Some functional microorganisms involved in sulfate and PTE reduction can reduce Cr (VI) to its less toxic and soluble form (Cr (III)) (Somenahally et al. 2013; Yu et al. 2016). The significant correlation between Cr and the dominant classes further indicates that these sediment microbial communities may have the ability to reduce Cr (VI).

Antibiotic analysis showed high abundances of multidrug, MLS, tetracycline, and glycopeptide in the sediment samples. MacB and tetA showed a similar tendency for MLS and tetracycline residues, suggesting that antibiotics may impose selective pressure on ARGs (Guan et al. 2019). Network analysis showed that the concentrations of multidrugs, MLS, and tetracycline in sediment samples were positively correlated with the abundance of Bacteroides, and negatively correlated with Nitrospirae. Actinobacteria and Verrucomicrobia were positively correlated with glycopeptides and aminocoumarins. The different responses of dominant microbes to antibiotic contamination may be attributed to the selective pressure of antibiotics on bacterial communities. Previous studies have shown that ARG transfer between bacterial species mainly occurs among Proteobacteria, Firmicutes, Bacteroidetes, and Actinobacteria (Hu et al. 2016). Similarly, the relative abundance of tetA, oleC, mtrA, macB, efrA, and arlR in this study displayed significant positive correlations with Planctomycetia and negative correlations with Bacilli and Nitrospira, and novA, msbA, and TaeA were significantly positively correlated with Gammaproteobacteria and Alphaproteobacteria. Furthermore, ARGs are generally transferred and disseminated through mobile genetic elements (Gillings et al. 2015). However, the intI1 gene was not detected in the coastal tidal flat. This result implies that the integron was not the main mechanism of ARG propagation in the tidal flat (Zhao et al. 2017) and further research on the relationship between horizontal gene transfer vehicles and ARGs is needed.

5 Conclusions

Our results demonstrated that the long-term accumulation of nutrients and PTE contaminants could jointly contribute to the microbial communities in sediments impacted by the coastal tidal flat. The effects of available nutrients and PTEs may prompt the selection of dominant microbial members in the sediments of tidal flat zones, subsequently changing the diversity and composition of the phylogenetic groups. The abundance and diversity of functional genes reflect the resilience of microbial communities during the nutrient cycling process with environmental stresses. Furthermore, the emergence and dissemination of ARGs have been detected in sediment. However, because the integron was not the main mechanism of ARG propagation, aquaculture activities were less likely to cause serious ARG contamination in the tidal flat under the current conditions.