Positive correlations of CD8+ cell number and CCL21 mRNA expression with CDK12 were identified, which indicated the potential mechanisms of CDK12 regulating biological behavior of gastric cancer. Here, CD8A is linked to gastric cancer.