# Average over channels

**URL:** <https://mne.discourse.group/t/average-over-channels/2249>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [July 8, 2020, 9:42pm UTC](https://mne.discourse.group/t/average-over-channels/2249 "2020-07-08T21:42:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 8, 2020, 9:42pm UTC](https://mne.discourse.group/t/average-over-channels/2249/1 "2020-07-08T21:42:35Z")

</div>

External Email - Use Caution

Hello MNE users,

I was wondering if there is an easy way to do an average over channels on a Raw or Epochs object. I've seen a few plotting functions with a "combine" parameter but is it possible to create a new Raw/Epochs object with combined channels (for example a new object with pseudo-channels representing ROIs)? I would like to avoid extracting a data array and doing it with NumPy if there is easier...

Thanks a lot!

Best wishes,

Johann Benerradi

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 9, 2020, 6:47am UTC](https://mne.discourse.group/t/average-over-channels/2249/2 "2020-07-09T06:47:07Z")

</div>

External Email - Use Caution

hi Johann,

no it's not possible presently.

you can group channel when plotting though

[https://mne.tools/stable/generated/mne.viz.plot\_compare\_evokeds.html#mne.viz.plot\_compare\_evokeds](https://mne.tools/stable/generated/mne.viz.plot_compare_evokeds.html#mne.viz.plot_compare_evokeds)

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 9, 2020, 10:28am UTC](https://mne.discourse.group/t/average-over-channels/2249/3 "2020-07-09T10:28:12Z")

</div>

External Email - Use Caution

Hi Alex,

Alright, thank you. Is that something users would be interested in, and worth creating a GitHub issue for feature request? I personally would like to do such a thing to average channels by ROI before classification with fNIRS (in addition to having this for visualisation)... I can eventually work on an implementation, but as for now I'll keep doing this with get\_data() and np.mean().

Thanks,  
Johann

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 9, 2020, 11:26am UTC](https://mne.discourse.group/t/average-over-channels/2249/4 "2020-07-09T11:26:43Z")

</div>

External Email - Use Caution

hi,

yes create an issue to we can exchange ideas more easily

thx

A
