R software was utilized throughout the study: Firstly, the CD8+T-cell related gene (DECD8+TRGs) present between non-proliferative diabetic retinopathy (NPDR) and DME was mined via difference and correlation analyses. This evidence concerns the gene CD8A and non-proliferative diabetic retinopathy.