Description Usage Arguments Value Note
View source: R/annot_neighbors.R
Given a brain surface and a parcellation into regions, find out which regions are adjacent to each other. A region i
is adjacent to another region j
if an edge connects any vertex of
i
with any vertex of i
.
1 | annot_neighbors(annot_min, surface, empty_rename = "_")
|
annot_min |
a full |
surface |
|
empty_rename |
optional character string, the name to use for unnamed regions (which have an empty string as region name). |
named integer matrix of regions, expressing whether they are direct neighbors (value 1L
) or not (value 0L
).
Regions from different hemispheres cannot be direct neighbors.
This works on a single hemisphere. We should create a wrapper that works on brainparc instances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.