neuropixels-analysis

Automate Neuropixels recording analysis with SpikeInterface preprocessing and spike sorting.

Updated May 17, 2026
One-click install
npx skills add https://github.com/galeep/plugin-place --skill neuropixels-analysis-galeep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neuropixels-analysis
Source: https://github.com/galeep/plugin-place/tree/main/plugins/sci-lab-automation/skills/neuropixels-analysis
Command: npx skills add https://github.com/galeep/plugin-place --skill neuropixels-analysis-galeep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spikeinterface, probeinterface, neo, kilosort, spykingcircus, mountainsort5, tridesclous, unitrefine, anthropic, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides an end-to-end analysis pipeline for Neuropixels extracellular recordings, covering preprocessing, spike sorting, quality metrics, and unit curation.

Core Features & Use Cases

  • End-to-End Pipeline: Handles all steps from data loading to publication-ready curated units.
  • Spike Sorting: Integrates various spike sorting algorithms (Kilosort4, SpykingCircus2, Mountainsort5, Tridesclous2) and supports motion correction and drift correction.
  • Quality Metrics: Computes comprehensive metrics like SNR, ISI violations, and isolation distance to assess unit quality.
  • Unit Curation: Offers threshold-based, model-based (UnitRefine), and AI-assisted visual review for unit curation.
  • Use Case: Ideal for researchers analyzing high-density neural recordings, especially in spike sorting, extracellular electrophysiology, and Neuropixels recordings.

Quick Start

Load the 'neuropixels_analysis' skill and execute the complete pipeline for spike sorting on your recording by running: python scripts/neuropixels_pipeline.py /path/to/spikeglx/data output/ --sorter kilosort4 --curation allen

Frequently Asked Questions about neuropixels-analysis

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

FAQPage Schema
How do I run spike sorting on Neuropixels extracellular recordings?

You can run spike sorting on Neuropixels extracellular recordings by executing the Python pipeline script, specifying your SpikeGLX data path, output directory, sorter, and curation method. This automates preprocessing, sorting, and unit curation end-to-end.

Can I use Kilosort or Mountainsort5 for high-density neural recording analysis?

Yes, high-density neural recording analysis supports multiple spike sorting algorithms including Kilosort4, Mountainsort5, SpykingCircus2, and Tridesclous2. You can select your preferred sorter as a command-line argument when running the pipeline.

How does unit curation work for extracellular electrophysiology data?

Unit curation for extracellular electrophysiology data uses threshold-based filtering, model-based refinement with UnitRefine, and AI-assisted visual review. It computes quality metrics like SNR, ISI violations, and isolation distance to assess unit quality.

Do I need SpikeInterface to preprocess Neuropixels data and apply motion correction?

Yes, SpikeInterface and related libraries like probeinterface and neo are required to preprocess Neuropixels data. The pipeline relies on these dependencies to handle data loading, motion correction, and drift correction.

What is the best way to analyze high-density neural recordings from start to finish?

The best way to analyze high-density neural recordings is using an end-to-end pipeline that handles preprocessing, spike sorting, quality metrics computation, and unit curation. This automates the workflow from raw data loading to publication-ready curated units.

Why does spike sorting require drift correction for Neuropixels probes?

Spike sorting requires drift correction for Neuropixels probes because high-density extracellular recordings often experience electrode drift over time. Applying motion correction ensures accurate spike extraction and reduces false unit merges or splits during sorting.