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.
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-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/neuropixels-analysis ~/.gemini/antigravity-cli/skills/neuropixels-analysisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install neuropixels-analysis in Antigravity CLI
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
ANo 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 →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
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.
