In this study, we screened out a set of genes that significantly affect the response of gastric cancer to PD-1 inhibitor by WGCNA and lasso regression for the first time. Here, PDCD1 is linked to gastric cancer.