This study provides an understanding of dynamic and spatially heterogeneous PD-L1 expression in gastric cancer. Here, CD274 is linked to gastric cancer.