spike-sorting

Automate spike sorting of extracellular multi-electrode recordings into single-unit spike trains.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill spike-sorting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spike-sorting
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/05-neuroscience/spike-sorting
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill spike-sorting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It turns raw extracellular multi-electrode recordings into per-unit spike trains by running an automated spike sorting pipeline and producing quality-controlled results.

Core Features & Use Cases

  • Automated spike sorting pipeline: Load multi-channel recordings, preprocess signals, run Kilosort2/Kilosort4 or Mountainsort5, and generate unit spike trains.
  • Quality metrics for curation: Compute SNR, ISI violations, presence ratio, amplitude cutoff, and firing rate to identify well-isolated units.
  • Export for downstream analysis: Export curated results to Phy and/or CSV for manual inspection and population analyses.

For example, a neuroscientist processing a Neuropixels session with hundreds of channels can run sorter(s) end-to-end, filter out low-quality units using metric thresholds, and export the remaining units to Phy for rapid manual validation.

Quick Start

Use the spike-sorting skill to produce curated, unit-level spike trains from your extracellular recording and export them for Phy curation.

Frequently Asked Questions about spike-sorting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate spike sorting for high-channel-count extracellular recordings?

Automate spike sorting for high-channel-count extracellular recordings by loading data into SpikeInterface, preprocessing signals, and running Kilosort2, Kilosort4, or Mountainsort5 to generate single-unit spike trains reproducibly.

What quality metrics are used to identify well-isolated units after spike sorting?

Quality metrics used to identify well-isolated units after spike sorting include SNR, ISI violations, presence ratio, amplitude cutoff, and firing rate, which filter low-quality units before exporting curated results to Phy or CSV.

Can I run Kilosort and Mountainsort5 in the same pipeline to compare sorter performance?

You can run Kilosort2, Kilosort4, and Mountainsort5 within the same SpikeInterface pipeline to compare sorter performance reproducibly across multi-probe recordings before applying quality filtering and exporting results.

Does this spike sorting workflow support exporting results to Phy for manual curation?

This spike sorting workflow supports exporting curated results to Phy for manual inspection and validation, allowing users to review well-isolated units filtered by quality metrics like SNR and ISI violations after automated sorting.

What do I need to install before processing extracellular electrophysiology data with SpikeInterface?

Before processing extracellular electrophysiology data with SpikeInterface, you need to install SpikeInterface and supporting numeric and plotting libraries to execute the load, preprocess, run sorter, compute metrics, and export pipeline.

How do I preprocess multi-probe electrophysiology recordings before running a spike sorter?

Preprocess multi-probe electrophysiology recordings within SpikeInterface by loading raw multi-channel data, applying signal preprocessing steps, and then passing the processed signals to Kilosort or Mountainsort5 for automated spike sorting.