| subject.lobes {fsbrain} | R Documentation |
Load labels representing brain lobes.
Description
This gives you labels that represent brain lobes for a subject. The lobe definition is based on the Desikan-Killiany atlas (Desikan *et al.*, 2010) as suggested on the FreeSurfer website at https://surfer.nmr.mgh.harvard.edu/fswiki/CorticalParcellation.
Usage
subject.lobes(
subjects_dir,
subject_id,
hemi = "both",
include_cingulate = TRUE,
as_annot = FALSE
)
Arguments
subjects_dir |
string. The FreeSurfer SUBJECTS_DIR, i.e., a directory containing the data for all your subjects, each in a subdir named after the subject identifier. |
subject_id |
string. The subject identifier |
hemi |
string, one of 'lh', 'rh', or 'both'. The hemisphere name. Used to construct the names of the surface file to be loaded. For 'both', see the information on the return value. |
include_cingulate |
logical, whether to include the vertices of the cingulate in the lobes |
as_annot |
return a hemilist of annotations instead of the return value described in the *value* section |
Value
hemilist of integer vectors, the vectors represent vertex indices of the hemispheres, and each vertex is assigned one of the following values: '0'=no_lobe, '1'=frontal, '2'=parietal, '3'=temporal, '4'=occipital.
See Also
Other atlas functions:
get.atlas.region.names(),
group.agg.atlas.native(),
group.agg.atlas.standard(),
group.annot(),
group.label.from.annot(),
label.from.annotdata(),
label.to.annot(),
regions.to.ignore(),
spread.values.over.annot(),
spread.values.over.hemi(),
spread.values.over.subject(),
subject.annot(),
subject.atlas.agg(),
subject.label.from.annot()
Other label functions:
apply.label.to.morphdata(),
apply.labeldata.to.morphdata(),
subject.mask(),
vis.labeldata.on.subject(),
vis.subject.label()