mne.get_montage_volume_labels

mne.get_montage_volume_labels(montage, subject, subjects_dir=None, aseg='aparc+aseg', dist=5)[source]

Get regions of interest near channels from a Freesurfer parcellation.

Note

This is applicable for channels inside the brain (intracranial electrodes).

Parameters
montageNone | str | DigMontage

A montage containing channel positions. If str or DigMontage is specified, the channel info will be updated with the channel positions. Default is None. For valid str values see documentation of mne.channels.make_standard_montage(). See also the documentation of mne.channels.DigMontage for more information.

subjectstr

The FreeSurfer subject name.

subjects_dirstr | pathlib.Path | None

The path to the FreeSurfer subjects reconstructions. If None, defaults to the SUBJECTS_DIR environment variable.

asegstr

The anatomical segmentation file. Default aparc+aseg. This may be any anatomical segmentation file in the mri subdirectory of the Freesurfer subject directory.

distfloat

The distance in mm to use for identifying regions of interest.

Returns
labelsdict

The regions of interest labels within dist of each channel.

colorsdict

The Freesurfer lookup table colors for the labels.

Examples using mne.get_montage_volume_labels