[Mne_analysis] Set several channels as bad channel manually

Igal Nazar igal at brainster-tech.com
Mon Nov 27 07:15:37 EST 2017
Search archives:

 I'm new to mne. I run the following code line:

data_before_interp = loadmat('data_before_spherical_interpolation.mat')['data']

# Create montage_pure out of Pure data on Emotive
loc_pure = loadmat('loc_pure.mat')['loc_pure']  # the units here are [decimeter]
ch_pure = ['AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8',
'T8', 'FC6', 'F4', 'F8', 'AF4']
montage_pure = mne.channels.read_montage(kind="emotive_loc_pure",
ch_names=ch_pure, path='C:\\Users\\igal\Desktop')
loc_pure = montage_pure.pos  # the units here are [meter].
read_montage converts all units into meter
ch_pure = montage_pure.ch_names

# Sampling rate of the Emotive set
sfreq = 126.897  # Hz

# Create the info structure needed by MNE (choose one of the three
options: montage_pure or montage_pure_fixed or montage_1020). Note:
each has its own ch_names
info = mne.create_info(ch_names=ch_pure, sfreq=sfreq, ch_types="eeg")

# Finally, create the Raw object
raw = mne.io.RawArray(data_before_interp, info)

Now, I would like to *manually* define the bad channels and then run the
Is it possible to define the bad channel manually?

Thanks in advance,

<https://www.linkedin.com/in/igal-nazar/>*Igal Nazar*
R&D Engineer

igal at brainster-tech.com
+ 972 52 6701713
<https://www.brainster-tech.com/> <https://blog.brainster-tech.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171127/8f6a1491/attachment-0001.html 

More information about the Mne_analysis mailing list