How to discard the first N seconds of the neural data before sorting? #2085
-
Hi, The below figures shows the detected spikes from all 256 channels in the first 20 seconds. Note: I have tried changing the "file_offset" parameter of si.read_binary to match required samples to skip (5 x 25000 x 2 x 256 : seconds x sampling freq x bytes per sample x channels), reading binary data works but ss.run_sorter api doesn't work. Thanks in advace Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Georgin, I think one option is the silence periods preprocessing tool. This can be used to set all samples within a region (expresssed in indicies) to zero. In your case, to remove the first 5 seconds (assuming you have only 1 segment) the input to the |
Beta Was this translation helpful? Give feedback.
Hi Georgin,
I think one option is the silence periods preprocessing tool. This can be used to set all samples within a region (expresssed in indicies) to zero. In your case, to remove the first 5 seconds (assuming you have only 1 segment) the input to the
list_periods
argument I believe should be[(0, 125000)]
(assuming a sampling rate of 25 kHz or 25000 Hz rather than 25000 kHz).