mne.pick_types_forward#

mne.pick_types_forward(orig, meg=False, eeg=False, ref_meg=True, seeg=False, ecog=False, dbs=False, include=(), exclude=())[source]#

Pick by channel type and names from a forward operator.

Parameters:
origdict

A forward solution.

megbool | str

If True include MEG channels. If string it can be ‘mag’, ‘grad’, ‘planar1’ or ‘planar2’ to select only magnetometers, all gradiometers, or a specific type of gradiometer.

eegbool

If True include EEG channels.

ref_megbool

If True include CTF / 4D reference channels.

seegbool

If True include stereotactic EEG channels.

ecogbool

If True include electrocorticography channels.

dbsbool

If True include deep brain stimulation channels.

includelist of str

List of additional channels to include. If empty do not include any.

excludelist of str | str

List of channels to exclude. If empty do not exclude any (default). If ‘bads’, exclude channels in orig[‘info’][‘bads’].

Returns:
resdict

Forward solution restricted to selected channel types.

Examples using mne.pick_types_forward#

Generate simulated evoked data

Generate simulated evoked data

Cortical Signal Suppression (CSS) for removal of cortical signals

Cortical Signal Suppression (CSS) for removal of cortical signals

Compute spatial resolution metrics to compare MEG with EEG+MEG

Compute spatial resolution metrics to compare MEG with EEG+MEG