Skip to content
Back to skills

Neuro Spike Sorting Qc

ASecurity

Run spike sorting and quality control of sorted units from extracellular recordings (Neuropixels with SpikeGLX or Open Ephys, tetrodes, Utah arrays, MEAs; Kilosort 4, MountainSort, SpykingCircus2, SpikeInterface, Phy, Bombcell, UnitRefine, UnitMatch, CatGT, TPrime). Use whenever the user sorts spikes, sets sorter parameters, preprocesses for sorting, curates clusters, decides which units are single units, computes ISI violations or other unit metrics, deals with drift, syncs probe data with b...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 13, 2026
ai-agentsrustgo

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add Hillock-NeuroTech/neurotech-skills --skill neuro-spike-sorting-qc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Neuro Spike Sorting Qc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Neuro Spike Sorting Qc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hillock-neurotech-neuro-spike-sorting-qc/badge)](https://www.skillsdirectory.com/skills/hillock-neurotech-neuro-spike-sorting-qc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: neuro-spike-sorting-qc
description: Run spike sorting and quality control of sorted units from extracellular recordings (Neuropixels with SpikeGLX or Open Ephys, tetrodes, Utah arrays, MEAs; Kilosort 4, MountainSort, SpykingCircus2, SpikeInterface, Phy, Bombcell, UnitRefine, UnitMatch, CatGT, TPrime). Use whenever the user sorts spikes, sets sorter parameters, preprocesses for sorting, curates clusters, decides which units are single units, computes ISI violations or other unit metrics, deals with drift, syncs probe data with behaviour, or tracks units across days.
---

# Spike sorting and quality control

Sorter output is a list of candidate clusters, not neurons. Decide which
are well isolated single units with explicit metrics, applied the same way
to every session, and report the thresholds.

## 0. Load the tool reference

| Task | Reference |
|---|---|
| Read, preprocess, sort, analyse, compare with ground truth in SpikeInterface | `references/spikeinterface.md` |
| Kilosort 4 settings, outputs, checks | `references/kilosort.md` |
| Metrics, Bombcell, UnitRefine, merges, Phy, UnitMatch | `references/curation.md` |
| Neuropixels: SpikeGLX, Open Ephys, phase shift, drift, CatGT/TPrime sync, probe localisation | `references/neuropixels.md` |

Each has a recipe checked against the current library, its traps, and
what to report. Loading other acquisition formats: `neuro-file-formats`.

## 1. Before sorting

- Check the probe geometry file matches the hardware (site positions,
  channel order; see `neuro-channel-map-verifier`).
- Common-average or common-median reference and high-pass (about 300 Hz)
  as the sorter expects.
- Estimate and correct drift (Kilosort and SpikeInterface motion
  correction); look at the drift map before trusting long recordings.

## 2. Compute standard metrics per unit

Use SpikeInterface `compute_quality_metrics` or Bombcell:

| Metric | Measures | Commonly used threshold |
|---|---|---|
| ISI violations (refractory, about 1.5 ms) | contamination by other spikes | violation ratio below 0.5, or contamination estimate below about 10% |
| Amplitude cutoff | spikes lost below detection threshold | below 0.1 |
| Presence ratio | unit present across the session | above 0.9 |
| Firing rate | very low rates make metrics unreliable | above about 0.1 Hz |
| SNR / amplitude | separation from noise | dataset dependent |
| Isolation distance, L-ratio, d' | cluster separation in feature space | relative, compare within dataset |
| Drift | position change over time | flag large drift |

The thresholds in the table follow commonly used defaults (Allen Institute
pipelines; Siegle et al. 2021) and are a starting point, not a rule. State
the ones you use.

## 3. Curate

1. Auto-label with metrics (good / MUA / noise).
2. Inspect borderline units in Phy or SpikeInterface GUI: waveform shape
   and spatial footprint, autocorrelogram (refractory dip), amplitude over
   time (drift or loss), cross-correlograms with neighbours (merge
   candidates show a refractory dip in the cross-correlogram).
3. Remove noise clusters (non-physiological waveforms, waveforms on all
   channels, line-frequency locked).
4. Log every manual merge or split.

## 4. Report

Sorter and version, parameters, drift correction, metric thresholds,
counts of good/MUA/noise units per session, and which analyses use only
single units vs multi-unit activity.

## References

Hill, Mehta & Kleinfeld 2011 (quality metrics); Siegle et al. 2021
(Allen Brain Observatory); Fabre et al. 2023 (Bombcell); Buccino et al.
2020 (SpikeInterface); Pachitariu et al. 2024 (Kilosort4).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.