EEG extraction #84
-
In this example (https://github.com/raphaelvallat/yasa/blob/master/notebooks/01_spindles_detection.ipynb), you can see the plotting using the txt file. But in Yasa, I wonder if there is a function to extract EEG every 30 seconds or if there is something to extract from mne. data_N3_no-spindles_30sec_100Hz.txt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
MNE Raw data also works with YASA spindle_detect or sw_detect methods. For example see here: yasa.spindles_detect(data, sf, ch_names=chan, multi_only=True, remove_outliers=True) Here data is MNE raw date object I am posting an example code below from my notebooks: raws_c3 = raw.pick_channels(['C3']) |
Beta Was this translation helpful? Give feedback.
MNE Raw data also works with YASA spindle_detect or sw_detect methods. For example see here:
yasa.spindles_detect(data, sf, ch_names=chan, multi_only=True, remove_outliers=True)
Here data is MNE raw date object
chan="C3" for example (depending on channel label in your imported raw data, similarly there are other flags).
I am posting an example code below from my notebooks:
raws_c3 = raw.pick_channels(['C3'])
sp = yasa.spindles_detect(raws_c3, 200,ch_names="C3")
sp.summary()
sp.plot_average(ci=None, palette=['tab:grey']);
sp.summary()