TLR4 and RB1 were identified as core genes, showing elevated expression and strong diagnostic potential in depression. Here, RB1 is linked to major depressive disorder.