Collectively, this study demonstrated that the metabolic gene PSPH could affect the density of immune cells in patients with gastric cancer, and it could be an important clue for deciding treatment regimens. Here, PSPH is linked to gastric cancer.