AllenInstitute / ecephys_spike_sorting

Modules for processing extracellular electrophysiology data from Neuropixels probes
Other
109 stars 91 forks source link

Fix bug in PC feature channel selection #42

Closed jsiegle closed 5 years ago

jsiegle commented 5 years ago

For the outputs of Kilosort2, the channels of the PC features matrix are not ordered consecutively. This violates an assumption of the calculate_pc_metrics function in the quality_metrics module. The symptom is that the PC-based metrics cannot be computed for a subset of units, because the PCs for the unit of interest get excluded from the calculation.

jsiegle commented 5 years ago

This should be fixed by commit 6cd72ff. I'm going to leave this open until we've had more time to test it.