Coder Social home page Coder Social logo

aarateppipeline's Introduction

AARATEP Pipeline

This repo contains the code for the TMS-EEG preprocessing pipeline originally described in:

C.C. Cline, M.V. Lucas, Y. Sun, M. Menezes, A. Etkin. "Advanced Artifact Removal for Automated TMS-EEG Data Processing," 2021 10th International IEEE/EMBS Conference on Neural Engineering (NER), 2021, doi: 10.1109/NER49283.2021.9441147.

In brief, this pipeline consists of the following stages:

  • Epoching
  • Artifact interpolation (with custom autoregressive blending)
  • Downsampling
  • Baseline correction
  • High-pass filtering
  • Bad-channel identification
  • Early eye-related IC rejection (added in v2.0.0)
  • SOUND
  • Decay component removal
  • Artifact interpolation
  • Line noise filtering
  • ICA
  • IC rejection with ICLabel and additional TMS-specific rejection rules
  • Low-pass filtering
  • Average rereferencing

Usage

This code assumes you have EEGLab installed at ~/Documents/MATLAB/eeglab on Windows or Mac, or ~/matlab/eeglab on Linux. It also assumes you have installed the ICLabel and TESA extensions in EEGLab.

Assuming you have downloaded this whole repo to a folder called AARATEPPipeline, add dependencies to your MATLAB path with

addpath('AARATEPPipeline');
addpath('AARATEPPipeline/Common');
addpath('AARATEPPipeline/Common/EEGAnalysisCode');

Load your data as an EEGLab struct EEG. For example:

[EEG, misc] = c_TMSEEG_prepareForPreprocessing(...
    'inputFilePath', 'MyStudy/rawdata/RecordingName.vhdr',...
    'epochTimespan', [-1 2]);

Then call the main preprocessing pipeline script:

EEG = c_TMSEEG_Preprocess_AARATEPPipeline(EEG,...
    'pulseEvent', misc.pulseEvent,...
    'epochTimespan', misc.epochTimespan,...
    'outputDir', 'MyStudy/derivatives/RecordingName',...
    'outputFilePrefix', 'RecordingName')

See individual scripts for additional available parameters.

aarateppipeline's People

Contributors

chriscline avatar

Stargazers

Isabella Karabinas avatar  avatar Umair Hassan, PhD avatar

Watchers

 avatar Umair Hassan, PhD 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.