ECG artifacts

External Email - Use Caution

Hi All,

I am new to MNE and am having some issues with identifying ECG artifacts, I have gone through the relevant tutorials and examples, but when I run the code the 'ecg_epochs' image does not look how I would expect it to. I am using the mne.preprocessing.create_ecg_epochs function. Please see the image below. I have also tried the mne.preprocessing.find_ecg_events functions to no avail
[cid:image001.png at 01D5D057.7EE66C20]
Can anyone please point me to what I am doing incorrectly! I have checked the ECG channel, and it has very well defined PQRS waves, so I don't think it is an issue with that channel.

Thanks,
Siobhan O'Brien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200121/a5481cde/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 37765 bytes
Desc: image001.png
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200121/a5481cde/attachment-0001.png

External Email - Use Caution

It doesn?t look like the ECG channel is being used because in the log it
says:

?combining channels using ?mean??

You can use the ch_name argument to provide the channel or alternatively
set the channel type using raw.set_channel_types

Mainak

        External Email - Use Caution

Hi All,

I am new to MNE and am having some issues with identifying ECG artifacts,
I have gone through the relevant tutorials and examples, but when I run the
code the ?ecg_epochs? image does not look how I would expect it to. I am
using the mne.preprocessing.create_ecg_epochs function. Please see the
image below. I have also tried the mne.preprocessing.find_ecg_events
functions to no avail

Can anyone please point me to what I am doing incorrectly! I have checked
the ECG channel, and it has very well defined PQRS waves, so I don?t think
it is an issue with that channel.

Thanks,

Siobhan O?Brien
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200121/e61ae5dc/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 37765 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200121/e61ae5dc/attachment-0001.png

External Email - Use Caution

Thanks Mainak,

Sorry I probably should have shown the code I was using. Below is the code I am using - I do specify the channel accordingly. I have had a play around with the different options in plot_image? and I get exactly the same graph when I remove combine = ?mean? and have no inputs to plot_image.

ecg_epochs = mne.preprocessing.create_ecg_epochs(eeg_data, event_id=999, ch_name = 'EKG')
ecg_epochs.plot_image(combine='mean')

Is there anything else you think it could be?

Thanks for your help!
Siobhan

External Email - Use Caution

Hi Siobhan -- no clue. If you can share your data along with a script that
is no longer than 15 lines, I could perhaps try to help debug. It's hard to
guess what could have gone wrong from two lines of code.

Mainak

        External Email - Use Caution

Thanks Mainak,

Sorry I probably should have shown the code I was using. Below is the code
I am using - I do specify the channel accordingly. I have had a play around
with the different options in plot_image? and I get exactly the same graph
when I remove combine = ?mean? and have no inputs to plot_image.

ecg_epochs = mne.preprocessing.create_ecg_epochs(eeg_data, event_id=999,
ch_name = 'EKG')

ecg_epochs.plot_image(combine='mean')

Is there anything else you think it could be?

Thanks for your help!

Siobhan

*From:* mne_analysis-bounces at nmr.mgh.harvard.edu <
mne_analysis-bounces at nmr.mgh.harvard.edu> *On Behalf Of *Mainak Jas
*Sent:* Tuesday, 21 January 2020 6:19 PM
*To:* Discussion and support forum for the users of MNE Software <
mne_analysis at nmr.mgh.harvard.edu>
*Subject:* Re: [Mne_analysis] ECG artifacts

* External Email - Use Caution *

It doesn?t look like the ECG channel is being used because in the log it
says:

?combining channels using ?mean??

You can use the ch_name argument to provide the channel or alternatively
set the channel type using raw.set_channel_types

Mainak

* External Email - Use Caution *

Hi All,

I am new to MNE and am having some issues with identifying ECG artifacts,
I have gone through the relevant tutorials and examples, but when I run the
code the ?ecg_epochs? image does not look how I would expect it to. I am
using the mne.preprocessing.create_ecg_epochs function. Please see the
image below. I have also tried the mne.preprocessing.find_ecg_events
functions to no avail

Can anyone please point me to what I am doing incorrectly! I have checked
the ECG channel, and it has very well defined PQRS waves, so I don?t think
it is an issue with that channel.

Thanks,

Siobhan O?Brien

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200122/3b3c892b/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 37765 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200122/3b3c892b/attachment-0001.png