cortex-lab / KiloSort

GPU code for spike sorting
GNU General Public License v2.0
175 stars 100 forks source link

Extracting Waveforms Help! #236

Open pstarski opened 3 years ago

pstarski commented 3 years ago

Hi,

I am a novice to in vivo recordings and have a unique issue. I am trying to compare waveforms between two periods of time during the recording to identify any consistent shift in signal due to noise.

Below is a recording of our deflections. I am trying to measure the characteristics of timepoints between 390-395 vs 400-405.

image

I have tried to use the function wf = getWaveForms(gwfparams) but I am having a hard time understanding it.

My goal is to have a table that has the timepoint : +/- 10 samples around it.

ex: Timepoint 390: -0.0702 -0.0433 -0.1412 -0.0876 -0.0093 0.0038 3.4052 -0.1467 -0.0828 -0.0075 -0.0733 -0.1259

The matlab script gives a 4-D table that I believe has this information, but I cannot seem to draw it out correctly.

I have been trying:

for y=[11184:12190]; %Columns of Timepoints within the wf.spikeTimeKeeps Waveformdata=(((wf.waveForms(1,y,1,:)))); %[nClu,nWf,nCh,nSWf] Individual waveforms (Cluster number, Timepoint, Channel, sample of waveforms. end

Can anyone explain how I can draw this data out correctly?

MCangelov commented 2 years ago

Did you manage to figure it out in the end?