In our results, CD4+ T cells and macrophages might be poor prognostic factors for STAD, while NK and B cells might be favorable prognostic factors. Here, CD4 is linked to gastric adenocarcinoma.