system
(system)
August 27, 2013, 9:09pm
1
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
system
(system)
August 27, 2013, 9:26pm
2
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
system
(system)
August 27, 2013, 9:28pm
3
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
system
(system)
August 27, 2013, 9:37pm
4
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
system
(system)
August 27, 2013, 9:56pm
5
system
(system)
August 27, 2013, 10:05pm
6
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