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