Skip to content
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

Why are mean_waveforms worise by using the temp_wh.dat as row data than .bin file? #80

Open
PathwayinGithub opened this issue May 13, 2023 · 2 comments

Comments

@PathwayinGithub
Copy link

PathwayinGithub commented May 13, 2023

Hi!
I saw that the continous data can be .bin file or .dat file in these modules. As the temp_wh.dat file created by kilosort3 is whitened and high pass filtered, I think the outputs like mean waveforms, SNR and other quality control parameters should be better than using the .bin file. But I found that by using the temp_wh.dat as continous file to run the modules, the meanwaveforms are worise, the SNR is much lower. Why?

for example, the following pictures are the ploted mean waveforms of the same cluster:
by using the bin file:
SNR is 1.008
2ffac1ec97c5691a8ecd78d24899c5d
by using the temp_wh.dat file:
SNR is just 0.065
889312ef3d8e10d18e11a19aa1f8770

Is there anything wrong when I use the modules?

More information:
the bin file is created by SpikeGLX.
I just run the kilosort postprocessing, noise_templates,mean_waveforms,quality_metrics modules because the kilosort3 has been run manully.

@jsiegle
Copy link
Collaborator

jsiegle commented May 15, 2023

Hi – you can't use temp_wh.dat for this, because it's likely that the epochs in the file have been re-ordered to improve drift correction. Therefore, the spike times in the original file don't necessarily correspond to the spike times in temp_wh.dat. This explains why there's no spike waveform visible in the second plot.

@PathwayinGithub
Copy link
Author

PathwayinGithub commented May 16, 2023

Thanks,I get it!

Hi – you can't use temp_wh.dat for this, because it's likely that the epochs in the file have been re-ordered to improve drift correction. Therefore, the spike times in the original file don't necessarily correspond to the spike times in temp_wh.dat. This explains why there's no spike waveform visible in the second plot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants