Four upregulated common genes (DHX15, USP14, COPS3, TYK2) and one downregulated common feature gene (RIOK2) were identified and showed good diagnostic accuracy for T2DM and COVID-19. Here, RIOK2 is linked to type 2 diabetes mellitus.