[Mne_analysis] averaging in MNE

Gustavo Sudre gsudre at pobox.com
Mon Apr 13 10:39:39 EDT 2009
Search archives:

Hello,

I have a couple questions regarding averaging MEG data with MNE and I  
was wondering if you could help me.

1) Is it possible to average a certain event only if something else  
happened after it? For example, let's say I have conditions 1 and 2. I  
want to average each condition, but only when the trigger happened and  
I received a response from the subject, which is coded as a 3 in the  
trigger line. In other words, average all the occurrences of 1 or 2  
only when there's a 3 after them. I wrote a script to do that in  
Matlab using the MNE toolbox, but since then lots of people have  
joined the lab and they are not very familiar with matlab, so I was  
wondering if there was a way to do such average within MNE, either by  
using the GUI or a combination of .ave and .eve files.

2) Something else my script does is to average conditions across  
different fif files. In the example above, I could have several fif  
files with such events, and the final .fif averaged file would  
represent the averages across all files. I imagine this is possible to  
do with the MNE software by using the global average parameter. Is  
that correct? Is there a different way to do it besides specifying a  
different .ave file for each of my raw .fif files? It's usually not a  
problem to do that for only a couple .fif files, but when there're  
about 10 different .fif files to be averaged, it starts to get a  
little cumbersome to keep track of all the .ave files, which look very  
similar except for the output parameter.

Thanks,

Gustavo



More information about the Mne_analysis mailing list