Create a brain object
Usage
threeBrain(
path,
subject_code,
surface_types = c("pial", "smoothwm", "inflated", "sphere.reg"),
atlas_types,
annotation_types = "label/aparc.a2009s",
...,
streamline_types = "default/",
streamline_root = NULL,
template_subject = unname(getOption("threeBrain.template_subject", "N27")),
backward_compatible = getOption("threeBrain.compatible", FALSE)
)Arguments
- path
path to 'FreeSurfer' directory, or 'RAVE' subject directory containing 'FreeSurfer' files, or simply a 'RAVE' subject
- subject_code
subject code, characters
- surface_types
surface types to load; default is
'pial', other common types are'white','smoothwm','inflated','sphere.reg'- atlas_types
brain atlas to load; default is
'wmparc', or if not exists,'aparc+aseg', other choices are'aparc.a2009s+aseg','aparc.DKTatlas+aseg', depending on the atlas files in'fs/mri'folder- annotation_types
annotations, this can be one or more files relative to the 'FreeSurfer' subject directory. Each annotation can be discrete such as surface atlas, or continuous such as surface curvature.
- ...
reserved for future use
- streamline_types
streamline (
tractography) bundles to load from the streamline folders (seestreamline_root); passed straight toadd_streamline, so each entry may name one bundle ('motor/AF_left'), a whole circuit ('motor/'or'motor/*', which reaches into the circuit's sub-folders too), or just one of those sub-folders ('motor/left/*'). The default'default/'loads the'default'circuit, that is every streamline file placed directly in the streamline folders as well as in their'default'sub-folders – the other circuits' folders are left alone. UseNULLto skip. Please note that each declared bundle is downloaded and parsed by the browser when the viewer starts, hence only one group is loaded by default; useadd_streamlineto add more.- streamline_root
folders holding the streamline circuits, in priority order; default is
NULL. The'streamline'sub-folder ofpath(such as'fs/streamline') is always read last, and folders that do not exist on disk are skipped. The files directly in every folder and in their'default'sub-folders form the'default'circuit; any other circuit comes whole from the first folder that has it, and a bundle found in several folders comes from the first. The brain keeps the folders asbrain$streamline_root, whichadd_streamlinereads- template_subject
template subject to refer to; used for group template mapping
- backward_compatible
whether to support old format; default is false