Cerebro Viewer - A pythonic 3D viewer to visualize and plot brains
Project description
Cerebro_Viewer
A pythonic 3D viewer to visualize and plot brains and neuroimaging data
Cerebro aims to provide a solution to advance the currently available methods for visualization of neuroimaging and brain connectivity data.
Installation
Cerebro is provided as a python package and requires Python 3. To install the package, simply run the following command:
pip install Cerebro-Viewer
Motivation
Were you ever stuck when trying to visualize your study findings? Did you want to visualize different data formats and notice there’s no software to visualize them ALL in one place? Have you thought about a different way to present your findings but couldn’t find a tool to do it? Do you find limitations in current neuroimaging visualization software? And finally, did you ever want to generate nice brain visualizations within your script (without launching third-party software) and found the existing packages incapable/slow? Cerebro aims to provide a solution that tries to answer these needs.
Development plan
Cerebro is currently under active development. The plan is to further develop exciting features through open-source contributions and discussions during hackathons, brainhacks, and other relevant opportunities. Checkout the contributors page to find out more.
To try the package, run the following code after installation:
from cerebro import cerebro_brain_utils as cbu
from cerebro import cerebro_brain_viewer as cbv
my_brain_viewer = cbv.Cerebro_brain_viewer()
# render a surface
surface = 'pial'
surface_model = my_brain_viewer.load_template_GIFTI_cortical_surface_models(surface)
cifti_space = my_brain_viewer.visualize_cifti_space()
# render data over surface
dscalar_file = cbu.get_data_file(f'templates/HCP/dscalars/hcp.gradients.dscalar.nii')
dscalar_layer = my_brain_viewer.add_cifti_dscalar_layer(dscalar_file=dscalar_file,)
# enter interactive view
my_brain_viewer.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Cerebro_Viewer-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b72b203df65bc9551016243fcbe2b7b6abc893694536bda19c7fec179fa18b2 |
|
MD5 | 79b4c7d6aed92c4732740061bf89be13 |
|
BLAKE2b-256 | 97abfd4ca4a88518892f037f66784132ef738cf45c681456d75ef29d2ce8a0fd |