Both in univariate and multivariable unconditional logistic regression model, sex, age, and AFP level were correlated with HBsAg in gastric cancer. The gene discussed is AFP; the disease is gastric cancer.