Is there a function to search and create another marker within a time-window?

  • MNE-Python version: 0.23.0
  • operating system: Windows 10

Hi MNE users,

In my experiment, I have response markers but I would like to search for another marker that pops up within a variable timewindow that tells me if that response is correct or incorrect in a 2500ms timewindow.

Is there are method that I could use to do so? E.g. 14 is the response marker and 36 is the feedback marker. I would like search for all occurances of 14 and 36 in a 2500ms time window of each other. Like it would tag 14_36 and 36_14 as two new markers.

Sorry I’m learning and transiting from Brainstorm but I know that this could be done in Brainstorm with combine stim/response but can’t figure out how to do so without convuluted workaround.

Would #mne.event import define_target_events be a possible solution?

Kind regards,

Russell

This might work? mne.epochs.make_metadata — MNE 0.23.0 documentation

There is also a tutorial about define_target_events() that might be helpful to look at.

Hi Dan,

Thanks for the reply! I’ll try and let you know how it goes.

Cheers,