Transcriptomic analysis of retrospective data from patients with GC identified an eight-gene CD8+ T cell signature predictive of clinical outcome. Here, CD8A is linked to gastric cancer.