Coder Social home page Coder Social logo

agustinsolano / ebosc_py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkosciessa/ebosc_py

0.0 0.0 0.0 441 KB

extended Better Oscillation Detection method, implemented in python

License: GNU General Public License v3.0

Python 98.69% MATLAB 1.31%

ebosc_py's Introduction

eBOSC: extended Better OSCillation Detection

DOI

Rhythm

Overview


eBOSC_py (extended Better OSCillation detection) is a toolbox that can be used to detect the occurrence of neural rhythms in continuous time series at the single trial level. It uses a static aperiodic ‘background’ spectrum as the basis to define a ‘power threshold’ that continuous signals have to exceed in order to qualify as ‘rhythmic’. As such, it leverages the observation that stochastic components of the frequency spectrum of neural data are aharacterized by a '1/f'-like power spectrum. An additional ‘duration threshold’ can be set up in advance, or rhythmic episodes can be filtered by duration following detection to ensure that detected rhythmic episodes have a rather sustained vs. transient appearance.

Documentation


A project wiki for eBOSC is available here.

Simulation scripts and data files regarding the 2020 NeuroImage paper can be found at https://github.com/jkosciessa/eBOSC_resources_NI2020.

A MATLAB implementation can be found here.

Installation


Get the latest development version using git: git clone https://github.com/jkosciessa/eBOSC_py

To install this cloned copy, move into the cloned directory and run: pip install .

The example files in the /data directory are stored in Git Large File Storage. To retrieve them install the lfs (git lfs install), and then get the files with git lfs pull.

To get started, see the example provided in examples/eBOSC_example_empirical.ipynb. Data is based off a FieldTrip structure and conversion scripts to MNE-style format are provided in the examples directory.

Releases are also available from pypi.org and can be installed via pip install ebosc.

Problems?


If you want to use the tool but encounter issues, or would like to suggest a new feature, feel free to open an issue.

Credits


If you find the method useful, please cite the following papers:

Kosciessa, J. Q., Grandy, T. H., Garrett, D. D., & Werkle-Bergner, M. (2020). Single-trial characterization of neural rhythms: Potential and challenges. NeuroImage, 206, 116331. http://doi.org/10.1016/j.neuroimage.2019.116331

Whitten, T. A., Hughes, A. M., Dickson, C. T., & Caplan, J. B. (2011). A better oscillation detection method robustly extracts EEG rhythms across brain state changes: The human alpha rhythm as a test case. NeuroImage, 54(2), 860–874. http://doi.org/10.1016/j.neuroimage.2010.08.064

License


eBOSC is an extension of the BOSC library and partially uses scripts from the original toolbox. These functions are included in the 'external' folder of the current package.

The eBOSC library (and the original BOSC library) are free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The eBOSC library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

ebosc_py's People

Contributors

jkosciessa avatar agustinsolano avatar dependabot[bot] 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.