Coder Social home page Coder Social logo

mrswolf / rasrmatlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s4rify/rasrmatlab

0.0 0.0 0.0 44.82 MB

A Matlab Toolbox for correcting EEG artifacts using Riemannian Artifact Subspace Reconstruction.

License: Other

MATLAB 96.36% R 3.64%

rasrmatlab's Introduction

Riemannian Artifact Subspace Reconstruction Matlab Toolbox

This repository contains code for an EEGLAB [0] plugin which can be used to correct EEG artifacts using Riemannian geometry. The method is an adaptation of the original ASR method published by Mullen et al. [1]. For details of its workings, please refer to Blum et al. [3]. The rASR toolbox uses the Manopt toolbox for computations involving manifolds and Riemannian geometry, please note that in the current implementation an adapted nonlinear_eigenspace function is used and included in the rASR toolbox, while the rest of manopt is used from the toolbox which must be in the Matlab path. This is only a temporary solution and will be coded more sustainably soon.

Usage

To use the rASR cleaning, simply call this plugin like the original ASR plugin after adding it to the Matlab path:

addpath('rASRfolder/', '-begin');    
% call clean_rawdata
EEG = clean_rawdata(EEG, arg_flatline, arg_highpass, arg_channel, arg_noisy, arg_burst, arg_window);

The rASR folder can also be put directly into the EEGLAB folder: eeglab/plugins/rASR/, this is where EEGLAB looks for the functions to clean the data.

The function will show a message in the command window of Matlab, informing that the cleaning is done with Riemannian geometry now.

Dependencies

The Riemannian geometry functions are implemented in the Manopt toolbox [2] which needs to be in Matlab's path as well.

Support

Please drop me a mail if you have any questions, fork this work to improve it or open an issue in this repository if you have any problems.

Paper and Analysis Code

rASR has been published in a peer-reviewed journal: https://www.frontiersin.org/articles/10.3389/fnhum.2019.00141/full?&utm_source=Email_to_authors_&utm_medium=Email&utm_content=T1_11.5e1_author&utm_campaign=Email_publication&field=&journalName=Frontiers_in_Human_Neuroscience&id=421678.

The analysis code for the paper can be found in the folder analysis_scripts_frontiers. Please also note the readme file in there. Data will be linked shortly.

References

[0] https://sccn.ucsd.edu/eeglab/index.php
[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4710679/
[2] https://www.manopt.org/index.html
[3] https://www.frontiersin.org/articles/10.3389/fnhum.2019.00141/full?&utm_source=Email_to_authors_&utm_medium=Email&utm_content=T1_11.5e1_author&utm_campaign=Email_publication&field=&journalName=Frontiers_in_Human_Neuroscience&id=421678

License

This software is published under the MIT license.

rasrmatlab's People

Contributors

s4rify avatar lkorczowski 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.