[Mne_analysis] Set several channels as bad channel manually

Marijn van Vliet w.m.vanvliet at gmail.com
Mon Nov 27 07:26:55 EST 2017
Search archives:

Hi,

just list the names of the bad channels in info['bads']. For example:

info['bads'] = ['EEG1', 'EEG5']


best,
Marijn.

On 2017-11-27 14:15, Igal Nazar wrote:
> Hi,
>  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\igalDesktop')
> 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)
> raw.set_montage(montage=montage_pure)
> 
> Now, I would like to MANUALLY define the bad channels and then run the
> raw.interpolate_bads.
> Is it possible to define the bad channel manually?
> 
> Thanks in advance,
> 
>  [1]IGAL NAZAR
> 
> R&D Engineer
> 
> igal at brainster-tech.com
> + 972 52 6701713 [2]
>  [3]
> 
>  [3] [4] [5] [6]
> 
> 
> 
> Links:
> ------
> [1] https://www.linkedin.com/in/igal-nazar/
> [2] tel:%2B%20972%2052%206701713
> [3] https://www.brainster-tech.com/
> [4] https://blog.brainster-tech.com/
> [5] https://www.linkedin.com/company/brainster
> [6] https://www.youtube.com/channel/UCZWPcShTiLkNqxIJPdrh7Kg
> 
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> 
> 
> The information in this e-mail is intended only for the person to whom 
> it is
> addressed. If you believe this e-mail was sent to you in error and the 
> e-mail
> contains patient information, please contact the Partners Compliance 
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you 
> in error
> but does not contain patient information, please contact the sender and 
> properly
> dispose of the e-mail.


More information about the Mne_analysis mailing list