You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-19
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@
17
17
* For function usage, check [Reference page](https://dipterix.github.io/threeBrain/reference/index.html)
18
18
* Check [keyboard shortcuts](https://dipterix.github.io/threeBrain/shortcuts.html) here
19
19
20
+
#### System Requirement
21
+
22
+
***Web Browsers**: the viewer uses `WegGL2` to render in browsers. Please check [this list](https://caniuse.com/?search=webgl2) to see compatible browsers. As of 2020, **Chrome** and **Firefox** have full supports.
23
+
- For **Safari** users, please enable this feature by going to `Safari` > `Preferences`, click `Advanced`, then select `Show Develop menu in menu bar`; then click `Develop` in the menu bar, go to `Experimental Features` > `WebGL 2.0`. This only needs to be done once.
24
+
20
25
## A. Installation
21
26
22
27
1.[`R`](https://cran.r-project.org/) and [`RStudio Desktop (Free Version)`](https://www.rstudio.com/products/rstudio/download/)
@@ -26,8 +31,8 @@ install.packages("threeBrain")
26
31
```
27
32
If you want to install `dev` version from *Github*, then use:
28
33
```r
29
-
install.packages("devtools")
30
-
devtools::install_github("dipterix/threeBrain")
34
+
install.packages("remotes")
35
+
remotes::install_github("dipterix/threeBrain")
31
36
```
32
37
3. (Optional) Setups: after installation, in `RStudio` console, type the following command
33
38
```r
@@ -37,39 +42,47 @@ and follow the instructions.
37
42
38
43
## B. Basic Brain Viewer
39
44
40
-
Once finishing setting up of `threeBrain`, there will be a template subject `N27` (Collin's 27) created at
41
-
```
42
-
~/rave_data/others/three_brain/N27
45
+
Once finishing setting up of `threeBrain`, there will be a template subject `N27` (Collin's 27) created locally. The location is platform-related. You can find it by running the following command:
`~/rave_data/others/three_brain/N27` is a sample generated by `FreeSurfer` ([download](https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall)). If you have any subjects processed by `FreeSurfer`, direct `fs_subject_folder` to your subject folder.
75
+
The sample subject (`N27`) is a sample generated by `FreeSurfer` ([download](https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall)). If you have any subjects processed by `FreeSurfer`, use function `freesurfer_brain2` to visualize.
76
+
77
+
The `AFNI/SUMA` standard 141 brain is also supported. Please use terminal command `@SUMA_Make_Spec_FS -NIFTI -sid [subID]` to generate 141 brain. (Click [here](https://openwetware.org/wiki/Beauchamp:BuffyElectrodeNotes#Converting_Files_between_iELVis_and_AFNI/SUMA) for some hints)
65
78
66
79
## D. Add/Render Electrodes
67
80
68
81
If you have electrode file, you can import it before calling `plot` function. Please make sure it's in `csv` format.
69
82
```r
70
83
x$set_electrodes(electrodes="[PATH to ELECTRODE FILE]")
71
84
```
72
-
Here is an example of electrode csv file. Only the first five columns (**case-sensitive**) are mandatory: `Electrode (integer)`, `Coord_x`, `Coord_y`, `Coord_z`, and `Label (character)`. `Coord_*` is `RAS` location from `FreeSurfer` coordinates.
85
+
Here is an example of electrode csv file. Only the first five columns (**case-sensitive**) are mandatory: `Electrode (integer)`, `Coord_x`, `Coord_y`, `Coord_z`, and `Label (character)`. `Coord_*` is `tkRAS` location from `FreeSurfer` coordinates.
@@ -106,9 +119,11 @@ The electrode value file is also a csv like:
106
119
107
120
If you have your own subjects with `FreeSurfer` output, for example, I have two subjects `YAB` and `YCQ`. To merge these two subjects and show them on `N27` template,
108
121
```r
122
+
library(threeBrain)
123
+
109
124
# yab = ... (see section B for import a single subject)
@@ -119,7 +134,7 @@ The viewer will be in `N27` template, and electrodes of these two subjects can b
119
134
120
135
To cite threeBrain in publications use:
121
136
122
-
> Magnotti, JF, Wang, Z, Beauchamp, MS. RAVE: comprehensive open-source software for reproducible analysis and visualization of intracranial EEG data.
137
+
> Magnotti, J. F., Wang, Z., & Beauchamp, M. S. (2020). RAVE: Comprehensive open-source software for reproducible analysis and visualization of intracranial EEG data. *NeuroImage, 223*, 117341.
0 commit comments