roygbiv (Roy G. Brain Image Viewer) is an interactive browser-based visualization of cortical surfaces.
Instructions for running demos are below. To run demos locally, install the flask
Python package.
###To set up the main demo locally:
- Run
python get_data.py demo
. This will download sample data files. - Run
server.py
to launch a light-weight web server - Browse to
http://127.0.0.1:5000/
###To set up the two hemis
demo locally:
- Install vtk
- Install mindboggle (
pip install git+https://github.com/binarybottle/mindboggle.git
) - Run
python get_data.py fsaverage
(or replace `fsaverage with your desired freesurfer subject) - Run
python server.py
to launch a light-weight web server - Browse to
http://127.0.0.1:5000/fsaverage/desikan/pial/two_hemis.html
You can change parameters above and change the corresponding URL:
* Use your subject ID instead of fsaverage
, if you have your own data.
* Use --atlas destrieux
to use a smaller parcellation.
* Use --surface inflated
to view an inflated surface.
###To deploy your files remotely
- Create the data (see above)
- Upload all files to your remote web server (html, json, css, data)
- Browse to
http://your_web_server/your_roygbiv_directory/
Note:
- If you want your downloaded or generated data stored at specific location, please define the
ROYGBIV_PATH
environment variable.