In general, including the HNF4A marker positively increased the evaluated indicators and enhanced the discrimination of primary gastric cancer and metastatic gastric cancer. Here, HNF4A is linked to gastric cancer.