# Reject epochs based on peak-to-peak signal amplitude (PTP) of EMG

**URL:** <https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383>\
**Category:** Support & Discussions\
**Tags:** emg\
**Created:** [July 11, 2021, 4:30am UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383 "2021-07-11T04:30:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GanshengT](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/ganshengt/32/646_2.png) [@GanshengT](https://mne.discourse.group/u/GanshengT)\
**Post date:** [July 11, 2021, 4:30am UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/1 "2021-07-11T04:30:24Z")

</div>

- MNE-Python version: 0.23.0
- operating system: windows

To create a MNE Epochs, the valid keys for ‘reject’ are: `'grad'` , `'mag'` , `'eeg'` , `'eog'` , and `'ecg'` . Do you consider add ‘emg’ to the list?

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [July 11, 2021, 4:18pm UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/2 "2021-07-11T16:18:28Z")

</div>

yes we could. Can you open a PR to add better support for EMG signals?

Alex

---

<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:** [July 12, 2021, 7:11am UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/3 "2021-07-12T07:11:16Z")

</div>

Hello @GanshengT and welcome to the forum!

> [@agramfort](#):
>
> Can you open a PR to add better support for EMG signals?

Or you could open an issue with this feature request 🙂 [Sign in to GitHub · GitHub](https://github.com/mne-tools/mne-python/issues/new/choose)

---

<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:** [July 12, 2021, 7:25am UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/4 "2021-07-12T07:25:52Z")

</div>

I’ve opened the feature request for you:

> <https://github.com/mne-tools/mne-python/issues/9551>
>
> Request from the forum:
> https://mne.discourse.group/t/reject-epochs-based-on-pe…ak-to-peak-signal-amplitude-ptp-of-emg

Now only somebody needs to volunteer and implement this 🙂

---

<div class="post-metadata">

**Author:** ![GanshengT](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/ganshengt/32/646_2.png) [@GanshengT](https://mne.discourse.group/u/GanshengT)\
**Post date:** [July 13, 2021, 4:39am UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/5 "2021-07-13T04:39:00Z")

</div>

Thank you all! I would need a closer look at mne functions before opening a PR.

---

<div class="post-metadata">

**Author:** ![MathieuSch-101](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mathieusch-101/32/367_2.png) [@MathieuSch-101](https://mne.discourse.group/u/MathieuSch-101)\
**Post date:** [July 15, 2021, 12:06pm UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/6 "2021-07-15T12:06:32Z")

</div>

@GanshengT Could you have a look at my reply on the [github issue](https://github.com/mne-tools/mne-python/issues/9551)? I feel like this is already implemented and you probably just forgot to add `'emg'` to the `picks` argument of `mne.Epochs`.

---

<div class="post-metadata">

**Author:** ![GanshengT](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/ganshengt/32/646_2.png) [@GanshengT](https://mne.discourse.group/u/GanshengT)\
**Post date:** [July 17, 2021, 4:19pm UTC](https://mne.discourse.group/t/reject-epochs-based-on-peak-to-peak-signal-amplitude-ptp-of-emg/3383/7 "2021-07-17T16:19:21Z")

</div>

My apologies for the slow reply. And yes, it is implemented.
