$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Baseline demographic and clinical characteristics of the initially screened clinical cohort are presented in Table 1. A representative subgroup consisting of 12 newly diagnosed T2DM and 12 NM participants was subsequently selected for 16S rDNA sequencing and downstream microbiome analyses.
Sequencing depth evaluation
The Shannon index was calculated, and the rarefaction curve was plotted to assess the sequencing depth. A total of 1,064,930 sequences were detected across all samples, covering 4,770 ASVs, indicating high community richness. All the curves were flattened, suggesting that the sequencing data volume was adequate and reflected the major bacterial communities present in the samples (Figure 1).
Microbial (alpha) diversity analysis
Alpha diversity of the gut microbiota was evaluated using the Chao, Ace, Shannon, Simpson, and Coverage indices. These indices were expressed as mean ± standard deviation. Data normality was assessed using the Shapiro-Wilk test. Normally distributed variables were compared between the DM and NM groups using Student’s t-tests, whereas non-normally distributed variables were analyzed using Wilcoxon rank-sum tests (Table 2). The data indicated that the Chao, Ace, and Shannon indices were lower in the DM group than in the NM group, whereas the Simpson index was higher, suggesting significantly reduced gut microbiota diversity in DM patients (p. < 0.05). The Coverage indices for both groups were > 0.999, indicating that the coverage rate for each sample was > 99.90%, reflecting the true microbial communities. Coverage indices were not subjected to between-group hypothesis testing because all values exceeded 0.999.
Community composition analysis
The ASV species classification method was employed to denoise and transform the acquired raw sequences, which were then compared with the corresponding species annotation database [annotation method: classify-sklearn (Naive Bayes); database: silva138/16s_bacteria]. This provided the composition and abundance data of the microbial communities in the samples, which were plotted as Pan/Core curves and Venn diagrams (Figures 2 and 3). Community composition was analyzed at the phylum, family, and genus levels, with histograms plotted for multiple samples.
ASV distribution: The pan/core species analysis revealed that the microbial richness at the ASV level was higher in the NM group than in the DM group (Figure 2). Venn diagram analysis indicated that both groups shared 394 common ASVs, while 2928 were specific to the NM group and 1448 were specific to the DM group (Figure 3), suggesting that specific ASVs were significantly higher in the NM group.
Distribution of microbial community at different levels: At the phylum level, 13 phyla were detected across the 24 samples (Table 3). Chloroflexi and Campilobacterota were only detected in the NM samples, while Gemmatimonadota was only identified in the DM samples. Furthermore, Firmicutes, Proteobacteria, Bacteroidota, and Actinobacteriota were observed in all the samples (Figure 4). Figure 5 indicates the hierarchical clustering of the distance matrix. The NM and DM samples were divided into two groups (A and B), where Group B included both NM and DM samples, and the remaining DM samples were clustered in Group A. The community bar chart (Figure 6) indicated that the most dominant phylum in Group A was Proteobacteria, while in Group B, it was Firmicutes, except for the sample DM-9, which had 46.07% Proteobacteria and 40.81% Firmicutes. Moreover, in the NM group, Firmicutes was the most dominant phylum, followed by Bacteroidota, whereas in the DM group, Proteobacteria and Firmicutes were the dominant and subdominant phyla, respectively.
At the family and genus levels, a total of 111 families and 306 genera were detected across all 24 samples. Wilcoxon rank-sum tests revealed that Escherichia, Shigella, and Blautia showed the greatest differences between the two groups (Figure 7). Moreover, LEfSe analysis indicated that classified (Escherichia and Shigella) and unclassified Enterobacteriaceae were predominant in the DM group, while Lachnospiraceae (Blautia) and Propionibacteriaceae. were predominant in the NM group (Figure 8).
Intergroup (beta) diversity analysis
Non-parametric analysis of similarities (ANOSIM) was performed to determine the significance of group differentiation (Table 4). The data revealed R = 0.6836, p = 0.001, indicating that the intergroup differences were more significant than the intragroup differences, thus confirming the significance of the grouping. Furthermore, the principal coordinates analysis (PCoA) was carried out to examine the gut microbiota's community structure and its similarities or differences among the samples (Figure 9). The results revealed significant variabilities between the gut microbiota of the NM and DM groups.
PICRUSt functional prediction
PICRUSt functional prediction revealed that the DM group had significantly reduced gut microbiota abundance in the non-oxidative branch of the pentose phosphate pathway (NONOXIPENT-PWY), the pathway involved in isobutanol biosynthesis (PWY-7111), and the L-isoleucine biosynthesis pathway (PWY-5101) (Figure 10).
Mendelian randomization analysis
This study compared the results of Mendelian randomization analysis with the bioinformatics findings from clinical samples, focusing on three dominant phyla: Firmicutes, Bacteroidota, and Proteobacteria. The taxonomic trees of each microbial classification were examined using the Taxonomy Browser tool from NCBI (https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi). The data identified 2 families, 2 genera, and 1 species in Firmicutes, 2 genera and 2 species in Bacteroidota, and 1 order, 1 family, and 2 genera in Proteobacteria (Tables 5–7). Furthermore, no horizontal pleiotropy was observed among the three phyla. Although there was some heterogeneity in Firmicutes, the random-effects model (Inverse Variance Weighted, IVW) minimized its impact on the analysis. Therefore, the conclusions were primarily based on the IVW method. Within the phyla Firmicutes, 2 family-level taxa were negatively associated with T2DM, where Paenibacillales showed heterogeneity in both the MR Egger and IVW methods. At the genus level, T2DM was negatively associated with Faecalicoccus, whereas it was positively associated with Kineothrix. At the species level, T2DM was positively associated with Clostridium tertium. Within Bacteroidota, only Bacteroides A plebeius at the species level was positively associated with T2DM, while the remaining taxa indicated a negative association. In addition, all the taxa in Proteobacteria were positively associated with T2DM.
DATA AVAILABILITY:
The raw sequencing data, processed ASV tables, statistical analysis outputs, source data used for figure generation, and related supplementary materials supporting the findings of this study have been provided as supplementary raw data files during submission. Publicly available datasets used for Mendelian randomization analysis were obtained from the NHGRI-EBI GWAS Catalog and the European Genome-Phenome Archive as described in the Methods section.

