Calculate template 'MNI' coordinates for points on native brain
transform_point_to_template(
subject,
positions,
space = c("scannerRAS", "tkrRAS"),
mapping_method = c("volumetric", "surface"),
flip_hemisphere = FALSE,
verbose = TRUE,
project_surface = "pial",
volumetric_transform = c("auto", "affine", "nonlinear"),
...
)transform_thinfilm_to_mni152(
subject,
flip_hemisphere = FALSE,
interpolator = 0.3,
n_segments = c(16, 16),
group_labels = NULL,
project_surface = "pial",
volumetric_transform = c("auto", "affine", "nonlinear"),
template_subject = c("cvs_avg35_inMNI152", "fsaverage", "bert", "MNI152")
)
A table of electrode 'MNI' coordinates.
'RAVE' subject
optional matrix of 3 columns, either in scanner or surface
space (specified by space); default is missing and will use the
electrode localization results (electrodes.csv)
if positions is given, which native coordinate system
should be used; default is native 'T1' (or 'scannerRAS'); alternative
is 'FreeSurfer' surface coordinate (or 'tkrRAS')
whether the mapping is 'volumetric' or
'surface'; default is the former.
whether to flip the hemisphere; default is
FALSE
whether to verbose the mapping progress; default is true
for surface mapping only, which surface to project
electrodes onto; default is 'pial' surface, other common choices
are 'white' for white-matter, or 'smoothwm' for smoothed
white matter
for volume mapping only, which type of transform
to use; default is 'auto' detecting and use non-linear deformation
if exists, and fall back to 'affine' transform; other choices are
'affine' or 'nonlinear'
ignored
whether the transform lean towards volume mapping
(interpolator=0) or surface mapping (interpolator=1)
positive integers with length of two: resolution of the mapping; default segments the thin-film array into 16 by 16 segments
NULL (default) or a character vector indicating
the group labels of thin-film electrodes;
default assumes that all contacts are from thin-film electrodes.
template subject to be mapped to; default is
'cvs_avg35_inMNI152', which is a 'MNI152' template generated
by 'FreeSurfer'; other choices are 'fsaverage' and 'bert'
if(has_rave_subject("demo/DemoSubject")) {
transform_point_to_template(
subject = 'demo/DemoSubject',
mapping_method = "volumetric"
)
}
Run the code above in your browser using DataLab