Hello,
I want to use a standard electrode montage with the fsaverage template to build a forward model. I have seen in the documentation that only some electrode montages are in the fsaverage MRI space. Unfortunately the two I’m interested in are not
I also checked with the mne.viz.plot_alignment function the positions of the electrodes with respect to the source space and the scalp, and some electrodes are completely inside the head (under the scalp, very close to the sources).
So my question would be how can I use one of these electrode montages with fsaverage?
I saw some related posts using the gui, I am not used to this, is there a solution not using it?
Here is the code I used to load the montage and head model and check is the electrode positions are consistent with the head model.
import mne
import os
import numpy as np
import matplotlib.pyplot as plt
from mne.datasets import fetch_fsaverage
fs_dir = fetch_fsaverage(verbose=True)
sibjects_dir = os.path.dirname(fs_dir)
subject = "fsaverage"
trans = "fsaverage"
src = os.path.join(fs_dir, "bem", "fsaverage-ico-5-src.fif")
bem = os.path.join(fs_dir, "bem", "fsaverage-5120-5120-5120-bem-sel.fif")
montage = mne.channels.make_standard_montage('easycap-M10')
info = mne.create_info(
montage.ch_names,
1000,
ch_types=['eeg']*len(montage.ch_names), verbose=0)
info.set_montage(montage)
mne.viz.plot_alignment(info, src=src, eeg='original', trans=trans)
Thank you very much for your help,
Sarah