Further, 17 hub genes were identified, and our findings demonstrated that BGN, COMP, COL5A2, and SPARC might be important diagnostic and prognostic indicators of GC, which were also correlated with immune cell infiltration, tumor mutation burden (TMB), microsatellite instability (MSI), and sensitivity of therapeutic drugs. This evidence concerns the gene COMP and gastric cancer.