View source: R/shiny-localization.R
localization_module | R Documentation |
If 'RAVE' has been installed, please use 'RAVE' modules. This function is purely for demonstration purposes.
localization_module(
subject_code,
fs_path,
ct_path = NULL,
surfaces = "pial",
use_141 = TRUE,
shiny_options = list(launch.browser = TRUE),
save_path = tempfile(pattern = "electrode", fileext = ".csv"),
...,
control_presets = NULL,
side_display = FALSE,
controllers = list()
)
subject_code |
subject code |
fs_path |
the subject's 'FreeSurfer' path |
ct_path |
the file path of 'CT' scans that have already been aligned to 'T1'; must be in 'NIFTI' format |
surfaces |
which surfaces to load |
use_141 |
whether to try 'SUMA' standard 141 surface; default is true |
shiny_options |
shiny application options; see |
save_path |
a temporary file where the electrode table should be cached; this file will be used to keep track of changes in case the application is crashed or shutdown |
... |
other parameters to pass into |
control_presets , side_display , controllers |
passed to
|
A list of 'ui'
elements, 'server'
function, and
a stand-alone 'app'
# This example require N27 template brain to be installed
# see `?download_N27` for details
# using N27 to localize
fs_path <- file.path(default_template_directory(), "N27")
if(interactive() && dir.exists(fs_path)){
module <- localization_module("N27", fs_path)
print(module$app)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.