RecruitingPhase 3Device studyBiomarker-guided rTMS for Treatment Resistant DepressionRepetitive transcranial magnetic stimulation (rTMS) is a treatment for depression. The investigators are continuing to learn how to optimize outcomes from rTMS treatment. The purpose of this research project is to use brain network connectivity patterns as measured by resting state functional magnetic resonance imaging (fMRI) to confirm a way to optimize the use of rTMS to treat depression. In addition, the study aims to gain a better understanding of how rTMS influences brain networks.