Kilosort

Latest version: v4.0.35

Safety actively analyzes 733136 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

4.0.33

This release includes three main changes:
* Added matplotlib versions of the GUI plots to the API. These will be generated during sorting and stored in the results directory in the same manner. This also adds `matplotlib` to the list of required dependencies for non-GUI installations.
* Updated `kilosort.bench.py` to work with the current version of Kilosort4, and added a tutorial to readthedocs demonstrating how to run the benchmarks: https://kilosort.readthedocs.io/en/latest/tutorials/benchmark.html
* The API and GUI will now allow a list of paths to be specified for the filename argument/setting instead of requiring a single path, so that data stored as many files can be sorted without needing to concatenate it. Note that this only applies to binary files (.bin, .raw, etc). The data conversion tool skill expects a single file. If you want similar behavior for another file format, you can accomplish that with the API using `RecordingExtractorAsArray` and `BinaryFileGroup` from `kilosort.io`.

**Note for developers**: making these changes required some re-organization of `run_kilosort`. I don't think this will be a problem since the overall argument/return structure is unchanged, but you may run into some differences. For example, filename is stored as a list instead of a Path even if only one path is specified, and that carries through the pipeline to be saved in `params.py` for Phy.

**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.31...v4.0.33

4.0.31

In addition to several small bug fixes, logging improvements, and GUI improvements, this release includes the following major fixes:
* Fixed 664 regarding misalignment of spike waveforms and features after merging clusters.
* Fixed 858 regarding excessive system memory usage during spike detection.

**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.26...v4.0.31

4.0.26

**NOTE: This release contains a bug affecting some datasets**, which is fixed in v4.0.28. If you encounter an error in `clustering_qr.run`, try updating. If you did not encounter an error, sorting was not affected.

This release improves resource usage during the graph-based clustering step. Users with non-consecutive channel maps in their probe files should see the largest improvement. This should resolve most out-of-memory errors, like those reported in 746 and 775.

Also included are several bug fixes, improved logging, and some new settings (see link below).
**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.22...v4.0.26

4.0.22

This release contains several bug fixes and a few new features, including:
* Exclude empty clustering centers.
* Error information for unrecognized settings passed to `run_kilosort`.
* Fixed deprecated `pkg_resources` reference.
* Fixed duplicate templates generated for multi-shank probes.
* Added utility functions for data exploration in `kilosort.data_tools`
* Switched `max_channel_distance` default to constant 32.
* Command-line options for resetting GUI and launching GUI without auto-loading.
* More content and better formatting in log file.
* Refactored `setup_logger` to not interfere with logging from 3rd-party packages.
* Added option to color-code templates by clustering center in probe preview in GUI.
* Added fix for estimated spike positions extending between shanks.

**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.18...v4.0.22

4.0.18

This release adds a fix for warnings related to conflicting BLAS and OpenMP implementations, as well as other misc bug fixes. It also adds logging for resource usage throughout the sorting pipeline.

**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.15...v4.0.18

4.0.15

This release adds:
- Option to specify channels to exclude from sorting through the API and GUI.
- Documentation for output files.
- A new tutorial notebook demonstrating how to modify good/mua labels using custom criteria.
- Option to force-clear PyTorch's reserved GPU memory between some operations, using `clear_cache = True`.

**Full Changelog**: https://github.com/MouseLand/Kilosort/compare/v4.0.14...v4.0.15

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.