Have seen mne document for handing and rejecting bad channels for meg and eog data.
I need to perform this for the eeg data.
This is how my data looks in csv format.
Hello, almost all the information on bad channel removal and ICA that is being demonstrated on MEG data in our tutorials should apply to EEG data as well. So you can basically do the same, just feed in EEG instead of MEG data.
Could you please guide me here with a proper documentation/tutorial? And also how do I remove the artifacts using ICA. Plotted the ICA like this and used ica.exclude() to remove. Is this the right way to do it.
I donât understand your question then⊠I also donât understand why youâre always showing your data as a CSV file (?). I thought youâd successfully imported it into MNE?
Sorry I showed it to get the context for events.
Yes I have imported it into MNE and created a raw array using the following and have also saved it in .fif incase.
info = mne.create_info(ch_names, ch_types=ch_types, sfreq=sampling_freq)
raw = mne.io.RawArray(data, info)
raw.save('data.fif',overwrite=True)
Thatâs why I should you the csv to show that I only have 14 channels and a label column in it.
I have imported the data and created a raw array , performed a FIR filter on top of it, now Iâm required to remove the bad stretches and artifacts before performing FFT on them.
All the removing/reject/handling are event based on when I try them I get that error.
If I have done something wrong let me know the right way to perform it.
Well, it seems youâre not creating a stim channel then⊠thatâs required by find_events(). Or you just have to create the events array manually, which would then allow you to skip using find_events().
In any case, youâll need to take a step back and fix the data import, Iâm afraid.
Is that right?
If yes, then I have 4 labels totally but when I print the event id I am getting only 2.
But then again when I use mne.read_events I am getting this error.
TypeError: fname must be an instance of path-like, got <class âmne.io.array.array.RawArrayâ> instead.
But I donât have a path to the events, right.
Could you help me understand and sort this issue. Else like you said how to create events array manually.
Or is there a way to do remove the bad stretches and artifacts before performing FFT on them without the use of events field.
Thanks for being patient and guiding me.
This result is after converting them only. The label values are now 1,2,3&4. not -1,0,1,2. Itâs only detecting the events 2 and 4 not 1 and 3.
Firstly, is it right for the labels/classification to be considered as events.
Secondly, what should I do to get the other labels.
Thanks.
After adding these two in the mne.find_events(), all the 4 classes got recognized.
What are the 2nd and 3rd column in the below screenshot represent?
Questions:
Is it right for the labels/classification column in the table to be considered as events.
There are totally 277548 samples(timestamps) but only 430 events are getting found.
What to do when I use mne.read_events() need to provided fname for the event file right, but I donât have it right. Asking for when not using mne.find_events().