neuropixels-analysis

Analyze Neuropixels recordings from raw data to curated unit classifications.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill neuropixels-analysis-jasrajtulsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neuropixels-analysis
Source: https://github.com/jasrajtulsi/GRAD-SCOPE/tree/main/.claude/skills/neuropixels-analysis
Command: npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill neuropixels-analysis-jasrajtulsi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill removes the complexity of analyzing Neuropixels recordings by guiding you from raw data to drift-aware sorting and curated units, so you can focus on biological interpretation instead of pipeline plumbing.

Core Features & Use Cases

  • Preprocess raw SpikeGLX, Open Ephys, or NWB recordings with filtering, bad-channel handling, and common referencing.
  • Detect and correct drift, run spike sorting with Kilosort4 or CPU alternatives, and compute quality metrics for unit assessment.
  • Apply threshold-based, model-based, or AI-assisted curation and export results to Phy, NWB, reports, and tables.
  • Use it for exploratory recording checks, full analysis pipelines, publication-ready curation, and cross-session unit quality review.

Quick Start

Use this skill to analyze a Neuropixels recording from raw acquisition through sorting, curation, and export.

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 data from SpikeGLX or Open Ephys recordings?

Spike sorting on Neuropixels data requires loading SpikeGLX or Open Ephys recordings via SpikeInterface, preprocessing with filtering and common referencing, running sorters like Kilosort4, and computing quality metrics to classify curated units.

What is the best way to correct drift and motion artifacts in extracellular ephys recordings?

Motion correction in extracellular ephys recordings involves detecting peaks in SpikeInterface, estimating probe drift across channels, and applying motion correction algorithms before executing spike sorting to ensure accurate unit separation.

Can I use SpikeInterface to curate spike sorted units and export results to Phy or NWB?

Yes, SpikeInterface supports threshold-based, model-based, or AI-assisted curation of sorted units and exports curated results to Phy for manual inspection, NWB format for sharing, or generated tables and visualization reports.

Does this Neuropixels analysis pipeline support NWB workflows for preprocessing and spike sorting?

NWB workflows are fully supported for preprocessing raw Neuropixels data, including filtering, bad-channel handling, common referencing, drift correction, spike sorting execution, and final export of curated unit classifications back to NWB.

How do I compute quality metrics for unit assessment after spike sorting?

Quality metrics for unit assessment are computed in SpikeInterface after spike sorting by evaluating waveform shapes, firing rates, and contamination scores to distinguish well-isolated single units from multi-unit or noise clusters.

What are the limitations of CPU-based spike sorting alternatives compared to Kilosort4 for Neuropixels?

CPU-based spike sorting alternatives process Neuropixels recordings without GPU acceleration, potentially limiting throughput on high-density probes compared to Kilosort4, though SpikeInterface provides compatible options for various hardware environments.