Giter Site home page Giter Site logo

eegfmripy's Introduction

eegfmripy

NOTE: This python code works, but it's sub-optimal for a number of reasons (Python-specific issues, and MNE-specific issues). We've implemented it in Matlab with much better results: https://github.com/gmierz/eegfmri-matlab

Python code for denoising eeg data from eeg-fmri experiments, and fusing eeg-fmri data.

A fully automatic pipeline for cleaning raw EEG data acquired inside the scanner.

The package performs the following in sequential order:

  1. gradient artifact removal
  2. ballistocardigram artifact removal

The following features may be added in the future:

  1. Residual noise removal using ICA
  2. EEG motion detection and censoring
  3. Source localization of cleaned scalp space signal
  4. Co-registration of source space with FMRI voxel space
  5. Frequency specific EEG-FMRI correlations in each voxel
  6. Time-varying heart rate based on frequency of EEG ballistocardiogram artifacts
  7. Respiratory volume based on amplitude of EEG ballistocardiogram artifacts
  8. Millisecond precise head motion amplitude based on broadband high frequency EEG power

NB: due to overhead, the maximum size EEG dataset for a computer with 16 Gb RAM is 1.5Gb, this will typically only be a problem during the gradient denoising step

Dependencies can be installed with

cd eegfmripy
python setup.py install

These dependencies are the same as for mne-python (https://github.com/mne-tools/mne-python/blob/master/README.rst).

After installation, you can run eegfmripy --help for more info. The pipelines available can be found in the clianalysis folder. Use the configuration YAML's in the configs folder for options that can be supplied to each script.

Example for the full clean - gradient artifact removal, followed by BCG artifact removal:

eegfmripy clean -c configs/config_clean.yml

eegfmripy's People

Contributors

gmierz avatar russellu 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.