Skip to main content

Your Advanced Electrode Localizer Viewer for Python

Project description

WebGL-based 3D Brain for Python

The project is part of YAEL.

Check out live demo

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

We are actively looking for grant fundings. It is super hard 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

threebrainpy-0.1.1.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threebrainpy-0.1.1-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file threebrainpy-0.1.1.tar.gz.

File metadata

  • Download URL: threebrainpy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for threebrainpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 52ff3d5f66951c457a43ea5c3ccce5a78acc3ac1e42e3813db85ec952f4f5792
MD5 93039aeadff74a075055fcc2102d0994
BLAKE2b-256 148b10e385c8ef8b23c2f4f1f6f9ceb68b260b34be647e9edaf9142c7f39f17d

See more details on using hashes here.

File details

Details for the file threebrainpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: threebrainpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for threebrainpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7273364458e7605287625fd5ece8df3e6ce81bc1d8aba498651af027951085
MD5 120c03584e3073cb18f2c757b97f691c
BLAKE2b-256 3b60cea23bc4ab24690ab783fd773957555f1c835dbf2c163ec6d92a639c9f85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page