Both immune-related and pro-cancer gene sets were enriched in both triple-negative breast cancer (TNBC) and ER-positive/HER2-negative breast cancer with a high allograft rejection score. Here, ESR1 is linked to triple-negative breast carcinoma.