Based on the above analysis, 10 hub genes were identified in this study, namely SMC6, CDC27, CDC7, RACGAP1, SMC4, NCF4, NCF1, NCF2, SELPLG and CFP. ROC curve analysis showed these 10 hub genes had good diagnostic values for NSCLC and T2DM (0.9 > AUC > 0.8). The gene discussed is SMC6; the disease is type 2 diabetes mellitus.