The mediation analysis revealed that brain connectivity partially mediated the association between TNF-α PGS and processing speed in acute MDD. The gene discussed is TNF; the disease is major depressive disorder.