In conclusion, our study identified two genes showing transcriptomic alterations in depression subtypes associated with TRD: TMEM106B in anxious MDD and ATP2A1 in MDD with weight gain; both genes had previous evidence of involvement in psychiatric traits and also metabolic traits in the case of ATP2A1. This evidence concerns the gene TMEM106B and major depressive disorder.