Rejecting Epochs after Reading from Fieldtrip

I read epochs saved by fieldtrip, although it does not copy all the relevant info from the fieldtrip datastructure (such as temporal filters applied), it works fairly well.
I would now like to reject the epochs based on various statistics (e.g. variance / peak to peak amplitude > 5 S.D. above the data set). Is there an in-built function to do this? or should I write my own ?


  • MNE version: 1.0.3
  • operating system: Windows 10

Hello @shrutin, and welcome to the forum!

There’s built-in support for rejection based on peak-to-peak amplitude, see Rejecting bad data spans and breaks — MNE 1.1.0 documentation

As for rejection based on variance etc., there is no built-in support.

Best wishes,