Git Product home page Git Product logo

scorepochs_py's Introduction

scorEpochs - Python version

scorEpochs: a computer aided scoring tool for resting-state M/EEG epochs

By Simone Maurizio La Cava

Scorepochs aims to represent a simple tool for automatic scoring of resting-state M/EEG epochs to provide an accurate yet objective method to aid M/EEG experts during epoch selection procedure.

This approach, which works at subject level, provides a score for each epoch within a single M/EEG trace with the attempt to make this crucial procedure less ambiguous, more objective and reproducible.



This is the Python version of the tool

Developed on Python 3.6



Usage

This tool can be used through the command line (do not be afraid to put spaces, they will be automatically managed) or by importing it

In the last case you have two possibility:

  • Import the function from the module:
  from scorEpochs import scorEpochs 
  idx_best, epoch, scores = scorEpochs(cfg, data)
  • Import the module and use the function through the dot notation:
  import scorEpochs
  idx_best, epoch, scores = scorEpochs.scorEpochs(cfg, data)

The data parameter represents a 2D (channels x samples) matrix.


The cfg parameter is a dictionary which has the following keys:

  • freqRange, in which the interested frequency band is defined as a list which contains the related cut frequencies
  • fs, which represents the sampling frequency of the time series
  • windowL, which identify the number of seconds of each epoch
  • smoothFactor, which represents the window of the moving average filter which have to be applied on the power spectrum of each epoch (optional, the moving average is not computed if this parameter is omitted)

An example for this parameter is:

cfg = {'freqRange':[1, 100], 'fs':500, 'windowL':20, 'smoothFactor':3}

Click here to have a view of a demonstration on the usage of this tool.



Required libraries

  • Numpy
  • Scipy

scorepochs_py's People

Contributors

scorepochs-tools avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saugabriele

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.