cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
313 stars 157 forks source link

Problem with WaveformView #1082

Open FraCost opened 3 years ago

FraCost commented 3 years ago

WaveformView is showing flattened spike waveforms, how can I fix it? WaveformView_bug

claudiagjou commented 3 years ago

I have the same issue, but only when I change n spikes in waveformView to anything other than 200 spikes.

UPDATE: For some files I did see just a flat line no matter what I set nspikes to. Now the problem seems to be resolved if I just re-run kilosort on the same recordings and opening the new files.

epmgs97 commented 3 years ago

I have the same issue too... Try to 'increase' with ctrl + Up, you may then see your waveforms, but careful cause the other views will change too! It might be a problem with the filter scale reajustment that Kilososrt does when it takes our data to preprocess it. Maybe our data is in a different scale than the one used by Kilosort to represent the filtered waveform, so then when Phy tries to painted it seems like no wave is been captured, even though Kilosort does identify the spike.

Does anyone knows the range of values Kilosort wants to be given the raw data in the .bin file so the filter could finally be well visuelized in Phy?

GrimmSnark commented 2 years ago

So I have found a overkill solution to this, at least for Windows. Whenever you run phy it saves a hidden folder with all the memcache and various GUI settings within the data folder. This folder is named ".phy", delete that and it seems to reset the waveform amplitude disparity.

Michael