Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

neuropixels-analysis

Skill by davila7

Neuropixels Data Analysis is a skill for analyzing Neuropixels extracellular recordings. It covers loading SpikeGLX and Open Ephys data, preprocessing, motion correction, Kilosort4 spike sorting, quality metrics, and unit curation.

  • Score 94
  • 35k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install neuropixels-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/neuropixels-analysis ~/.claude/skills/neuropixels-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install neuropixels-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a toolkit for analyzing Neuropixels high-density neural recordings. It follows practices from SpikeInterface, the Allen Institute, and the International Brain Laboratory (IBL). It covers the workflow from raw SpikeGLX, Open Ephys, or NWB data to curated units. The steps include preprocessing with filtering, phase shift, bad channel detection and common reference, drift estimation and correction, and spike sorting with Kilosort4 or other sorters.

The skill also covers postprocessing with a SortingAnalyzer, quality metrics, and Allen or IBL style curation. It can run an optional AI-assisted review of uncertain units, generate an HTML report, and export results to Phy or NWB. The source says it is for researchers working with Neuropixels 1.0 and 2.0 extracellular electrophysiology data.

Written from the project's SKILL.md and checked against it.

What it can do

  • Load recordingsReads SpikeGLX, Open Ephys and NWB data using SpikeInterface readers.
  • Preprocess dataApplies highpass filtering, phase shift, bad channel removal and common reference.
  • Check and correct driftEstimates motion in a recording and applies motion correction when needed.
  • Spike sortingRuns Kilosort4 and other sorters such as SpykingCircus2 and Mountainsort5.
  • Quality metricsComputes postprocessing extensions and metrics such as SNR, ISI violations and presence ratio.
  • Unit curationFilters units with Allen or IBL style criteria or a strict preset.
  • AI-assisted curationReviews waveform and correlogram plots for uncertain units, either in Claude Code or via the API.
  • Analysis reportGenerates an HTML report with summary stats, figures and a unit table.
  • Export resultsExports data to Phy for manual review, to NWB, or saves metrics as CSV.

What you need

  • Python
  • SpikeInterface and related packages
  • GPU for Kilosort4
  • Anthropic API client (optional, for API-based AI curation)
  • IBL tools (optional)

Try asking

  • Load my SpikeGLX recording and run preprocessing with phase shift and CAR.
  • Estimate drift in this Neuropixels recording and plot a drift map.
  • Run Kilosort4 on my preprocessed data and compute quality metrics.

Good to know

  • Kilosort4 requires a GPU according to the source.
  • Phase shift correction is listed as required for Neuropixels 1.0 probes, not 2.0.
  • AI-assisted curation via the API needs an Anthropic client set up.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: cli-tool/components/skills/scientific/neuropixels-analysis/SKILL.md, cli-tool/components/skills/scientific/neuropixels-analysis/assets/analysis_template.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/compute_metrics.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/explore_recording.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/export_to_phy.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/neuropixels_pipeline.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/preprocess_recording.py, cli-tool/components/skills/scientific/neuropixels-analysis/scripts/run_sorting.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AI_CURATION.md8 KB
  • ANALYSIS.md10 KB
  • AUTOMATED_CURATION.md10 KB
  • LICENSE.txt1 KB
  • MOTION_CORRECTION.md8 KB
Show all 19 files
  • PREPROCESSING.md7 KB
  • QUALITY_METRICS.md9 KB
  • SKILL.md11 KB
  • SPIKE_SORTING.md8 KB
  • assets/analysis_template.py9 KB
  • references/api_reference.md8 KB
  • references/plotting_guide.md11 KB
  • references/standard_workflow.md8 KB
  • scripts/compute_metrics.py5 KB
  • scripts/explore_recording.py5 KB
  • scripts/export_to_phy.py2 KB
  • scripts/neuropixels_pipeline.py13 KB
  • scripts/preprocess_recording.py4 KB
  • scripts/run_sorting.py3 KB

Alternatives to neuropixels-analysis

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

neuropixels-analysis: common questions

Which recording formats does this skill support?

The source lists SpikeGLX (.ap.bin, .lf.bin, .meta), Open Ephys (.continuous, .oebin) and NWB (.nwb) formats.

Which spike sorters can it run?

The source shows Kilosort4, tridesclous2, SpykingCircus2 and Mountainsort5 as sorter options.

Does it need an AI API key?

No. The source says AI curation can run inside Claude Code without API setup, while the programmatic route uses the Anthropic client.

How do I install neuropixels-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is neuropixels-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is neuropixels-analysis safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to neuropixels-analysis?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

neuropixels-analysis Install

Add to stack

Loading.