mne.pick_types#

mne.pick_types(info, meg=False, eeg=False, stim=False, eog=False, ecg=False, emg=False, ref_meg='auto', *, misc=False, resp=False, chpi=False, exci=False, ias=False, syst=False, seeg=False, dipole=False, gof=False, bio=False, ecog=False, fnirs=False, csd=False, dbs=False, temperature=False, gsr=False, eyetrack=False, include=(), exclude='bads', selection=None)[source]#

Pick channels by type and names.

Parameters:
infomne.Info

The mne.Info object with information about the sensors and methods of measurement.

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.

stimbool

If True include stimulus channels.

eogbool

If True include EOG channels.

ecgbool

If True include ECG channels.

emgbool

If True include EMG channels.

ref_megbool | str

If True include CTF / 4D reference channels. If ‘auto’, reference channels are included if compensations are present and meg is not False. Can also be the string options for the meg parameter.

miscbool

If True include miscellaneous analog channels.

respbool

If True include respiratory channels.

chpibool

If True include continuous HPI coil channels.

excibool

Flux excitation channel used to be a stimulus channel.

iasbool

Internal Active Shielding data (maybe on Triux only).

systbool

System status channel information (on Triux systems only).

seegbool

Stereotactic EEG channels.

dipolebool

Dipole time course channels.

gofbool

Dipole goodness of fit channels.

biobool

Bio channels.

ecogbool

Electrocorticography channels.

fnirsbool | str

Functional near-infrared spectroscopy channels. If True include all fNIRS channels. If False (default) include none. If string it can be ‘hbo’ (to include channels measuring oxyhemoglobin) or ‘hbr’ (to include channels measuring deoxyhemoglobin).

csdbool

EEG-CSD channels.

dbsbool

Deep brain stimulation channels.

temperaturebool

Temperature channels.

gsrbool

Galvanic skin response channels.

eyetrackbool | str

Eyetracking channels. If True include all eyetracking channels. If False (default) include none. If string it can be ‘eyegaze’ (to include eye position channels) or ‘pupil’ (to include pupil-size 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 ‘bads’ (default), exclude channels in info['bads'].

selectionlist of str

Restrict sensor channels (MEG, EEG, etc.) to this list of channel names.

Returns:
selarray of int

Indices of good channels.

Examples using mne.pick_types#

The Info data structure

The Info data structure

The Raw data structure: continuous data

The Raw data structure: continuous data

Overview of artifact detection

Overview of artifact detection

Handling bad channels

Handling bad channels

Rejecting bad data spans and breaks

Rejecting bad data spans and breaks

Filtering and resampling data

Filtering and resampling data

Repairing artifacts with regression

Repairing artifacts with regression

Repairing artifacts with SSP

Repairing artifacts with SSP

Preprocessing functional near-infrared spectroscopy (fNIRS) data

Preprocessing functional near-infrared spectroscopy (fNIRS) data

Preprocessing optically pumped magnetometer (OPM) MEG data

Preprocessing optically pumped magnetometer (OPM) MEG data

Visualizing Evoked data

Visualizing Evoked data

Frequency and time-frequency sensor analysis

Frequency and time-frequency sensor analysis

Frequency-tagging: Basic analysis of an SSVEP/vSSR dataset

Frequency-tagging: Basic analysis of an SSVEP/vSSR dataset

KIT phantom dataset tutorial

KIT phantom dataset tutorial

Non-parametric 1 sample cluster statistic on single trial power

Non-parametric 1 sample cluster statistic on single trial power

Non-parametric between conditions cluster statistic on single trial power

Non-parametric between conditions cluster statistic on single trial power

Mass-univariate twoway repeated measures ANOVA on single trial power

Mass-univariate twoway repeated measures ANOVA on single trial power

Spatiotemporal permutation F-test on full sensor data

Spatiotemporal permutation F-test on full sensor data

Permutation t-test on source data with spatio-temporal clustering

Permutation t-test on source data with spatio-temporal clustering

Repeated measures ANOVA on source data with spatio-temporal clustering

Repeated measures ANOVA on source data with spatio-temporal clustering

DICS for power mapping

DICS for power mapping

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

Define target events based on time lag, plot evoked response

Define target events based on time lag, plot evoked response

Show EOG artifact timing

Show EOG artifact timing

Find MEG reference channel artifacts

Find MEG reference channel artifacts

XDAWN Denoising

XDAWN Denoising

Plotting topographic arrowmaps of evoked data

Plotting topographic arrowmaps of evoked data

Plot custom topographies for MEG sensors

Plot custom topographies for MEG sensors

Compute a cross-spectral density (CSD) matrix

Compute a cross-spectral density (CSD) matrix

Compute Power Spectral Density of inverse solution from single epochs

Compute Power Spectral Density of inverse solution from single epochs

Compute power and phase lock in label of the source space

Compute power and phase lock in label of the source space

Compute source power spectral density (PSD) in a label

Compute source power spectral density (PSD) in a label

Compute induced power in the source space with dSPM

Compute induced power in the source space with dSPM

Temporal whitening with AR model

Temporal whitening with AR model

Permutation F-test on sensor data with 1D cluster level

Permutation F-test on sensor data with 1D cluster level

FDR correction on T-test on sensor data

FDR correction on T-test on sensor data

Regression on continuous data (rER[P/F])

Regression on continuous data (rER[P/F])

Permutation T-test on sensor data

Permutation T-test on sensor data

Motor imagery decoding from EEG data using the Common Spatial Pattern (CSP)

Motor imagery decoding from EEG data using the Common Spatial Pattern (CSP)

Representational Similarity Analysis

Representational Similarity Analysis

Decoding source space data

Decoding source space data

Decoding sensor space data with generalization across time and conditions

Decoding sensor space data with generalization across time and conditions

Analysis of evoked response using ICA and PCA reduction techniques

Analysis of evoked response using ICA and PCA reduction techniques

XDAWN Decoding From EEG data

XDAWN Decoding From EEG data

Display sensitivity maps for EEG and MEG sensors

Display sensitivity maps for EEG and MEG sensors

Use source space morphing

Use source space morphing

Compute MNE-dSPM inverse solution on single epochs

Compute MNE-dSPM inverse solution on single epochs

Compute evoked ERS source power using DICS, LCMV beamformer, and dSPM

Compute evoked ERS source power using DICS, LCMV beamformer, and dSPM

Compute cross-talk functions for LCMV beamformers

Compute cross-talk functions for LCMV beamformers

Brainstorm raw (median nerve) dataset

Brainstorm raw (median nerve) dataset

Optically pumped magnetometer (OPM) data

Optically pumped magnetometer (OPM) data