Skip to main content

Cerebro_Viewer

A pythonic 3D viewer to visualize and plot brains and neuroimaging data

alt text


Citing Cerebro:

Thanks for choosing Cerebro! We're honored to have you as a user. If you end up using our code in your project or research (which we hope you will!), we'd be grateful if you could give us a little shout-out by including the citation in your publication. This helps us spread the word, motivates us to keep making Cerebro better, and gives us warm and fuzzy feelings inside! 😊 Here's the reference you can use to site the package:

Sina Mansour L. (2023). Cerebro_Viewer A Pythonic 3D viewer to visualize and plot brains (v0.0.9). Zenodo. https://doi.org/10.5281/zenodo.7885669

DOI

Cerebro is a work in progress, and we're excited to share more with you soon! We're working on a manuscript that will showcase Cerebro's capabilities. Once that's published, appropriate references will be added here.


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 latest Cerebro release, simply run the following command:

pip install Cerebro-Viewer --upgrade


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? Have you ever wondered if it would be possible to provide reproducible neuroimaging visualizations along your publications? 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.

If you are looking for a visualization that is currently missing from Cerebro, please open a new issue to suggest the development of that feature.


To try the package, you could check out a range of notebooks and example scripts that showcase Cerebro's capabilities.

After installation, you may alternatively run the following code (inside python) to get Cerebro's visualizations in an interactive GUI:

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()

Metadata

Release files for Cerebro-Viewer 0.0.10.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Cerebro-Viewer 0.0.10.5
File Size Uploaded
cerebro_viewer-0.0.10.5.tar.gz 14.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Cerebro-Viewer 0.0.10.5
File Interpreter ABI Platform
Cerebro_Viewer-0.0.10.5-py3-none-any.whl Python 3 none any Details

Total release size: 28.4 MB

Release files / cerebro_viewer-0.0.10.5.tar.gz

Download URL cerebro_viewer-0.0.10.5.tar.gz
Size 14.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a8b86593c2d6221155fb557068224c93b66c088aba27deec8d678421cb44c037
BLAKE2b-256 checksum
How to use checksums
2fb768700ceca2db7a1a32e4fc75f7ef78f1cd87756aa2eebc19139f322d2ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / Cerebro_Viewer-0.0.10.5-py3-none-any.whl

Download URL Cerebro_Viewer-0.0.10.5-py3-none-any.whl
Size 14.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
81a17b26abd1cf680aeeb3f934186cddba8b7f3a2cd3a26428bfa92d85bd2eb3
BLAKE2b-256 checksum
How to use checksums
8c6454b1d1f0fdfe921184c7b6e91a83abc322907a6911dc17d446bb9c1b15e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.10.5 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page