Mne_analysis Digest, Vol 75, Issue 1

Mauricio,
Did you set `eog=True` in the arguments to `mne.fiff.pick_types` i.e.,

picks=mne.fiff.pick_types(info, meg=False, eeg=True, stim=False, eog=True,
exclude=[])

If the picks array is built without your channels of interest then
mne.Epochs will throw the error you're seeing c.f. epoching example (
http://martinos.org/mne/stable/auto_examples/plot_from_raw_to_multiple_epochs_to_evoked.html
).

best,
Kambiz

The other possible scenario is that you need to change the sensor
type. This has been available in the latest code for ~ 1 month with
the mne.rename_channels function.

HTH
D

Hi!
Thanks for your answers.

Efectively I set "eog = True".
Would I have to set, when I read the raw edt, n_eeg to another value
instead of None?
Currently I'm doing that by

raw = read_raw_edf(input_fname = bdf_file, n_eeg = None, stim_channel = -1,
annot = None, annotmap = None, hpts = hpts_file, preload = False, verbose =
None)

On the other hand, I cannot find the documentation for mne.rename_channels.
Could you tell me what do I have to do, more specifically, with this
function?

All the best,
Mauricio.

2014-04-02 15:14 GMT-03:00 dgw <dgwakeman at gmail.com>:

The other possible scenario is that you need to change the sensor
type. This has been available in the latest code for ~ 1 month with
the mne.rename_channels function.

HTH
D

> Mauricio,
> Did you set `eog=True` in the arguments to `mne.fiff.pick_types` i.e.,
>
> picks=mne.fiff.pick_types(info, meg=False, eeg=True, stim=False,
eog=True,
> exclude=)
>
> If the picks array is built without your channels of interest then
> mne.Epochs will throw the error you're seeing c.f. epoching example
> (
http://martinos.org/mne/stable/auto_examples/plot_from_raw_to_multiple_epochs_to_evoked.html
).
>
> best,
> Kambiz
>
>
> ------------------------------------------------------------
> Kambiz Tavabi PhD
> Institute for Learning & Brain Sciences
> 1715 Columbia Road N
> Portage Bay Building
> Box 357988
> University of Washington
> Seattle, WA 98195-7988
> Tel: 206-685-6173
> ------------------------------------------------------------
>
>
>>
>> Send Mne_analysis mailing list submissions to
>> mne_analysis at nmr.mgh.harvard.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> Mne_analysis Info Page
>> or, via email, send a message with subject or body 'help' to
>> mne_analysis-request at nmr.mgh.harvard.edu
>>
>> You can reach the person managing the list at
>> mne_analysis-owner at nmr.mgh.harvard.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Mne_analysis digest..."
>>
>>
>> Today's Topics:
>>
>> 1. how to set eog channels (Mauricio Asp? S?nchez)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 2 Apr 2014 11:21:39 -0400
>> From: Mauricio Asp? S?nchez <mauricio.aspe.s at gmail.com>
>> Subject: [Mne_analysis] how to set eog channels
>> To: "mne_analysis at nmr.mgh.harvard.edu"
>> <mne_analysis at nmr.mgh.harvard.edu>
>> Message-ID:
>>
>> <CANm+xxYt7WMO7nHKRgKsH+8bCJdwnvO4SQ-z72kQOra1WAa7sA at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi everybody,
>> sorry for all these newbie's questions, but I'm really interested in
>> migrate all my EEGLab analysis to Mne-Python.
>>
>> I'm trying to epoch my data, but the command
>>
>> epochs = mne.Epochs(raw, events = events, event_id = events_ids,
>> tmin = tmin, tmax = tmax, baseline = baseline, picks = picks,
>> preload = True, reject = dict(eeg = 80e-6, eog = 150e-6))
>>
>> gives me the error:
>>
>> ValueError: No EOG channel found. Cannot reject based on EOG.
>>
>> and I cannot figure out how to label the EOG channels in my raw
structure.
>>
>> How do I do that?
>>
>> Thanks for all,
>> Mauricio.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>>
http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140402/2c01fbc1/attachment-0001.html
>>
>> ------------------------------
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> Mne_analysis Info Page
>>
>> End of Mne_analysis Digest, Vol 75, Issue 1
>> *******************************************
>>
>>
>> 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
>> MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140402/ab12f524/attachment.html

hi Mauricio,

On the other hand, I cannot find the documentation for mne.rename_channels.
Could you tell me what do I have to do, more specifically, with this
function?

it's not released yet. You'll need to install the latest version on github.

code of the function is at:

https://github.com/mne-tools/mne-python/blob/master/mne/fiff/channels.py#L190

then the function is just accessible with

mne.rename_channels

HTH
Alex