Skip to main content

Efficient spike detection and sorting for dense MEA

Project description

Herding Spikes 2

Build Status Gitter chat

Spikes


Update

This is the latest version 0.3.99, which introduces compatbility with SpikeInterface version 0.90+ (note version 0.10 is no longer supported). SpikeInterface wraps many spike sorters, can read almost any file format and contains other useful functionality into a single code base. We will soon transition to a version of Herding Spikes that fully integrates with SpikeInterface. The example notebooks in this repository illustrate the main HS2 functionality, but do not run at the moment as the data links have become stale.


Software for high density electrophysiology

This software provides functionality for the detection, localisation and clustering of spike data from dense multielectrode arrays based on the methods described in the following papers:

J.-O. Muthmann, H. Amin, E. Sernagor, A. Maccione, D. Panas, L. Berdondini, U.S. Bhalla, M.H. Hennig MH (2015). Spike detection for large neural populations using high density multielectrode arrays. Front. Neuroinform. 9:28. doi: 10.3389/fninf.2015.00028.

G. Hilgen, M. Sorbaro, S. Pirmoradian, J.-O. Muthmann, I. Kepiro, S. Ullo, C. Juarez Ramirez, A. Puente Encinas, A. Maccione, L. Berdondini, V. Murino, D. Sona, F. Cella Zanacchi, E. Sernagor, M.H. Hennig (2016). Unsupervised spike sorting for large scale, high density multielectrode arrays. Cell Reports 18, 2521–2532. bioRxiv: http://dx.doi.org/10.1101/048645.

This implementation is highly efficient, spike detection and localisation runs in real time on recordings from 4,096 channels at 7kHz on a desktop PC. Large recordings with millions of events can be sorted in minutes.

Since we believe publicly funded research code should be free and open, all code is released under GPL-3.0.

Supported systems

Contributors, alphabetical

Quick start

The code has been tested with Python version 3.6 and above. If your system does not have Python pre-installed, the Anaconda distribution may be used.

All operative systems - Installation via pip

We suggest you use Anaconda if you don't have a favourite Python installed yet. We also recommend installing the code in a virtual environment (see below in the "from source" sections).

A pip distribution is available and can be installed as follows:

pip install herdingspikes

To install from source, clone this repository and follow the instructions below.

Linux/Mac - from source

The module can automatically be installed, including all dependencies, by cloning this repository:

git clone https://github.com/mhhennig/HS2.git

Then run:

pip install numpy scipy
python setup.py install

Windows

1. Visual Studio

The C++ code in Herding Spikes requires the Microsoft C++ Build tools. Install them from https://visualstudio.microsoft.com/visual-cpp-build-tools/. For a minimal setup, choose Desktop development with C++:

and select these packages:

2. Python and Herding Spikes

Install Anaconda ands create a Python environment. This can be done with the Anaconda Navigator per mouse click.

Then opoen a ternminal in the newly created environment and type

pip install herdingspikes

Example code

Example code for the different supported systems is in the folder notebooks. These can be run without installing HS2 system-wide, but requires to run python setup.py build_ext --inplace in the HS2 directory. Next, run jupyter notebook and navigate to the directory to try the code. Each notebook will download a short segment of raw data.

Go here for documentation. A worked example for Biocam data is here.

Contact

The herders are based at the School of Informatics, University of Edinburgh. Contact us here, we are happy to help.

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

herdingspikes-0.3.103.tar.gz (220.4 kB view details)

Uploaded Source

File details

Details for the file herdingspikes-0.3.103.tar.gz.

File metadata

  • Download URL: herdingspikes-0.3.103.tar.gz
  • Upload date:
  • Size: 220.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.4

File hashes

Hashes for herdingspikes-0.3.103.tar.gz
Algorithm Hash digest
SHA256 51ecd56df452405d52d9d1628dc6cf98b7d32bfc206324c35bcb706255497465
MD5 7311e5b12b12d5fa8cd009c60e3c16d0
BLAKE2b-256 985787f6b157851013c7985d7dff70aaac9d3900c553f78caed411b3ce9c00f2

See more details on using hashes here.

Provenance

Supported by

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