neuropixels-analysis

Process Neuropixels recordings into curated neural units using SpikeInterface.

18|1|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill neuropixels-analysis-logauaengstrom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neuropixels-analysis
Source: https://github.com/LogauaEngstrom/claude-scientific-skills/tree/main/scientific-skills/neuropixels-analysis
Command: npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill neuropixels-analysis-logauaengstrom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spikeinterface, numpy, pandas, matplotlib, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Neuropixels data analysis pipeline provides a reproducible, end-to-end workflow to transform raw electrophysiology data into curated neural units, enabling researchers to extract high-quality insights with fewer manual steps.

Core Features & Use Cases

  • Load and preprocess Neuropixels recordings from SpikeGLX/OpenEphys/NWB formats, including filtering, bad-channel detection, and CAR/CMR.
  • Apply motion/drift correction and perform spike sorting with multiple algorithms (Kilosort4, SpykingCircus2, Mountainsort5) to produce reliable unit separations.
  • Compute post-processing metrics (waveforms, templates, quality metrics) and automate unit curation using Allen/IBL criteria, with optional AI-assisted visual curation for uncertain units.
  • Export results to Phy or NWB, generate publication-ready reports, and visualize drift, quality metrics, and unit summaries.

Quick Start

Run the Neuropixels data analysis pipeline on your dataset to obtain sorted units and quality metrics.

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 recordings with drift correction?

To run spike sorting with drift correction on Neuropixels recordings, load raw SpikeGLX, OpenEphys, or NWB data, apply preprocessing and motion correction, then execute algorithms like Kilosort4, SpykingCircus2, or Mountainsort5 to isolate reliable units.

Can I use SpikeInterface for automated unit curation on Neuropixels 2.0 data?

Yes, you can use SpikeInterface for automated unit curation on Neuropixels 2.0 data by computing post-processing quality metrics and applying Allen or IBL criteria to identify well-isolated neural units with minimal manual intervention.

What is the best way to preprocess raw electrophysiology data from SpikeGLX before spike sorting?

The best way to preprocess raw SpikeGLX electrophysiology data involves filtering, detecting bad channels, and applying Common Average Reference (CAR) or Common Median Reference (CMR) to prepare clean signals for accurate spike sorting.

Does this workflow support exporting sorted units and quality metrics to Phy and NWB formats?

Yes, the workflow supports exporting sorted units, waveforms, templates, and quality metrics to Phy for manual inspection and NWB for standardized data sharing, while also generating publication-ready reports for visualizing drift and unit summaries.

Do I need Python data-science libraries like NumPy and pandas for Neuropixels data analysis?

Yes, you need Python data-science libraries like NumPy, pandas, and matplotlib alongside SpikeInterface to process Neuropixels recordings, compute quality metrics, visualize drift, and generate publication-ready unit summaries.

How does AI-assisted visual curation handle uncertain units in spike sorting outputs?

AI-assisted visual curation handles uncertain units in spike sorting outputs by providing an optional layer of automated review that evaluates waveforms and quality metrics to classify borderline units, reducing manual verification time while maintaining curation accuracy.