By analyzing the correlation between different types of immune cell infiltration and overall survival in breast cancer patients using bioinformatics methods, it was found that M1 macrophages and CD8+ T cells positively correlated with the 5-year survival rate of breast cancer susceptibility gene (BRCA) mutation patients, while M2 macrophages negatively correlated with this metric. Here, CD8A is linked to breast cancer.