Using the transcriptome data of gastric cancer in our study, relevant proteins of mTOR signaling pathway were screened to identify key genes by four machine learning models, and the models were validated in external datasets. Here, MTOR is linked to gastric cancer.