Figure 1: Rarefaction curves based on the Shannon index for the DM group and NM group. Each curve represents a single stool sample, with 12 samples per group. The x-axis shows the number of sequencing reads randomly sampled, and the y-axis shows the Shannon diversity index. The curves approached a plateau, indicating that the sequencing depth was sufficient to capture the major microbial diversity in the samples. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.

Figure 2: Pan and core ASV analyses in the DM group and NM group. (A) Pan analysis showing the cumulative number of total ASVs detected with increasing sample number. (B) Core analysis showing the number of shared ASVs retained as the sample size increases. Each group included 12 stool samples. Curves were generated from ASV abundance data and represent group-level richness trends rather than statistical comparisons. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched; ASV = amplicon sequence variant. Please click here to view a larger version of this figure.

Figure 3: Venn diagram showing shared and group-specific ASVs between the DM group and NM group. Each group included 12 stool samples. The overlapping region represents ASVs shared by both groups, whereas non-overlapping regions represent ASVs unique to each group. A total of 394 ASVs were shared, with 1,448 ASVs unique to the DM group and 2,928 ASVs unique to the NM group. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched; ASV = amplicon sequence variant. Please click here to view a larger version of this figure.

Figure 4: Overall phylum-level composition of the gut microbiota across all 24 stool samples. The pie chart shows the relative abundance of dominant bacterial phyla, expressed as percentages of total annotated sequences. Firmicutes, Proteobacteria, Bacteroidota, and Actinobacteriota were the main phyla detected. Please click here to view a larger version of this figure.

Figure 5: Hierarchical clustering of all stool samples based on microbial community dissimilarity. Each terminal branch represents one individual sample, including 12 DM samples and 12 NM samples. Branch length indicates between-sample dissimilarity in microbial composition. Samples were clustered according to ASV-level community distance. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched; ASV = amplicon sequence variant. Please click here to view a larger version of this figure.

