{"id":13689118,"url":"https://github.com/zijin-gu/scfc-coupling","last_synced_at":"2025-05-01T23:32:19.811Z","repository":{"id":47721470,"uuid":"308667090","full_name":"zijin-gu/scfc-coupling","owner":"zijin-gu","description":"Code for paper Heritability and interindividual variability of regional structure-function coupling.","archived":false,"fork":false,"pushed_at":"2023-01-19T15:12:53.000Z","size":51,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-03T15:15:25.409Z","etag":null,"topics":["glm","matlab","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zijin-gu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T15:15:19.000Z","updated_at":"2024-06-07T11:31:48.000Z","dependencies_parsed_at":"2023-02-01T07:16:14.028Z","dependency_job_id":null,"html_url":"https://github.com/zijin-gu/scfc-coupling","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijin-gu%2Fscfc-coupling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijin-gu%2Fscfc-coupling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijin-gu%2Fscfc-coupling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zijin-gu%2Fscfc-coupling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zijin-gu","download_url":"https://codeload.github.com/zijin-gu/scfc-coupling/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224282128,"owners_count":17285776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glm","matlab","python"],"created_at":"2024-08-02T15:01:34.245Z","updated_at":"2024-11-12T13:30:48.410Z","avatar_url":"https://github.com/zijin-gu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SC-FC coupling\n\nThis is the analysis scripts of SC-FC coupling for paper [Heritability and interindividual variability of regional structure-function coupling](https://www.nature.com/articles/s41467-021-25184-4).\nAll data is created randomly for demonstration purpose.\n\n## Requirements\n1) Install Python by following instructions here: https://www.python.org/downloads/\n2) Install Matlab by following instructions here: https://www.mathworks.com/help/install/install-products.html\n3) `pip -r install requirements.txt`\n\n## Steps\n1) At your terminal, run `glm_demo.py` to get the SC-FC coupling and GLM results saved in data directory and glm_res directory.\n2) In your MATLAB, run `herit_demo.m `to get the heritability estimates of some random phenotypes you created.\n\n## Expected output\n1) Under the data directory, you will have your self-generated SC, FC and SC-FC coupling data for the number of subjects you specify. Also there will be covariates data (age, sex, cognition, ICV and motion) if you do GLM analysis.\n2) Under the glm_res directory, you will have a series of txt files named  `GLMvar?prec/corr_all/sigroi.txt` which contains the -log(p) values for different covariates (index by number ?). `allroi` files contains -log(p) value for all the regions while `sigroi` files only contains regions that are significant with other regions masked as 0. There is another mat file named GLM_'corr/prec'_confint.mat which contains the confident interval for the GLM results.\nUnder the herit_res directory, you will have a file named `herit_cp.mat` which is the heritability estimates using the LME model.\n\n### References\nGu, Z., Jamison, K. W., Sabuncu, M. R., \u0026 Kuceyeski, A. (2021). Heritability and interindividual variability of regional structure-function coupling. Nature Communications, 12(1), 1-12.\n\nGe, T., Holmes, A. J., Buckner, R. L., Smoller, J. W., \u0026 Sabuncu, M. R. (2017). Heritability analysis with repeat measurements and its application to resting-state functional connectivity. Proceedings of the National Academy of Sciences, 114(21), 5521-5526.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzijin-gu%2Fscfc-coupling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzijin-gu%2Fscfc-coupling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzijin-gu%2Fscfc-coupling/lists"}