Below is the MATLAB code for GLMs and for resting-state connectivity calculations:
Lesion network localization of depression in multiple sclerosis (Nature Mental Health, 2023)
MS depression circuit is here: https://neurovault.org/images/787866/ Below is the MATLAB code for spatial permutation testing:
Brain stimulation and brain lesions converge on common causal circuits in neuropsychiatric disease (Nature Human Behaviour, 2021)
Convergent 14-dataset depression circuit is here: https://neurovault.org/images/787859/ Below is the MATLAB code for spatial permutation testing:
Distinct symptom-specific targets for circuit-based neuromodulation (Am J Psychiatry, 2020)
Dysphoric-anxiosomatic targeting atlas is available here: https://neurovault.org/images/787858/ Below is the MATLAB code for symptom clustering: