-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K-complex detection #184
Comments
Originally posted by @raphaelvallat in #40 (comment) |
Originally posted by @Jhanyi in #40 (comment) |
Sorry for the barrage here, but I wanted to move the conversation about K-complexes over here from Issue #40 because there were two separate conversations going on there simultaneously. Hi @Jhanyi and sorry for moving your post, but maybe we can address it here. I can't speak to consensus, but if you were wanting to try and detect the "reverse" shaped waveform, maybe you could hack it through YASA by setting the negative-peak and positive-peak amplitudes to negative values? I don't know if YASA would accept this (I haven't worked on the |
@remrama no problem, thanks for creating a separate issue. So I did have a play around switching the postive and negative peak, and it does seem to work well on my suspected KCs with that reverse waveform. I also thought of just inverting the data array (simply data*-1) and apply yasa.sw_detect on this. Both seem to agree quite well on N2, but poorly on N3, which is expected as it should follow the SW morphology. I also loosened both parameters a bit |
Great! Thanks @Jhanyi for giving this a shot and providing a detailed summary. Good idea on the inverted data as well. So if I understand correctly, the plots titled |
yep :) so finding positive peak first, then the following negative peak, and the data remains untouched
Agreed - so I guess this shall just be a temporary solution for now |
Originally posted by @zixiao-yin in #40 (comment)
The text was updated successfully, but these errors were encountered: