Skip to main content

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)

Source distribution for spikewrap 0.4.0
File Size Uploaded
spikewrap-0.4.0.tar.gz 19.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for spikewrap 0.4.0
File Interpreter ABI Platform
spikewrap-0.4.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page