Our transcriptomic and bioinformatic analyses identify TP53, NR3C1, and NFκB as the most important upstream regulators predicting depression in obese patients. Here, TP53 is linked to depressive disorder.