The results in our study demonstrated that the higher TMS risk was positively correlated with the resting memory CD4+ T cells and was negatively correlated with M0 macrophages, which also showed that enrichment of resting memory CD4+ T cells and lack of M0 macrophages had better prognoses in BC. This evidence concerns the gene CD4 and breast cancer.