-
Originally posted by @zixiao-yin in #40 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Originally posted by @raphaelvallat in #40 (comment) |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @Jhanyi in #40 (comment) |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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
sw_detection
), but since it seems to look for the negative-peak first and positive-peak second, maybe flipping the signs of those would just do the opposi…