Skip to content

EnzeXu/Brain_View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial: Brain View

example

Catalog


1 Getting started

  1. Data Prepare

    (1) Prepare a color (value) array and a size array in Python. They can be either list or numpy.ndarray instances.

    (2) Call the build_txt() function in utils.py to easily generate a .node file with 160 rows and 6 columns. Elements in one row are split by space. Each element can be an integer or float number.

    Example: file output/example.node.

  2. Launch BrainNet Viewer in MATLAB

    (1) In MATLAB, open BrainNetViewer/BrainNet.m. Then run it.

    >> BrainNet
    Please cite:
    Xia M, Wang J, He Y (2013) BrainNet Viewer: A Network Visualization Tool for Human Brain Connectomics. PLoS ONE 8: e68910.
    An example:
    'The brain networks were visualized with the BrainNet Viewer (http://www.nitrc.org/projects/bnv/) (Xia et al., 2013)'.

Screenshot 2023-03-03 at 10 39 24 PM

(2) Then in BrainNet Viewer, click File > Load File. In "Surface file", browse and choose "./data/surface.nv"; in "Node file", browse and choose the node file you just generated (example: "./output/example.node"); leave the rest two fields blank. Click "OK". Screenshot 2023-03-03 at 11 08 14 PM

(3) You may modify the settings under the left-side tabs. (Typically, you can modify the color and size features under the "Node" tab. Here, for example, we set Node > Color > Colormap to "Jet"). Then click "OK". Screenshot 2023-03-03 at 11 22 15 PM Screenshot 2023-03-03 at 11 22 35 PM

(4) Click "Save Figure" to save the generated brain view plot. (In the example case, since the size array are set the same, we have balls in the figure with the same size) Screenshot 2023-03-03 at 11 22 51 PM

  1. Install MATLAB (Optional)

    Wake Forest students have free access to download and use MATLAB. To learn more, please visit https://software.wfu.edu/download/matlab/.

2 Contacts

Please email chenm@wfu.edu

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages