Open TheAnton205 opened 1 month ago
@TheAnton205 from your codee it seems you're spike sorting the LFP stream? You should use the AP stream!
Can you give it a try?
I'm sorry but I don't understand. I want to sort the LFP stream, as in the data file that corresponds to our LFPs. In the kilosort2 GUI I can simply use the continuous.dat file for the LFP stream and sort the spikes for that. Maybe I am misunderstanding the way spikeinterface handles the call to kilosort?
The LFP stream is not supposed to contain any spike, because they are filtered out by the low pass filter. Is there any specific reason why you want to spike sort it? I would expect any spike sorter to fail or misbehave, since there should be no apparent spikes.
Thanks for the insight. It seems that in fact the LFP streams aren't able to be sorted through spikeinterface. We wanted to determine synchrony through a custom function, but it seems for now we will do this through the AP streams.
However, looking through the run_sorter code for spikeinterface, I see that the sorting output for run_sorter is just a numpy array. Would it be possible to take the numpy sorting output from the kilosort GUI and feed that sorting.npy to spikeinterface to use spikeinterface functions on. Is it possible to instantiate a spikeinterface object via a saved numpy recording?
Trying to run kilosort2 on jupyter notebook setup for spike interface version 0.99.1, but getting an "index exceeds matrix dimension error" from my kilosort.
Running the same dataset (openephys .dat) via the same kilosort GUI, nothing fails.
This is the code running the kilosort:
Looking online I see that this could be due to kilosort not reading the channels, but asking spikeinterface to print num_channels() proves that spikeinterface is giving kilosort the correct data set.
However, this could also be due to the way that I am extracting my openephys data from the folder. Does anyone have a method to simply choose individual continuous.dat files without having to go through this trouble.
My standard directory tree looks like this: 2023 --> Record Node 101 --> (experiment 1 | experiment 2) --> (recording1 | recording2 | recording3) --> (continuous | events) --> (Neuropix-PXI-100.ProbeA-AP | Neuropix-PXI-100.ProbeA-LFP) --> continous.dat
Here is how I am doing it with spikeinterface:
any thoughts would be great. thank you!