Your Advanced Electrode Localizer Viewer for Python
Project description
WebGL-based 3D Brain for Python
The project is part of YAEL.
Installation
Install from pypi
:
# Bare minimal
pip install threebrainpy
# to allow Jupyter support
pip install threebrainpy threebrainpywidget
Install from Github
:
pip install pandas matplotlib
pip install git+https://github.com/dipterix/threebrainpy
Test the installation
Launch Python with your favorite editor, run the following Python commands. If you don't have FreeSurfer
installed, replace path
with any fs subject. If you don't have any, go to sample templates and download one.
import os
from threebrainpy.core import Brain
# You can replace `path` with any FreeSurfer-generated subject folder
path = os.path.join(os.environ["FREESURFER_HOME"], "subjects", "fsaverage")
brain = Brain(os.path.basename(path), path)
brain.add_slice("brain")
brain.add_slice("brain.finalsurf")
brain.add_surfaces("pial")
brain.render()
Documentation
Please check the documentation here.
Other implementations
This Python package implements the core functionalities. More advanced features will come soon.
The core script is written in JavaScript. The R implementation threeBrain is available on CRAN.
Here is a comparison of the Python vs R packages:
Feature | R | Python |
---|---|---|
3D Brain | :white_check_mark: | :white_check_mark: |
3D Electrodes | :white_check_mark: | :white_check_mark: |
Electrode Localization | :white_check_mark: | :heart: |
Dashboard Integration | :white_check_mark: | :heart: |
- :white_check_mark: = implemented
- :heart: = will implement if I get enough requests or I get grants to do so
Sponsor
There has been no sponsor in this Python project yet. It is super hard and discouraging for software projects to apply for fundings. Your support will be greatly appreciated. Please email help
at rave.wiki
to join our slack channel if you want to:
- Request a demos
- Ask questions
- Use our software
- Collaborate with us
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
File details
Details for the file threebrainpy-0.1.0.tar.gz
.
File metadata
- Download URL: threebrainpy-0.1.0.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7bc76f2f4ddcbc1ab92e04842aac452817ab4f4ac84f2fcbe7a28964a71fe27 |
|
MD5 | 665de8ba18a377d998e08d499caacc62 |
|
BLAKE2b-256 | c48263d89c6201cf77d872b6901ab1c48edeccbbb972df89fcd7b4af20555a56 |
File details
Details for the file threebrainpy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: threebrainpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17720d36d2cb7d5cfb279a07eeb619279496ca80eee8874dbbd51596621fa768 |
|
MD5 | f9ca4a51c1ea54774ba34c46dcda2b91 |
|
BLAKE2b-256 | 8aed0aaa7db69336acd3a70fe7710731b9a456afb827f6476cf82c8b56332030 |