In the univariate generalized estimating equations analysis, levels of albumin, log‐transformed CRP, NLR, and PLR were significantly associated with depression in pancreatic cancer patients (p < 0.05). The gene discussed is ALB; the disease is major depressive disorder.