Skip to main content

Your Advanced Brain 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

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.2.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.2-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for threebrainpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b66dbe5d8119d0ad89ae44c857c97b00d9d73e5536983621ecae1051aac7e830
MD5 9c50c139c636eaa317fd8b0790943ea3
BLAKE2b-256 70b68f1e7ee2a49f7c2ac393e97e5c71d0279b457a60b8a20672caf216c88e0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: threebrainpy-0.1.2-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.16

File hashes

Hashes for threebrainpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f59bd3e082c92743aee610e7eabefd481f7210f947a09eb505fdb7aa493787d
MD5 ef67c59784ff69df2abf7596167dafec
BLAKE2b-256 d21359818f99d4fda315a84945732b169202f62c7f9cf5bfe18bee1acf074710

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