We identified 12 driver genes potentially involved in the gastritis-to-cancer transformation, with CHI3L1, MMP12, CXCL6, IDO1, and CCL20 emerging as the top five genes via a early gastric cancer diagnostic model. This evidence concerns the gene IDO1 and gastritis.