MouseLand / Kilosort

Fast spike sorting with drift correction
https://kilosort.readthedocs.io/en/latest/
GNU General Public License v3.0
488 stars 247 forks source link

BUG: PCA features zero values on relevant channels #782

Closed ckwalters closed 2 months ago

ckwalters commented 2 months ago

Describe the issue:

Hello, I often see PCA feature values of zero when curating KS4 results in Phy on channels that are on the edge of the template (but for my large amplitude units, relevant to sorting). Is there a setting for increasing the number of channels on which features are actually calculated, or is this unintended behavior? Thanks!

pca_issue

Reproduce the bug:

No response

Error message:

No response

Version information:

ks 4.0.17 phy 2.0b5

ckwalters commented 2 months ago

PCA_issue_20240912

jacobpennington commented 2 months ago

settings['nearest_chans'] controls the number of channels used, which is 10 by default.