Select trials to average (post-stimulus) by what answer was given

Hi all,

I am trying to average some meg data around the stimulus onset trigger, but
want to exclude trials in which the subject later timed out (did not answer
in allotted time). Correct, incorrect, and timeouts are all coded
differently as 2,3,4 respectively. Does anyone know how I can write
the averaging description file to do this, or know of another solution?
Thanks for the help!

-Joseph Frantz
University of New Mexico Health Sciences Center
Research Tech 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20130218/8a664d98/attachment.html

Hi Joe,
You can get the events list out by using the linux shell function
"mne_process raw --raw [inputfile] --eventsout [output filename for events
file]". Then, after you have corrected the events as needed (i.e. by
removing trials which are followed by event 4), you can read in the new
events file using "mne_process raw --raw [inputfile] --events [events file
name]".

Hope that helps.

Hi joseph,

in mne-python (0.6 development version) there is a new function that might do what you're looking for.
The following example demonstrates how to use it:

https://github.com/mne-tools/mne-python/blob/master/examples/plot_define_target_events.py

I hope this helps,

Denis