High risk scores were characterized by increased infiltration levels of B cells naïve, T cells CD4 memory resting, monocytes, and macrophages M2, while low risk scores had the characteristics of increased infiltration levels of T cells CD8, T cells CD4 memory activated, T cells follicular helper, and macrophages M1 in gastric cancer tissues. Here, CD8A is linked to gastric cancer.