# multiple events average

**URL:** <https://mne.discourse.group/t/multiple-events-average/457>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 15, 2012, 3:29pm UTC](https://mne.discourse.group/t/multiple-events-average/457 "2012-06-15T15:29:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 15, 2012, 3:29pm UTC](https://mne.discourse.group/t/multiple-events-average/457/1 "2012-06-15T15:29:24Z")

</div>

Hello MNE lovers,

We are trying to do a multiple events average with the mne\_process\_raw

So far we tried with version mne\_setup 2.7.0 or 2.7.1 with no success

Could somebody let me know if it has been implemented?

In the ave file we try to add the trigger numbers as follow : Event 41 42 43  
44

But it will take only the first number

Any advice will be helpful

Thanks a lot

Elisabeth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 15, 2012, 3:39pm UTC](https://mne.discourse.group/t/multiple-events-average/457/2 "2012-06-15T15:39:30Z")

</div>

hi Elisabeth,

try adding multiple events (one per line)

in your ave something like this:

&nbsp;&nbsp;category {  
&nbsp;&nbsp;&nbsp;&nbsp;name "Left Auditory"  
&nbsp;&nbsp;&nbsp;&nbsp;event 1  
&nbsp;&nbsp;&nbsp;&nbsp;event 2  
&nbsp;&nbsp;&nbsp;&nbsp;tmin -0.2  
&nbsp;&nbsp;&nbsp;&nbsp;tmax 0.5  
&nbsp;&nbsp;&nbsp;&nbsp;color 1 1 0  
&nbsp;&nbsp;}

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 15, 2012, 3:43pm UTC](https://mne.discourse.group/t/multiple-events-average/457/3 "2012-06-15T15:43:05Z")

</div>

Hi Alex,  
Thanks for your answer  
Unfortunately we already try this, and it will be taking only the first  
number (first line)  
Do you have any other solution?  
Could it be coming from the version we are using 7.0 or 7.1?  
Best  
Elisabeth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 15, 2012, 4:03pm UTC](https://mne.discourse.group/t/multiple-events-average/457/4 "2012-06-15T16:03:23Z")

</div>

I believe adding multiple events was added in a nightly build a couple  
months back. Try downloading that from the site and give it a whirl.

Eric

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 15, 2012, 4:07pm UTC](https://mne.discourse.group/t/multiple-events-average/457/5 "2012-06-15T16:07:52Z")

</div>

Hi Elisabeth,

I am attaching matlab script that merge multiple events and generated the  
new event file which you can use for averaging in mne.

Sheraz

> Hi Alex,  
> Thanks for your answer  
> Unfortunately we already try this, and it will be taking only the first  
> number (first line)  
> Do you have any other solution?  
> Could it be coming from the version we are using 7.0 or 7.1?  
> Best  
> Elisabeth
> 
> From: Alexandre Gramfort [mailto:gramfort at nmr.mgh.harvard.edu]  
> Sent: 15 June 2012 16:40  
> To: Elisabeth Fonteneau  
> Cc: mne\_analysis at nmr.mgh.harvard.edu  
> Subject: Re: [Mne\_analysis] multiple events average
> 
> hi Elisabeth,
> 
> try adding multiple events (one per line)
> 
> in your ave something like this:
> 
> &nbsp;&nbsp;category {  
> &nbsp;&nbsp;&nbsp;&nbsp;name "Left Auditory"  
> &nbsp;&nbsp;&nbsp;&nbsp;event 1  
> &nbsp;&nbsp;&nbsp;&nbsp;event 2  
> &nbsp;&nbsp;&nbsp;&nbsp;tmin -0.2  
> &nbsp;&nbsp;&nbsp;&nbsp;tmax 0.5  
> &nbsp;&nbsp;&nbsp;&nbsp;color 1 1 0  
> &nbsp;&nbsp;}
> 
> Alex
> 
> > Hello MNE lovers,
> > 
> > We are trying to do a multiple events average with the mne\_process\_raw
> > 
> > So far we tried with version mne\_setup 2.7.0 or 2.7.1 with no success
> > 
> > Could somebody let me know if it has been implemented?
> > 
> > In the ave file we try to add the trigger numbers as follow : Event 41  
> > 42 43  
> > 44
> > 
> > But it will take only the first number
> > 
> > Any advice will be helpful
> > 
> > Thanks a lot
> > 
> > Elisabeth
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
> > 
> > Dr Elisabeth Fonteneau
> > 
> > Neurolex Group
> > 
> > Department of Experimental Psychology
> > 
> > University of Cambridge
> > 
> > Downing Street, Cambridge CB2 3EB, UK
> > 
> > Phone: +44 1223 333 548
> > 
> > Email: ef309 at cam.ac.uk
> > 
> > Web: www.neurolex.psychol.cam.ac.uk/directory/ef309 at cam.ac.uk
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Mne\_analysis mailing list  
> > Mne\_analysis at nmr.mgh.harvard.edu  
> > [Mne\_analysis Info Page](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 [MyComplianceReport.com: Compliance and Ethics Reporting](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.
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [Mne\_analysis Info Page](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)

-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: mergeEvents.m  
Type: text/x-objcsrc  
Size: 1514 bytes  
Desc: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20120615/d4dd141b/attachment.bin](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20120615/d4dd141b/attachment.bin)
