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). This evidence concerns the gene NCF4 and type 2 diabetes mellitus.