Heart failure comorbid with depression may be associated with five hub genes, including Stat4, Cd83, Cx3cr1, Col1a2, and Sh2d1b. Here, STAT4 is linked to major depressive disorder.