Run extracellular electrophysiology analysis with SpikeInterface
Project description
spikewrap
spikewrap is a tool for automating extracellular electrophysiology analysis.
See the documentation for a quick feature overview and to get started.
Overview
spikewrap provides a lightweight interface to manage the preprocessing and sorting
of extracellular electrophysiological data.
Built on SpikeInterface, spikewrap offers a convenient wrapper
to run sorting pipelines. It aims to facilitate the sharing of electrophysiology pipelines and standardize project folders.
For example, all runs for a recording session can be preprocessed with:
import spikewrap as sw
subject_path = sw.get_example_data_path() / "rawdata" / "sub-001"
session = sw.Session(
subject_path=subject_path,
session_name="ses-001",
file_format="spikeglx", # or "openephys"
run_names="all",
probe=None, # optional argument to set probe (neuropixels auto-detected)
)
session.save_sync_channel()
session.preprocess(
configs="neuropixels+kilosort2_5",
per_shank=True,
concat_runs=False,
)
session.save_preprocessed(
overwrite=True,
n_jobs=12,
slurm=True
)
This will output a folder structure like:
└── derivatives/
└── sub-001/
└── ses-001/
└── ephys/
├── run-001/
│ ├── preprocessed/
│ │ ├── shank_0/
│ │ │ └── si_recording/
│ │ │ └── <spikeinterface binary>
│ │ └── shank_1/
│ │ └── si_recording/
│ │ └── <spikeinterface binary>
│ └── sync/
│ └── sync_channel.npy
└── run-002/
└── ...
Installation
pip install spikewrap
Get Involved
Contributions to spikewrap are welcome and appreciated! Please see our contributing guide for details, and don't hesitate to ask any questions on our Zulip Chat.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spikewrap-0.3.1.tar.gz.
File metadata
- Download URL: spikewrap-0.3.1.tar.gz
- Upload date:
- Size: 19.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac01acf5a35e94756ed427fdbfa706921f87de7eb783cf671375ad0d4ca4a9b
|
|
| MD5 |
ef6bd538063c92b1a0d13f0ac3fee05f
|
|
| BLAKE2b-256 |
739b560f7baca044e1ee646977a50a10c5c0b3e3fc6efe0af6edba38351c0e17
|
File details
Details for the file spikewrap-0.3.1-py3-none-any.whl.
File metadata
- Download URL: spikewrap-0.3.1-py3-none-any.whl
- Upload date:
- Size: 18.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dcd45bdbdcf1411a28722bbba9c10acd1b50285ffd123ad082ad3f53d6a71b9
|
|
| MD5 |
afaac295893ab12c2a4dcf5765f1bd4f
|
|
| BLAKE2b-256 |
184fb98b65112d2c7069e6a003d27b35f70a87eb7dc90352505f687878d17141
|