The metabolomics raw data generated by UPLC-MS/MS were processed with the open-source software MZmine v2.32 (MZmine Development Team, USA) to perform targeted features detection, deisotoping, alignment, gap filling, and dereplication. Chi-square test was performed to compare the categoric data between patients with PDR and controls. Mann–Whitney U test was used to compare the level of fasting blood glucose (FBG), creatinine, urea, total cholesterol, and triglyceride. A two-tailed t-test was used for the comparation of other clinical data. Multivariate statistical methods, including principal component analysis (PCA) and orthogonal projection to latent structure-discriminant analysis (OPLS-DA), were performed using SIMCA-P version 14.0 (Umetrics AB, Umea, Sweden). To reduce the overall false discovery rate (FDR), the P value was adjusted for multiple testing. Heatmaps, Spearman rank correlation analysis, and pathway analysis were conducted using MetaboAnalyst5.0 (Xia Lab, McGill University, Montreal, Canada). Missing values of clinical and demographic characteristics were estimated using the expectation maximization method. Multivariate analysis was used for adjusting confounding factors. Statistical analyses were performed using SPSS 18.0 (IBM Corp., Armonk, NY, USA).