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.
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 thequality_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.