nex5-sort
Kilosort-style spike sorting and Phy/Kilosort folder I/O for nex5file.
KilosortPipeline— band-pass → detect → PCA → cluster → template refine (CPU)phy_to_file_data— importspike_times.npy+spike_clusters.npy(supports<f8>,<f4>,<i8>,<i4>)SortResult::write_phy_folder— export back to Phy/Kilosort layout
Run Kilosort externally for GPU sorting, then import with phy_to_file_data or nex5 import-phy.
use ;
let pipeline = new;
let result = pipeline.sort_continuous?;
result.write_phy_folder?;
let nex5 = pipeline.to_file_data?;
// Multichannel (same length + rate):
let multi = pipeline.sort_continuous_channels?;