This repository contains code and data used and created in support of my project "Integrating multimodal and multiscale connectivity blueprints of the human cerebral cortex in health and disease", now published in PLOS Biology. All code was written in Python.
All connectivity modes are available in three parcellation resolutions (Cammoun-033/Desikan-Killiany, Schaefer-100 (7 Networks order), Schaefer-400 (7 Networks order)) - see data.
The code folder contains all the code used to run the analyses and generate the figures. This folder contains the following files:
- 01_show_networks.py corresponds to Figure 1 and plots each connectivity mode as well as some fundamental organizational properties (relatoinship with distance, structure).
- 02_richlinks.py corresponds to Figure 2 and compares connectivity modes to one another with respect to (1) distance and (2) structure, especially the rich club.
- 03_hubs.py corresponds to Figure 3 and looks at the strongest edges and hubs of each network individually as well as across all networks.
- 04_gradients_communities.py corresponds to Figure 4 and looks at the first principal component and community decomposition (Louvain algorithm) of each network.
- 05_disease_exposure.py corresponds to Figure 5 and uses ENIGMA data to study how connectivity modes may shape cortical abnormalities. ENIGMA profiles were fetched from hansen_crossdisorder_vulnerability which uses the
enigmatoolbox
. - 06_fusion.py corresponds to Figure 6 and fuses all connectivity modes into a single network. I use Similarity Network Fusion to pull this off (code from
snfpy
). - make_networks.py shows how each connectiviy mode was made and saved.
- scpt_community_detection.py is the script I used to run and parallelize the Louvain algorithm.
The data folder contains the processed data I used to run the analyses. All seven connectivity modes in region-by-region format are available in three parcellation resolutions, as both .npy
and .csv
files.
These can be found in the folder corresponding to each parcellation atlas, e.g. Cammoun033 (68 cortical regions, identical to the Desikan-Killiany atlas but ordered differently; this is the version used in Figure 5), Schaefer100 (100 cortical regions, following the 7Networks
order), and Schaefer400 (400 cortical regions, following the 7Networks
order; this is the version used in the main analyses).
There are some extra files in there, used in make_networks.py or elsewhere.
Parcellation information can be found in the parcellation_files folder.
The results folder contains outputs from my scripts (if they are small enough to put up on GitHub).
The manuscript folder contains the manuscript draft.