When try to manually label my eeg data after plotting it and dragging on the screen, I see that all channels are getting selected. But seizures are obvious in some particular channels mostly. Is there a way to deal with that in mne or any other tool? (Not specifying channel names first then plotting and labeling plase)
Hi @Bunyamin,
You are trying to manually annotate your EEG data, for specific channels?
Maybe @sportnoah14 (who has been working on this), knows?
Hi @Bunyamin ,
Based on your description you’re plotting your data with a call to raw.plot()
or something similar and drawing annotations? In the last few months I’ve been working to make annotations be channel-specific. This is a very new feature. You need to have the newest version of mne-qt-browser downloaded (this only works on the qt browser version so make sure you call mne.viz.set_browser_backend('qt')
before plotting).
To make channel specific annotations in the browser
- Enter annotation mode
- Draw an annotation
- Shift+Left-click on a specific channel within that annotation. The specific channel(s) selected will be highlighted while all the other channels will be overlayed with a very faded color and be bordered by dashed lines.
The attached image shows an example. The annotation on the left is specific only to “MEG 0143” and “MEG 0212” while on the right applies to all chanels.
Alternatively, programatically, you can annotate a single timepoint and then later add the channel specific names if you have some code to detect seizure onset.
annotations = mne.Annotations(
[10.1, 15.2, 20.2], # onset
[1.0, 2.4, 1.9], # duration
['sample1', 'sample2', 'sample1'],
ch_names=[ [], ["MEG 0122", "MEG 1623"], ["MEG 0123"] ]
)
raw.set_annotations(annotations)
Let me know if you have any questions on this. This is a very new feature so feedback is greatly appreciated.
I just wanna thank you a lot because i spent too much time to find the solution.
All the best:)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.