{"version":"1.0","type":"rich","title":"Gist 441d9e9e69dfd1c303a0c0b76719a9cb","description":"This example visualizes brain connectivity by computing a streamline connectivity matrix from diffusion tractography data. The notebook uses DIPY’s `utils.connectivity_matrix` to map streamlines to cortical and deep gray matter regions, then writes the resulting metric matrices to CSV files. It loads track-vis streamlines and FreeSurfer-labeled anatomical images with nibabel, applies a voxel-to-world affine transformation, and reduces labels to relevant gray matter regions. The code also demonstrates how to filter streamlines for specific functional regions using custom region maps, and relies on FSL and FreeSurfer tools for image processing.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-441d9e9e69dfd1c303a0c0b76719a9cb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}