I forked some visualization functions from Network Level Analysis (NLA) Toolbox (Beta version) and adapted them to my use with examples. NLA is an extensible MATLAB-based software package for the analysis of behavioral associations with brain connectivity data. NLA utilizes a statistical approach, variously known as 'pathway analysis,' 'over-representation analysis,' or 'enrichment analysis,' which was first used to describe behavioral or clinical associations in genome-wide association studies.
All visualizations are done in the fsLR 32k surface (Van Essen et al. 2012 Cerebral Cortex). For transitions across spaces, please try the neuromaps toolbox.
Example 1 This example concerns the plot of alternative brain system/network sorting orders for an existing set of node/region of interest (ROI) definitions. It calculates and displays the average silhouette index at the bottom to show the cluster quality of the existing system/network definitions provided by the user.
Example 2 This example demonstrates how to take a given surface parcel assignment (see Example 4) in the cortex in the fsLR 32k space and plot the color assignment with a color bar. The colors indicate parcel homogeneity, variability, correlation strength with behavioral measurements, etc.
Example 3 This example plots network assignments spatially on the brain using a file that stores the colormap and network assignments from the NLA toolbox. See example 6 if the network assignments were in a vector form from a .txt/.mat file.
Example 4 This example demonstrates creating a parcel file (the assignment of each cortical vertex) from a CIFTI file with just the cortical vertices. This is needed for Examples 2 and 3.
Example 5 This example shows how to plot continuous values on the cortex, such as the principal gradient (Margulies et al. 2016 PNAS), local connectivity gradient (Gordon et al. 2016 Cerebral Cortex), cortical thickness, myelin, etc.
Example 6 Similar to Example 3, but in this example, the network assignment is loaded from any user-provided .txt/.mat file (e.g., the output of community detection).
Example 7 This example demonstrates how to plot a subsection of edges on the brain.