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