Installation
Basic Install
Install SpikeLab from source using pip:
pip install spikelab
Optional Extras
SpikeLab keeps most dependencies optional so the core library stays lightweight. Install only what you need:
Extra |
Command |
Includes |
|---|---|---|
|
|
pandas (KiloSort cluster info) |
|
|
scikit-learn, umap-learn, networkx, python-louvain |
|
|
neo, quantities, pynwb |
|
|
ONE-api (query and load IBL Brain-Wide Map datasets); |
|
|
numba (JIT-compiled analysis functions) |
|
|
boto3 (Amazon S3 access) |
|
|
poor-man-gplvm, jax, jaxlib, jaxopt, optax |
|
|
spikeinterface, natsort, six, pandas |
|
|
kilosort (PyTorch + CUDA must be installed separately) |
|
|
pydantic, PyYAML, Jinja2, kubernetes |
|
|
mcp (Model Context Protocol server) |
|
|
Everything above plus dev and docs dependencies |
Development Install
To install from source in editable mode (for contributing or local development):
git clone https://github.com/braingeneers/spikelab.git
cd spikelab/SpikeLab
pip install -e ".[dev]"
This installs the package in development mode along with testing tools (pytest, pytest-asyncio, black).