Description Usage Arguments Details Value Examples
View source: R/create-ggseg3d-atlas.R
Function loops through hemispheres and surfaces to create a data frame that is ready to use with ggseg3d.
1 2 3 4 5 6 7 8 9 10 11 12 | make_aparc_2_3datlas(
annot = "aparc",
subject = "fsaverage5",
hemisphere = c("rh", "lh"),
surface = c("inflated", "LCBC", "white"),
subjects_dir = freesurfer::fs_subj_dir(),
annot_dir = file.path(subjects_dir, subject, "label"),
output_dir = tempdir(),
ncores = parallel::detectCores() - 2,
cleanup = TRUE,
verbose = TRUE
)
|
annot |
annotation file, with name [hemi].[annot].annot abd be in annot_dir |
subject |
Freesurfer subject, must exist in whatever subject directory specified or set in the environment with $SUBJECTS_DIR |
hemisphere |
hemisphere, either "rh" or "lh" |
surface |
Freesurfer surface |
subjects_dir |
Freesurfer subject directory |
annot_dir |
path to directory with annot-files |
output_dir |
output directory path |
ncores |
number of cores for parallel processing (default numcores-2) |
cleanup |
logical to toggle removal of all intermediary files |
verbose |
logical indicating to be verbose or not |
It is recommended that you change the region names for the atlas, and the atlas name to something shorter. See the dk_3d atlas for examples.
nested data frame as ggseg3d-atlas
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.