This is the code from this video on Youtube by Siraj Raval.
An interactive network visualization tool for exploring functional brain connectivity using d3.js. See this for an example of SpectraVis in action.
SpectraVis allows you to:
- examine how network dynamics change over time and frequency
- compare local (statistical dependencies between a single pair of nodes) and global (statistical dependencies between all nodes) dynamics.
- compare different types of functional connectivity measures (correlation, coherence).
- compare between different subjects.
- examine only within- or between-brain area connections
- switch between multiple network views for better understanding of the network structure
To install SpectraVis, download the latest release:
Or use Node.js and its package manager (npm):
- Open a terminal (Mac) or a Windows Command Prompt (
Start > All Programs > Accessories > Windows Command Prompt
) - Download or clone the repository:
git clone https://github.com/edeno/SpectraVis.git
- Install Node.js using one of the installers.
- Enter in the terminal or command prompt:
npm install spectravis
This will install the relevant development dependencies. Running gulp
in the terminal will automatically launch a webserver on http://localhost:8000/ where you can view the visualization.
spectravis.init(params)
starts the visualization in index.html
.
See the wiki for more information on how to view the visualization on your local machine, the expected structure of the data, and converting data from Matlab to JSON.
Fork, then clone the repo:
git clone [email protected]/your-username/SpectraVis.git
Use npm install
to get the development dependencies. Place your Data in app/DATA/
.
Push to your fork and submit a pull request to the develop
branch.
The credits for this code go to Neurophysvis. I've merely created a wrapper to get people started.