These results indicated that TBX21, PRF1, and GNLY might be key molecules that regulate the function of CD8+ TSCM cells in the context of depression. This evidence concerns the gene GNLY and major depressive disorder.