Giter Club home page Giter Club logo

isin's Introduction

Parameters for burst detection (Python3)

This code is unofficial Python3 implementation of the following paper's algorithm:

Bakkum DJ, Radivojevic M, Frey U, Franke F, Hierlemann A, Takahashi H. Parameters for burst detection. Front Comput Neurosci. 2014 Jan 13;7:193. doi: 10.3389/fncom.2013.00193. PMID: 24567714; PMCID: PMC3915237.

Install

After cloning this repository, do:

(venv) cd ISIn
(venv) pip install .  # make sure you're in the virtual environment for your project

Example

See details in examples directory.

from ISIn import BurstDetector

spike_train = np.array([])  # prepare a single spike train (np.array) that combines all spikes from multiple channels
bursts = BurstDetector.detect(spiketime=spike_train, n=500, threshold=100)

print(bursts[i])  # ith burst
print(bursts[:, 0])  # array of all bursts' start time
print(bursts[:, 1])  # array of all bursts' end time

Optimal n_list varies a lot depending on your data (e.g. culturing density, the number of channels), so I recommend trying various N values.

isin's People

Contributors

tk-neuron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.