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.3.1.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.3.1-py3-none-any.whl (18.6 MB view details)

Uploaded Python 3

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

Hashes for spikewrap-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0ac01acf5a35e94756ed427fdbfa706921f87de7eb783cf671375ad0d4ca4a9b
MD5 ef6bd538063c92b1a0d13f0ac3fee05f
BLAKE2b-256 739b560f7baca044e1ee646977a50a10c5c0b3e3fc6efe0af6edba38351c0e17

See more details on using hashes here.

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

Hashes for spikewrap-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dcd45bdbdcf1411a28722bbba9c10acd1b50285ffd123ad082ad3f53d6a71b9
MD5 afaac295893ab12c2a4dcf5765f1bd4f
BLAKE2b-256 184fb98b65112d2c7069e6a003d27b35f70a87eb7dc90352505f687878d17141

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