CATSort
CATSort (Collision-Aware Template Sort) is a robust spike sorter designed to handle overlapping spikes (collisions) with high precision using a specific collision-handling stage before clustering followed by template matching.
Key Features
- Collision Handling: Automatically identifies and flags collided spikes using multi-criterion feature analysis (amplitude, width, energy).
- Template Matching: Robust spike extraction using template matching (including 'wobble' for now).
- Flexible Schemes: Choose between an
adaptivethreshold optimization or anoriginalfixed MAD (Median Absolute Deviation) multiplier scheme. - SpikeInterface Integration: Fully compatible with the SpikeInterface ecosystem.
Installation
You can install catsort via pip:
pip install catsort
Or from source:
git clone https://github.com/lucasbeziers/CATSort.git
cd CATSort
pip install -e .
Quick Start
import spikeinterface.extractors as se
from catsort import run_catsort
# Load your recording
recording = se.read_binary("path_to_data.dat", sampling_frequency=30000, num_channels=384, dtype="int16")
# Run CATSort
sorting = run_catsort(recording)
# The result is a SpikeInterface Sorting object
print(sorting)
Parameters
CATSort offers several parameters to fine-tune its behavior:
scheme:'original'or'adaptive'.'adaptive'uses temporal collisions to optimize thresholds.'original'uses fixed MAD multipliers.
mad_multiplier_amplitude,mad_multiplier_width,mad_multiplier_energy: (Default:7.0,10.0,15.0) Used whenscheme='original'.detect_threshold: Spike detection threshold in standard deviations (Default:5).
License
MIT License. See LICENSE for details.
Metadata
Release files for CATSort 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| catsort-1.0.2.tar.gz | 9.9 kB | With provenance | Details for catsort-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| catsort-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for catsort-1.0.2-py3-none-any.whl |
Total release size: 19.5 kB
Release files / catsort-1.0.2.tar.gz
| Download URL | catsort-1.0.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cc0f6de399d0d7cb250abea70c9fcfeea35265c8a40f51fc13a171f98c1ac11
|
|
BLAKE2b-256 checksum How to use checksums |
ae7e29eb58a1389db53193573006725e89e9d2143c4b9323c250b23314e0e45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logRelease files / catsort-1.0.2-py3-none-any.whl
| Download URL | catsort-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a15966b6f0f61884b45f0babdff130a559ac73eb93180c5f87f11c3a7bd82e0
|
|
BLAKE2b-256 checksum How to use checksums |
7303b0864e99a0bd6827d58079625b56fd28725606177bd69fded9054b7ff38f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logSecurity for CATSort 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for catsort-1.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.