All Projects → AllenInstitute → ecephys_spike_sorting

AllenInstitute / ecephys_spike_sorting

Licence: other
Modules for processing extracellular electrophysiology data from Neuropixels probes

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
Makefile
30231 projects
Objective-C++
1391 projects
matlab
3953 projects
shell
77523 projects

Projects that are alternatives of or similar to ecephys spike sorting

CellExplorer
CellExplorer is a graphical user interface, a standardized processing module and data structure for exploring and classifying single cells acquired using extracellular electrodes.
Stars: ✭ 55 (+0%)
Mutual labels:  electrophysiology, spikes
NeuroPyxels
NeuroPyxels (npyx) is a python library built for electrophysiologists using Neuropixels electrodes. This package stems from the need of a pythonist who really did not want to transition to MATLAB to work with Neuropixels: it features a suite of core utility functions for loading, processing and plotting Neuropixels data.
Stars: ✭ 22 (-60%)
Mutual labels:  electrophysiology
barque
Environmental DNA metabarcoding taxonomic identification
Stars: ✭ 14 (-74.55%)
Mutual labels:  analysis-pipeline
Neuroimaging.jl
Neuroimaging in Julia
Stars: ✭ 39 (-29.09%)
Mutual labels:  electrophysiology
hnn
The Human Neocortical Neurosolver (HNN) is a software tool that gives researchers/clinicians the ability to develop/test hypotheses on circuit mechanisms underlying EEG/MEG data.
Stars: ✭ 62 (+12.73%)
Mutual labels:  electrophysiology
PRISM
An alternative to MCMC for rapid analysis of models
Stars: ✭ 40 (-27.27%)
Mutual labels:  analysis-pipeline
neurotic
Curate, visualize, annotate, and share your behavioral ephys data using Python
Stars: ✭ 24 (-56.36%)
Mutual labels:  electrophysiology
liblsl
C++ lsl library for multi-modal time-synched data transmission over the local network
Stars: ✭ 70 (+27.27%)
Mutual labels:  electrophysiology
spikesorters
Python-based module with spike sorter wrappers and a simple API for running them.
Stars: ✭ 19 (-65.45%)
Mutual labels:  electrophysiology
mtscomp
Multichannel time series lossless compression in pure Python based on NumPy and zlib
Stars: ✭ 20 (-63.64%)
Mutual labels:  electrophysiology
elephant
Elephant is the Electrophysiology Analysis Toolkit
Stars: ✭ 140 (+154.55%)
Mutual labels:  electrophysiology
spikeinterface
A Python-based module for creating flexible and robust spike sorting pipelines.
Stars: ✭ 193 (+250.91%)
Mutual labels:  electrophysiology
phy-contrib
[This repository is archived, will be deprecated after the release of phy 2.0]
Stars: ✭ 28 (-49.09%)
Mutual labels:  electrophysiology
spectral connectivity
Frequency domain estimation and functional and directed connectivity analysis tools for electrophysiological data
Stars: ✭ 57 (+3.64%)
Mutual labels:  electrophysiology
Awesome Single Cell
Community-curated list of software packages and data resources for single-cell, including RNA-seq, ATAC-seq, etc.
Stars: ✭ 1,937 (+3421.82%)
Mutual labels:  analysis-pipeline
thermography
Automatic detection of defected solar panel modules
Stars: ✭ 59 (+7.27%)
Mutual labels:  analysis-pipeline

ecephys spike sorting

ecephys_spike_sorting_icon

https://github.com/AllenInstitute/ecephys_spike_sorting

Modules for processing extracellular electrophysiology data from Neuropixels probes.

python versions

Overview

The first three modules take data saved by the Open Ephys GUI and prepare it for spike sorting by Kilosort2. Following the spike-sorting step (using the kilosort_helper module), we clean up the outputs and calculate mean waveforms and quality metrics for each unit.

This code is still under development, and we welcome feedback about any step in the pipeline.

Further documentation can be found in each module's README file. For more information on Kilosort2, please read through the GitHub wiki.

Modules

  1. extract_from_npx: Calls a binary executable that converts data from compressed NPX format into .dat files (continuous data) and .npy files (event data)

  2. depth_estimation: Uses the LFP data to identify the surface channel, which is required by the median subtraction and kilosort modules.

  3. median_subtraction: Calls a binary executable that removes the DC offset and common-mode noise from the AP band continuous file.

  4. kilosort_helper: Generates config files for Kilosort and launches spike sorting via the Matlab engine.

  5. kilosort_postprocessing: Removes putative double-counted spikes from Kilosort output.

  6. noise_templates: Identifies noise units based on their waveform shape and ISI histogram.

  7. mean_waveforms: Extracts mean waveforms from the raw data, given spike times and unit IDs. Also calculates metrics for each waveform.

  8. quality_metrics: Calculates quality metrics for each unit to assess isolation and sorting quality.

(Not used) automerging: Automatically merges templates that belong to the same unit (included in case it's helpful to others).

Installation and Usage

These modules require Python 3.5+, and have been tested with Python 3.5, 3.6, and 3.7.

Three of the modules (extract_from_npx, median_subtraction, and kilosort_helper) have non-Python dependencies that will need to be installed prior to use.

We recommend using pipenv to run these modules. From the ecephys_spike_sorting top-level directory, run the following commands from a terminal:

Linux

    $ pip install --user pipenv
    $ export PIPENV_VENV_IN_PROJECT=1
    $ pipenv install
    $ pipenv shell
    (ecephys_spike_sorting) $ pip install .

You can now edit one of the processing scripts found in ecephys_spike_sorting/scripts and run via:

    (ecephys_spike_sorting) $ python ecephys_spike_sorting/scripts/batch_processing.py

See the scripts README file for more information on their usage.

To leave the pipenv virtual environment, simply type:

    (ecephys_spike_sorting) $ exit

macOS

If you don't have it already, install homebrew. Then, type:

    $ brew install pipenv
    $ export PIPENV_VENV_IN_PROJECT=1
    $ pipenv install
    $ pipenv shell
    (ecephys_spike_sorting) $ pip install .

You can now edit one of the processing scripts found in ecephys_spike_sorting/scripts and run via:

    (ecephys_spike_sorting) $ python ecephys_spike_sorting/scripts/batch_processing.py

See the scripts README file for more information on their usage.

To leave the pipenv virtual environment, simply type:

    (ecephys_spike_sorting) $ exit

Windows

    $ pip install --user pipenv
    $ set PIPENV_VENV_IN_PROJECT=1
    $ pipenv install
    $ pipenv shell
    (.venv) $ pip install .

Note: This will work in the standard Command Prompt, but the cmder console emulator has better compatibility with Python virtual environments.

You can now edit one of the processing scripts found in ecephys_spike_sorting\scripts and run via:

    (.venv) $ python ecephys_spike_sorting\scripts\batch_processing.py

See the scripts README file for more information on their usage.

To leave the pipenv virtual environment, simply type:

    (.venv) $ exit

Level of Support

This code is an important part of the internal Allen Institute code base and we are actively using and maintaining it. The implementation is not yet finalized, so we welcome feedback about any aspects of the software. If you'd like to submit changes to this repository, we encourage you to create an issue beforehand, so we know what others are working on.

Terms of Use

See Allen Institute Terms of Use

© 2019 Allen Institute for Brain Science

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].