mne_rt.resolve_rois#
- mne_rt.resolve_rois(names: str | Sequence, *, atlas: str, subject: str = 'fsaverage', subjects_dir=None) list[ROI][source]#
Resolve ROI names (or aliases, or explicit label groups) into
ROIobjects.- Parameters:
- names
str| sequence Each entry may be:
an alias from
ROI_ALIASES(e.g."Broca"),a bare atlas label name (e.g.
"Left-Hippocampus"),a
{name: [label, ...]}mapping, or a(name, [label, ...])pair, to define an ROI explicitly.
- atlas
str Volumetric atlas stem or surface annotation name.
- subject
str FreeSurfer subject identifier.
- subjects_dirpath-like |
None FreeSurfer subjects directory.
- names
- Returns:
- Raises:
ValueErrorIf a label name is not present in the atlas. The message lists close matches to make typos easy to spot.