Our results suggest that RNF180 and SFRP2 could serve as diagnostic biomarkers for GC when using the RF model. Here, SFRP2 is linked to gastric cancer.