Figure 6: Phylum-level relative abundance profiles for individual stool samples. Each stacked bar represents one sample, including 12 DM samples and 12 NM samples. Bar segments indicate the relative abundance of each bacterial phylum within a sample. Values represent individual-sample proportions rather than group summaries. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.

Figure 7: Linear discriminant analysis effect size (LEfSe) analysis of taxa discriminating the DM group from the NM group. Each group included 12 stool samples. Bars show taxa with differential abundance between groups, and the x-axis shows the linear discriminant analysis (LDA) score on a log10 scale. Red bars indicate taxa enriched in the DM group, and blue bars indicate taxa enriched in the NM group. LEfSe analysis was used to identify taxa contributing most strongly to group separation. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.

Figure 8: Differential abundance comparison of selected genera between the DM group and the NM group. Each group included 12 stool samples. Bars on the left show the relative abundance proportions of selected taxa in each group, and points with 95% confidence intervals on the right show the between-group differences in proportions. Differences were evaluated using Wilcoxon rank-sum tests. Asterisks indicate statistical significance, with *p < 0.05, **p < 0.01, and ***p. < 0.001. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.

Figure 9: Principal coordinates analysis (PCoA) of ASV-level microbial community structure in the DM group and NM group. Each point represents a single stool sample, with 12 per group. The x- and y-axes represent PC1 and PC2, respectively, explaining 23.83% and 11.13% of the total variation. Group separation was tested using analysis of similarities (ANOSIM), yielding R = 0.6836 and p. = 0.001. Abbreviations: ANOSIM = analysis of similarities; PC1/2 = principal coordinates; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.

Figure 10: Heatmap of predicted microbial functional pathway abundance based on PICRUSt analysis. Columns represent individual stool samples, including 12 DM samples and 12 NM samples, and rows represent MetaCyc pathways. The color scale indicates predicted pathway abundance, with higher and lower values shown by the heatmap gradient. Between-group differences in predicted pathway abundance were evaluated using Wilcoxon rank-sum tests; pathways shown are those with differential abundance between groups. Abbreviations: PICRUSt = phylogenetic investigation of communities by reconstruction of unobserved states; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to view a larger version of this figure.
Table 1: Baseline demographics. Baseline demographic and clinical characteristics of the initially screened DM and NM cohorts. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to download Table 6.
Table 2: Comparison of gut microbiota alpha diversity between the DM and NM groups. The Chao index reflects the richness of the microbial community. The higher the Chao index, the richer the microbial community. The Shannon and Simpson indices were employed to analyze the community's diversity. The higher the Shannon index, the greater the microbial diversity, whereas a higher Simpson index reduces it. Abbreviations; DM = diabetes mellitus; NM = non-diabetic matched. Please click here to download Table 6.
Table 3: Structural analysis at the phylum level. Phyla detected in all samples are listed under "Same Bacteria", while those not detected in all samples are listed under "Different Bacteria". Please click here to download Table 6.
Table 4: Statistical table for the intergroup difference test. In ANOSIM, the statistic is the R-value, which theoretically ranges from -1 to +1. In practice, R values generally range from 0 to 1. The closer the R-value is to 1, the greater the intergroup differences compared to intragroup differences. Smaller R values indicate no significant intergroup differences. Abbreviations; ANOSIM = analysis of similarities.< Please click here to download Table 6./p>
Table 5: Association between Firmicutes and T2DM. Significant and nominally significant Mendelian randomization estimates of the association between Firmicutes and T2DM. Please click here to download Table 5.
Table 6: Association between Bacteroidetes and T2DM. Significant and nominally significant Mendelian randomization estimates of the association between Bacteroidetes and T2DM. Please click here to download Table 6.
Table 7: Association between proteobacteria and T2DM. Significant and nominally significant Mendelian randomization estimates of the association between proteobacteria and T2DM. Please click here to download Table 7.