Description
Hello,
thank you for your great tool.
We mainly use a sampling rate of 10k in our recordings. In my understanding, Kilosort was developed initially for 25k recordings. To accommodate for the different rate, we set:
- nt0 = round(61*10k/25k) in the configuration file, for setting the time window.
- dt =-round(21 * size(wPCA,1)/61)+ [1:size(wPCA,1)] in get_PCproj.m, to properly align our spikes for the initialization.
Kilosort seems to work fine, except for one thing. When loading Kilosort results in phy, the templates seem to be shifted relative to the spike waveforms by one time sample:
Why do you think we are getting this shift?
In my understanding, the parameter responsible for that is nt0min (defined in fitTemplates.m). While nt0min is corrected for the length of the temporal window (ceil(20 * nt0/61)), there is a difference of one time sample for 25k recordings (nt0 at 20 vs spike trough at 21). For 10k recordings, both numbers end up at the 8th time sample.
Best,
Dimos