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.
Metadata
Release files for spikewrap 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spikewrap-0.4.0.tar.gz | 19.1 MB | Without provenance | Details for spikewrap-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spikewrap-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for spikewrap-0.4.0-py3-none-any.whl |
Total release size: 37.7 MB
Release files / spikewrap-0.4.0.tar.gz
| Download URL | spikewrap-0.4.0.tar.gz |
|---|---|
| Size | 19.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d83570341f787bb1bbc39e0c89cdcbe46e9915250690c6fdd0c33606ad4906d
|
|
BLAKE2b-256 checksum How to use checksums |
617fc9075ee0ecc7f2409f418dca6a6c994b3e28ffd098a8f85399b3e6186cc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / spikewrap-0.4.0-py3-none-any.whl
| Download URL | spikewrap-0.4.0-py3-none-any.whl |
|---|---|
| Size | 18.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5ada7ed588eb1c0bac6e652a70ce3e2d683346d4c790e2cf06841dc3a8575cf
|
|
BLAKE2b-256 checksum How to use checksums |
e569c7caa5e4090dfb7d54df50bc443f148db49476ac4bcd7f72006e4a6b5afa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for spikewrap 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.