Written and maintained by CASRAI Editorial Board
Published
On this page
SpikeInterface is an open-source Python package that puts the main spike-sorting tools behind one interface, so an extracellular recording can be read, preprocessed, sorted, curated and compared in a single code base. Its documentation describes it as “a Python module to analyze extracellular electrophysiology data”, and its GitHub README as a package “designed to unify preexisting spike sorting technologies into a single code base”.
This page explains what the framework is, what its stages are, how it treats the sorters it wraps, and what a lab needs to record so that a sorting result can be reproduced. All statements about the software come from its official documentation, repository, package index entry and the 2020 eLife paper, as listed under Sources.
Short answer: what SpikeInterface does
SpikeInterface does not replace the individual spike sorters. It wraps them. A researcher loads a recording once, applies preprocessing, calls one function to run a chosen sorter, and then analyses the output with shared post-processing, quality-metric, comparison and visualisation modules. The point, in the words of the eLife paper’s abstract, is that an over-saturation of new, incompatible tools hinders rigorous benchmarking and reproducible analysis, and a unified framework lets researchers “reproducibly run, compare, and benchmark most modern spike sorting algorithms”.
The package is released under the MIT license and installs from PyPI. The repository README gives pip install "spikeinterface[full]" as the install command. The PyPI entry for the latest release at the time of reading (0.106.0, uploaded 2026-11-13) states that it requires Python 3.11 or newer.
Definition and scope
Spike sorting is the step that turns a raw extracellular voltage recording into a list of putative single neurons (units) and the times at which each fired. SpikeInterface sits around that step. Per its documentation home page, the package covers:
- reading and writing many extracellular recording formats;
- preprocessing of recordings;
- running spike sorters, both popular external ones and sorters developed inside the project;
- post-processing with the SortingAnalyzer object;
- comparing and benchmarking sorting outputs;
- quality metrics, curation (machine-learning based, metrics based and manual) and visualisation (matplotlib, sortingview, Jupyter and ephyviewer);
- exporting reports and data to Phy;
- a motion and drift correction framework, and sorting components for building custom sorters.
The eLife paper (Buccino, Hurwitz, Garcia, Magland, Siegle, Hurwitz and Hennig, eLife 2020, volume 9, e61834) is the reference publication. Its abstract adds that applications to real and simulated data showed a reduced manual-curation burden and more comprehensive benchmarking than working with each tool separately.
The scope is extracellular electrophysiology data. For other signal types, such as scalp EEG and MEG analysis, a different toolkit applies; for the recording hardware that produces high-channel-count data, see the Neuropixels guide.
How SpikeInterface is used in practice
The stages below follow the order of the module list in the official documentation. They describe what each stage is for, not a step-by-step recipe; the documentation’s tutorials hold the exact calls for the version you install.
1. Read the recording
Recording and sorting objects are the common currency of the package. A recording extractor presents data from a supported format as a uniform recording object, so that every later stage works the same way whichever acquisition system produced the file. The documentation home page lists reading and writing of many extracellular formats as a core capability.
2. Preprocess
Preprocessing modules prepare the recording before sorting. The documentation also lists a motion and drift correction framework, which matters for long recordings with high-density probes where the tissue moves relative to the probe.
3. Run a sorter
The sorters module exposes one function, run_sorter(), which runs a chosen sorter and returns a sorting object. The sorters page states that installed_sorters() prints the sorters usable in the current Python environment, which is the quickest check of what a given environment can actually run. Parameters for channel groups can be passed through the dictionary returned by split_by(), so that groups of channels are sorted separately.
4. Post-process and compute quality metrics
The SortingAnalyzer is the object that holds a sorting together with its recording and the extensions computed on it (the documentation lists quality metrics, waveform-based analysis and related post-processing under this heading). Quality metrics give each unit a set of numbers that can be used to decide which units to keep.
5. Curate, compare and export
The documentation lists three curation modes: machine-learning based, metrics based and manual. It also names Bombcell and UnitRefine for curation, MEDiCINe for motion correction and SLAy for automatic merging among the newer components. Results can be exported as a report or to Phy for manual inspection, and several sorters’ outputs on the same recording can be compared with the comparison module, which is the basis of the benchmarking claim in the paper.
Sorters inside SpikeInterface: internal versus external
The sorters page separates two kinds of sorter. External sorters are wrappers around third-party tools; SpikeInterface calls them but does not ship them. The page names, among others, Kilosort (versions 1 to 4 and PyKilosort), Mountainsort4 and Mountainsort5, SpyKING Circus, Tridesclous, HerdingSpikes2, IronClust, dartsort, RTSort, Wave clus, Combinato and HDSort, and it lists Klusta and YASS as legacy sorters that are no longer supported. Internal sorters are implemented inside SpikeInterface: Lupin, Spyking Circus2, Tridesclous2 and Simple.
The practical difference is installation. The sorters page says internal sorters “only require a few extra dependencies (like hdbscan)”. For external sorters it states that “a drawback of using external sorters is the separate installation of these tools”, and that they may need “MATLAB, specific versions of CUDA, specific gcc versions or outdated versions of Python/NumPy”. The page does not say which external sorter needs which of these, so check the documentation of the particular sorter you plan to use. The data table below compares a selection of sorters by category and the installation burden the page states.
For a worked look at one of the most widely used external sorters, see the CASRAI Kilosort guide, which covers that sorter on its own; this page concerns the framework that can call it.
Containers: running a sorter without installing it
To reduce the installation problem, the sorters module can run sorters from container images. The sorters page states that the containers can be run in Docker or Singularity, so having one of them installed is a prerequisite. The images are hosted on the SpikeInterface Docker Hub. In run_sorter() a container is selected with the docker_image or singularity_image argument, and the Python packages docker or spython are needed on the host side. For GPU sorters in a container, the page states that CUDA and the nvidia-container-toolkit need to be installed, and that only NVIDIA GPUs are supported for now. It also says MATLAB-based sorters can be run in containers without a MATLAB license.
For a lab, the consequence is that the sorter version and its whole software environment can be pinned by an image tag rather than described in prose. The CASRAI dictionary entry on the container image explains the Docker, Singularity and Apptainer terms, and the Apptainer versus Docker comparison covers the runtime choice for shared HPC systems.
Where it matters for labs: reproducibility and citation
The paper’s rationale is reproducibility: when every sorter has its own input format, parameters and output, two labs sorting the same recording rarely do exactly the same thing. A single code base narrows the number of things that can differ. That is an editorial reading of the paper’s stated aim, not a guarantee that results will match across versions or machines. For the wider idea, see the CASRAI entry on computational reproducibility and the guide to reproducibility infrastructure.
The repository README also asks users to cite the eLife paper (Buccino et al. 2020) together with the papers of the individual components they use. That makes citation a two-part duty: the framework and the sorter or curation tool that actually produced the units.
A reporting checklist derived from the sources
The items below are editorial recommendations built from the documented behaviour above, not a published standard.
- The SpikeInterface version, since the package is released frequently and requires a recent Python.
- The sorter name and version, and whether it was an internal sorter, an external wrapper, or a container image (with its tag).
- The sorter parameters and any channel-group split passed to
run_sorter(). - The preprocessing steps applied, including any motion correction.
- The quality-metric thresholds or curation method used to select units, and whether manual curation in Phy was involved.
- Citations to the framework paper and to the component papers the README asks for.
SpikeInterface in Python: what a first session involves
Searchers who look for a SpikeInterface Python tutorial or a SpikeInterface tutorial generally need the sequence of decisions rather than the code, because the exact function signatures change between releases and the official tutorials track the current one. The decisions, in order, are these.
- Choose an environment. Install the package with pip, using the
[full]extra from the README if you want the optional dependencies, in an environment running Python 3.11 or newer for the current release. - Check what the environment can run. Call
installed_sorters()to see which sorters are usable; anything missing is either installed separately or run from a container. - Decide between a local install and a container. Containers need Docker or Singularity on the machine, and NVIDIA GPU use needs CUDA and the nvidia-container-toolkit.
- Load a recording and preprocess it. Use the reader that matches your acquisition format, then the preprocessing and, where relevant, motion-correction modules.
- Run the sorter and inspect the result.
run_sorter()returns a sorting object, which feeds the SortingAnalyzer, quality metrics, curation and Phy export described above.
Because sorter choice and parameters change the units you get, record them as the checklist above says rather than relying on defaults being the same next year. The framework’s own comparison module is the documented way to see how much two sorters disagree on the same recording.
Common misunderstandings
SpikeInterface is not itself a spike sorting algorithm
Most of the sorters it runs are separate projects. The framework provides the common interface and the downstream tools, although it also ships a small number of internal sorters of its own.
Installing SpikeInterface does not install every sorter
External sorters need separate installation, as the sorters page states, unless a container is used. installed_sorters() shows what the current environment can run.
A unified interface does not make sorters interchangeable in quality
The framework makes outputs comparable; it does not say which sorter is right for a given probe, brain region or species. The paper’s benchmarking is the framework’s way of letting that be measured on your own data.
Tutorials and release notes are version-specific
The documentation has changed across releases (older tutorials refer to the previous sub-package layout and older objects). Match a tutorial to the version you installed.
Sources
- SpikeInterface documentation: home page, checked 2026-11-20
- SpikeInterface documentation: Sorters module, checked 2026-11-20
- SpikeInterface GitHub repository and README, checked 2026-11-20
- PyPI: spikeinterface, checked 2026-11-20
- Buccino et al. 2020, SpikeInterface, a unified framework for spike sorting, eLife 9:e61834 (PubMed Central), abstract checked 2026-11-20 via the Europe PMC record
Data: SpikeInterface sorters by category and stated installation burden
Compiled from the Sorters module page of the SpikeInterface documentation (stable version): which sorters are listed as external wrappers around third-party tools versus internal sorters implemented in SpikeInterface, and the installation requirement the page states for each category. The page gives its requirement statement for external sorters as a group, so the same text is repeated per row.
| Sorter | Category in SpikeInterface | Installation requirement stated on the Sorters page |
|---|---|---|
| Kilosort4 | External wrapper | Separate installation of the tool; page names MATLAB, CUDA, gcc and Python/NumPy version needs generally, not per sorter |
| Mountainsort5 | External wrapper | Separate installation of the tool; same general statement |
| SpyKING Circus | External wrapper | Separate installation of the tool; same general statement |
| Tridesclous | External wrapper | Separate installation of the tool; same general statement |
| HerdingSpikes2 | External wrapper | Separate installation of the tool; same general statement |
| IronClust | External wrapper | Separate installation of the tool; same general statement |
| dartsort | External wrapper | Separate installation of the tool; same general statement |
| Lupin | Internal sorter | A few extra dependencies (such as hdbscan) |
| Spyking Circus2 | Internal sorter | A few extra dependencies (such as hdbscan) |
| Tridesclous2 | Internal sorter | A few extra dependencies (such as hdbscan) |
| Simple | Internal sorter | A few extra dependencies (such as hdbscan) |
Sources
- SpikeInterface documentation: Sorters module (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







