Learn R Programming

threeBrain (version 1.0.1)

3D Brain Visualization

Description

A fast, interactive cross-platform, and easy to share 'WebGL'-based 3D brain viewer that visualizes 'FreeSurfer' and/or 'AFNI/SUMA' surfaces. The viewer widget can be either standalone or embedded into 'R-shiny' applications. The standalone version only require a web browser with 'WebGL2' support (for example, 'Chrome', 'Firefox', 'Safari'), and can be inserted into any websites. The 'R-shiny' support allows the 3D viewer to be dynamically generated from reactive user inputs. This feature has been fully adopted by 'RAVE' , an interactive toolbox to analyze 'iEEG' data. Documentation about 'threeBrain' is provided by and several vignettes included in this package. To cite the package, please check our 'NeuroImage' paper by Magnotti, Wang, and Beauchamp (2020, ), or see 'citation("threeBrain")' for details.

Copy Link

Version

Install

install.packages('threeBrain')

Monthly Downloads

669

Version

1.0.1

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Zhengjia Wang

Last Published

July 3rd, 2023

Functions in threeBrain (1.0.1)

brain_setup

Setup Package, Install Environment
create_group

Create a geometry group containing multiple geometries
check_freesurfer_path

Function to check whether `FreeSurfer` folder has everything we need
import-fs-suma

Import 'FreeSurfer' or 'SUMA' files into the viewer structure
merge_brain

Create Multi-subject Template
localization_module

Launch a 'shiny' application to localize electrodes
import_from_freesurfer

Import from `FreeSurfer` and create `JSON` cache for 3D viewer
read_fs_m3z

Read `FreeSurfer` m3z file
freesurfer_lut

Query the 'FreeSurfer' labels
read_fs_mgh_mgz

Read `FreeSurfer` `mgz/mgh` file
freesurfer_brain

Read `FreeSurfer` surface and volume files
default_template_directory

Default Directory to Store Template Brain
video_content

Add video content to the viewer
read_gii2

Function to load surface data from `Gifti` files
read_mgz

Function to load `FreeSurfer` `mgz/mgh` file
reorient_volume

Function to reshape data to `RAS` order
threejsBrainOutput

Shiny Output for threeBrain Widgets
read_fs_asc

Read `FreeSurfer` ascii file
voxel_colormap

Color maps for volume or surface data
read_fs_labels

Read FreeSurfer Annotations
renderBrain

Shiny Renderer for threeBrain Widgets
reexports

Objects exported from other packages
threeBrain

Create a brain object
template_subject

Download and Manage Template Subjects
voxel_cube

Generate volume data from 'MNI' coordinates
threejs_brain

Create a Threejs Brain and View it in Browsers
save_brain

Save threeBrain widgets to local file system
LineSegmentsGeom

R6 Class - Generate Line Segments
DataCubeGeom

R6 Class - Generate Data Cube Geometry
AbstractGeom

R6 Class - Abstract Class of Geometries
DataCubeGeom2

R6 Class - Generate Data Cube Geometry via 3D Volume Texture
TubeGeom

R6 Class - Generate Tube Geometry
brain_proxy

Shiny Proxy for Viewer
BlankGeom

A geometry that renders nothing
FreeGeom

R6 Class - Generate Geometry from Vertices and Face Indices
geom_sphere

Create sphere geometry
SphereGeom

R6 Class - Generate Sphere Geometry
generate_smooth_envelope

Generate smooth envelope around surface
GeomGroup

R6 Class - Generate Group of Geometries
geom_freemesh

Creates any mesh geometry given vertices and face indices
get_digest_header

Function to read digest header