Skip to main content

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

spikewrap-0.4.0.tar.gz (19.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spikewrap-0.4.0-py3-none-any.whl (18.6 MB view details)

Uploaded Python 3

File details

Details for the file spikewrap-0.4.0.tar.gz.

File metadata

  • Download URL: spikewrap-0.4.0.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

Hashes for spikewrap-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1d83570341f787bb1bbc39e0c89cdcbe46e9915250690c6fdd0c33606ad4906d
MD5 a656642cd9e09423b327a714ead38892
BLAKE2b-256 617fc9075ee0ecc7f2409f418dca6a6c994b3e28ffd098a8f85399b3e6186cc5

See more details on using hashes here.

File details

Details for the file spikewrap-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: spikewrap-0.4.0-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

Hashes for spikewrap-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5ada7ed588eb1c0bac6e652a70ce3e2d683346d4c790e2cf06841dc3a8575cf
MD5 fedadf98f1714b85a7d7e58990bf6772
BLAKE2b-256 e569c7caa5e4090dfb7d54df50bc443f148db49476ac4bcd7f72006e4a6b5afa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page