Giter Club home page Giter Club logo

MEG-SPIKES

Python package Codecov Contributor Covenant

MEG-SPIKES

This repository contains functions for detecting, analyzing and evaluating epileptic spikes in MEG recording.

Installation

Optionally create a fresh virtual environment:

conda create -n megspikes pip python=3.7

The easiest way to install the package is using pip:

pip install megspikes

To install the latest version of the package, you should clone the repository and install all dependencies:

git clone https://github.com/MEG-SPIKES/megspikes.git
cd megspikes/
pip install .

Examples

Examples of how to use this package are prepared in the Jupyter Notebooks.

Documentation

ASPIRE AlphaCSC pipeline

Full detection pipeline is presented on the figure below. The image was created using Scikit-learn Pipeline module.

ASPIRE AlphaCSC pipeline

To reproduce this picture see 2_aspire_alphacsc_pipepline.ipynb.

As is it depicted on the figure, ASPIRE-AlphaCSC pipeline includes the following main steps:

  1. ICA decomposition
    1. ICA components localization
    2. ICA components selection
    3. ICA peaks localization
    4. ICA peaks cleaning
  2. AlphaCSC decomposition
    1. AlphaCSC atoms localization
    2. AlphaCSC events selection
    3. AlphaCSC atoms merging
      1. AlphaCSC atoms goodness evaluation
      2. AlphaCSC atoms selection

Clusters localization and the irritative area prediction

Irritative zone prediction pipeline is presented on the figure below. The image was created using Scikit-learn Pipeline module.

ASPIRE AlphaCSC pipeline

To reproduce this picture see 2_aspire_alphacsc_pipepline.ipynb and 1_manual_pipeline.ipynb.

Parameters

aspire_alphacsc_default_params.yml includes all default parameters that were used to run spike detection using combination of ASPIRE [2] and AlphaCSC [1].

clusters_default_params.yml describes all the parameters that were used for the irritative area prediction based on the detected events and their clustering.

Dependencies

Analysis

Data storing

Visualization

Testing

Contributing

All contributors are expected to follow the code of conduct.

References

[1] La Tour, T. D., Moreau, T., Jas, M., & Gramfort, A. (2018). Multivariate Convolutional Sparse Coding for Electromagnetic Brain Signals. ArXiv:1805.09654 [Cs, Eess, Stat]. http://arxiv.org/abs/1805.09654

[2] Ossadtchi, A., Baillet, S., Mosher, J. C., Thyerlei, D., Sutherling, W., & Leahy, R. M. (2004). Automated interictal spike detection and source localization in magnetoencephalography using independent components analysis and spatio-temporal clustering. Clinical Neurophysiology, 115(3), 508–522. https://doi.org/10.1016/j.clinph.2003.10.036

meg-spikes's Projects

megspikes icon megspikes

This repository contains functions for detecting, analyzing, and evaluating epileptic spikes in MEG recording.

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.