Giter VIP home page Giter VIP logo

spinkydemo's Introduction

spinkyDemo

This python package demonstrates the use of the Matlab toolbox SPINKY for the automatic detection of sleep spindles and K-complexes using Python 3 and the python-matlab-bridge package. This toolbox is presented in (Lajnef et al, 2017). To use, simply download the example notebook. For example, on a linux machine:

$ wget https://github.com/christian-oreilly/spinkyDemo/blob/master/notebook/finalDemo.ipynb

Then, open the downloaded notebook using Jupyter:

$ jupyter notebook finalDemo.ipynb

The execution of this notebook requires Matlab and Python 3 to be install on your workstation. All other resources and python packages will be downloaded and install (if necessary) by running the notebook. These include:

  • Python packages:
    • numpy, scipy, pandas : For manipulating data more easily.
    • matplotlib, seaborn: For plotting the result.
    • pymatbridge: To interact with the Matlab kernel.
    • gitpython : To clone the SPINKY git repository from Python.
    • spinkyDemo: This package. It is used to embed the code of some utility functions that we import instead of cluttering the notebook with boilerplate code that would make the example harder to follow.
    • requests : To download files from internet.
  • SPINKY : The Matlab code of the SPINKY program.
  • EEG + scoring data from the DREAMS database to demonstrate spindle and K-complex detection.

spinkydemo's People

Contributors

christian-oreilly avatar

Stargazers

Leo Ota avatar Stanislas Chambon avatar Gio Piantoni avatar

Watchers

James Cloos avatar  avatar

Forkers

lordxx505

spinkydemo's Issues

Information

Hello,

We would like to work with your spindle and complex K detection program.
We work with "Open Source" tools as part of a luminotherapy project.
We have our EEG data and we want to know how to put it in place with your "Spinky" tools.

Can you tell us how to install and use this software in our project.

Sincerely, projet de recherche et d'innovation,
SOGETI France.

mlab: Index exceeds the number of array elements. Index must not exceed 2.

ISSUE RESOLED: Using older version of Matlab. I used 2016a that works.

finalDemo is unable to run the example using DREAMS spindle subject 5 annotator 1 due to the matlab function mlab encountering an index error. I am running matlab 2024a

The issue first appears when training threshold:
Screenshot 2024-03-21 at 1 09 37 PM
Manually setting threshold = 151 in the training phase does not solve the issue as the following line in the testing phase also uses the mlab function
Screenshot 2024-03-21 at 1 15 09 PM

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.