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. Here, TMEM106B is linked to depressive symptom measurement.