In summary, we used a publicly available GEO dataset to perform WGCNA of immune cell infiltration in the context of diabetes and systematically identified a module related to clinical features and four hub genes (CSF1R, H2AFV, LCK, and TLR9) that may be associated with T2DM. Here, LCK is linked to diabetes mellitus.