picking only 2 channels fnirs

Hi,

I have been wondering if there is an easy way to pick 2 channels in fnirs.

Best,
Rebecka

Hello,

The different objects in MNE have several pick_ methods to select channels.
For instance with a Raw object:

Example:

from mne.datasets import fnirs_motor
from mne.io import read_raw_nirx


fnirs_data_folder = fnirs_motor.data_path()
fnirs_cw_amplitude_dir = fnirs_data_folder / 'Participant-1'
raw = read_raw_nirx(fnirs_cw_amplitude_dir, preload=True)

# select the 2 first channels by name
raw.pick_channels(raw.ch_names[:2])

Mathieu

2 Likes