In conclusion, we identified for the first time four hub genes (TLR2, RETN, HP, and IL7R), which may be diagnostic biomarkers for MDD. Here, IL7R is linked to major depressive disorder.