non uniform epochs

  • MNE version: 1.2.3
  • operating system: Windows 11

I am currently working on an EEG dataset with 5 EEG channels, 2 EOG channels, and 1 ECG.

I am creating non-uniform events based on each trial’s start and end times for the task. I wanted to create epochs with the same start and end times as events. Is there a way I can do this? Each signal has around 530 trials. My main goal is then to reject these bad epochs (i.e., trials)

Thanks in advance.

As far as I know there is currently no way in MNE-Python to have an Epochs object where individual epochs have different lengths (time dimension).

I am not 100% sure, but I think FieldTrip does support this.

You don’t need to create non-uniform epochs for this use case. I would create annotations starting with the word “bad” based on your stop and start events. That way, these segments will be ignored by most MNE functions.

1 Like