# Rejecting Epochs after Reading from Fieldtrip

**URL:** <https://mne.discourse.group/t/rejecting-epochs-after-reading-from-fieldtrip/5445>\
**Category:** Support & Discussions\
**Tags:** epochs, data-import\
**Created:** [August 22, 2022, 9:28am UTC](https://mne.discourse.group/t/rejecting-epochs-after-reading-from-fieldtrip/5445 "2022-08-22T09:28:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrutin](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/shrutin/32/1401_2.png) [@shrutin](https://mne.discourse.group/u/shrutin)\
**Post date:** [August 22, 2022, 9:28am UTC](https://mne.discourse.group/t/rejecting-epochs-after-reading-from-fieldtrip/5445/1 "2022-08-22T09:28:03Z")

</div>

Hello,  
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 ?

Thanks!

- MNE version: 1.0.3
- operating system: Windows 10

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [August 22, 2022, 2:43pm UTC](https://mne.discourse.group/t/rejecting-epochs-after-reading-from-fieldtrip/5445/2 "2022-08-22T14:43:54Z")

</div>

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](https://mne.tools/stable/auto_tutorials/preprocessing/20_rejecting_bad_data.html#tut-reject-epochs-section)

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

Best wishes,  
Richard
