Combining epochs from mutliple runs

Hi All,
Is there an easy way to combine epochs from multiple runs in mne-python?
I looked around but could not find an easy way.
Thank you,

Chiran Doshi, MS
MEG system technologist
Department of Neurology
Boston Childrens Hospital
Phone: 781-216-1136
Fax: 781-216-1172

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

hi Chiran,

there is no such thing. The recommended way is to pass a list of raw
files to Raw.
Something like

raw = mne.fiff.Raw(['raw1.fif', 'raw2.fif'], ...)

then you can build Epochs from raw the usual way.

Hope this helps
Alex

Dear Chiran,

you might want to use raw.append:

http://martinos.org/mne/generated/mne.fiff.Raw.html#mne.fiff.Raw.append

and the create regular epochs from the resulting Raw object.

HTH,

Denis

Hi Denis,

The problem is that I have all events in .eve files. How do you think I should combine them?

Does adding the length of appended raw file to the events sound like a good solution?

Chiran Doshi, MS
MEG system technologist
Department of Neurology
Boston Childrens Hospital
Phone: 781-216-1136
Fax: 781-216-1172

Consider using mne.concatenate_events():

http://martinos.org/mne/generated/mne.concatenate_events.html#mne.concatenate_events

Eric

Alternatively, if your *-eve.fif files aren't any special (in terms of
events combined / pre-computed, that is, not readable from the trigger
channels) you can always compute them on the fly:

raw = Raw(['my-raw1.fif', 'my-raw2.fif', 'my-raw3.fif'])
mne.find_events(raw)

Cheers,
Denis