[Mne_analysis] Creating events with varying durations manually

Brunner, Clemens (clemens.brunner@uni-graz.at) clemens.brunner at uni-graz.at
Tue Aug 27 02:19:31 EDT 2019
Search archives:

        External Email - Use Caution        

Hi!

It depends on what you want to achieve. MNE doesn't support variable-length epochs, and events don't have a duration, so if you want to use the event structure (a NumPy array) you can only use onsets. However, MNE also supports annotations, which consist of onsets, durations, and descriptions. Annotations can be variable-length, but not many functions accept annotations for further processing so far, so you might need to convert your annotations to (fixed-length) events at some point. Maybe this description could be helpful as well: https://martinos.org/mne/stable/auto_tutorials/intro/plot_object_annotations.html

Clemens



> On 27.08.2019, at 06:22, Marianna Schmidt <schmim60 at zedat.fu-berlin.de> wrote:
> 
>        External Email - Use Caution        
> 
> Hello,
> 
> Is it possible to manually create events in mne by just giving their onset
> times and duration?
> 
> We are working with EEG recordings of interictal epilepsy data, so the
> event times are not predefined and vary in duration.
> 
> 
> Thank you.
> 
> 
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis





More information about the Mne_analysis mailing list