neuropixels-analysis

Analyze Neuropixels recordings end-to-end and export curated units to Phy/NWB.

21|1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/OwnLabAI/ownlab --skill neuropixels-analysis-ownlabai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neuropixels-analysis
Source: https://github.com/OwnLabAI/ownlab/tree/main/mart/skills/scientific-skills/neuropixels-analysis
Command: npx skills add https://github.com/OwnLabAI/ownlab --skill neuropixels-analysis-ownlabai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Neuropixels data analysis pipeline enables researchers to go from raw electrophysiology recordings to curated neural units with standardized preprocessing, drift correction, spike sorting, quality metrics, and automated or AI-assisted curation, culminating in ready-to-share Phy or NWB exports.

Core Features & Use Cases

  • End-to-end workflow for Neuropixels data, including loading SpikeGLX/Open Ephys/NWB formats and preparing data for analysis.
  • Preprocessing and drift correction: filtering, phase correction, bad-channel removal, common median reference, motion correction.
  • Spike sorting support: multiple sorters (e.g., kilosort4, spykingcircus, mountainsort5) with postprocessing and quality metrics.
  • Quality metrics and curation: compute metrics, apply Allen/IBL/Strict criteria, optional AI-assisted curation, and AI visual analysis prompts.
  • Export and visualization: export to Phy/NWB, generate reports, and provide plotting utilities for unit summaries and drift analyses.
  • References and templates: bundled references guides and an analysis template to accelerate adoption.

Quick Start

Load a Neuropixels data file and run the end-to-end analysis pipeline to generate curated units and export Phy/NWB artifacts.

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 and drift correction on raw Neuropixels electrophysiology recordings?

Run spike sorting and drift correction on Neuropixels data by loading raw electrophysiology recordings to apply preprocessing, motion correction, and automated sorting, producing curated neural units for downstream analysis.

What is AI-assisted curation for spike sorting outputs?

AI-assisted curation for spike sorting applies automated quality metrics and visual analysis prompts to refine sorted units, using Allen, IBL, or Strict criteria to filter noise and produce publication-ready neural outputs.

Does SpikeInterface support kilosort4 and other spike sorters for Neuropixels data?

SpikeInterface supports GPU-accelerated sorters like kilosort4 as well as CPU fallbacks including spykingcircus and mountainsort5, enabling flexible spike sorting across different hardware environments for Neuropixels analysis.

How do I export curated spike sorting results to Phy or NWB format?

Export curated spike sorting results to Phy or NWB format by running the end-to-end Neuropixels pipeline, which generates ready-to-share visualization files and standardized neural data outputs for publication.

Can I use this pipeline for bad-channel removal and common median reference on extracellular recordings?

Yes, you can perform bad-channel removal and common median reference on extracellular recordings, as the pipeline applies standardized preprocessing steps including phase correction and motion correction to prepare Neuropixels data.

What are the limitations of automated curation criteria for spike sorted units?

Automated curation limitations stem from the strictness of Allen, IBL, or Strict criteria applications, which may require manual visual verification in Phy to ensure no true units are incorrectly discarded during the spike sorting process.