
%   ISV: Code for intersubject variability in functional connectivity
%
%   Note: FC matrix should be prepared as a .mat format file; detailed
%   parameter you can get from isv_parameters_*.mat
%
%   Reference: Li, L., Wei, Y., Zhang, J., Ma, J., Yi, Y., Gu, Y., ... & Dai, Z. (2021). 
%   Gene Expression Associated with Individual Variability in Intrinsic Functional Connectivity. bioRxiv.
%
%   Liangfang Li, Jinbo Zhang, Sun Yat-sen University, 2020-2021

%   The method of calculating the ISV was refered to Mueller et al. (2013).Reference: Mueller, S., Wang, D., Fox, M.D., Yeo, B.T.T., Sepulcre, J., Sabuncu, M.R., Shafee, R., Lu, J., Liu, H., 2013. Individual Variability in Functional Connectivity Architecture of the Human Brain. Neuron 77, 586–595. https://doi.org/10.1016/j.neuron.2012.12.028
%   The processing of gene expression data was refered to Wei et al. (2019) and Romme et al. (2017).Reference: Wei, Y., de Lange, S.C., Scholtens, L.H., Watanabe, K., Ardesch, D.J., Jansen, P.R., Savage, J.E., Li, L., Preuss, T.M., Rilling, J.K., Posthuma, D., van den Heuvel, M.P., 2019. Genetic mapping and evolutionary analysis of human-expanded cognitive networks. Nat. Commun. 10, 4839. https://doi.org/10.1038/s41467-019-12764-8; Romme, I.A., de Reus, M.A., Ophoff, R.A., Kahn, R.S., van den Heuvel, M.P., 2017. Connectome disconnectivity and cortical gene expression in patients with schizophrenia. Biol. Psychiatry 81, 495–502. https://doi.org/10.1016/j.biopsych.2016.07.012
%   The PLS regression was conducted by employing the code shared by Whitaker et al. (2016). Reference: Whitaker, K.J., Vértes, P.E., Romero-Garcia, R., Váša, F., Moutoussis, M., Prabhu, G., Weiskopf, N., Callaghan, M.F., Wagstyl, K., Rittman, T., Tait, R., Ooi, C., Suckling, J., Inkster, B., Fonagy, P., Dolan, R.J., Jones, P.B., Goodyer, I.M., NSPN Consortium, Bullmore, E.T., 2016. Adolescence is associated with genomically patterned consolidation of the hubs of the human brain connectome. Proc. Natl. Acad. Sci. U. S. A. 113, 9105–9110. https://doi.org/10.1073/pnas.1601745113
%   The mediation analysis was performed using PROCESS macro in SPSS (Hayes, 2017). Reference: Hayes, A.F., 2017. Introduction to mediation, moderation, and conditional process analysis: A regression-based approach. Guilford publications.