Skip to content

EEG extraction #84

Closed Answered by umair-hassan
PhD-GOAT asked this question in Q&A
Jun 22, 2022 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

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()

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@PhD-GOAT
Comment options

@umair-hassan
Comment options

@PhD-GOAT
Comment options

@umair-hassan
Comment options

@PhD-GOAT
Comment options

Answer selected by remrama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants