Giter VIP home page Giter VIP logo

sleepeegpy's Introduction

sleepeegpy

sleepeegpy is a high-level package built on top of mne-python, yasa and specparam (fooof) for preprocessing, analysis and visualisation of sleep EEG data.

Installation

  1. Make sure you have Python version installed. Requires Python >3.9, <3.12.
  2. Create a Python virtual environment, for more info you can refer to python venv, virtualenv or conda.
  3. Activate the environment
  4. pip install sleepeegpy
    
  5. Download notebooks.

Quickstart

  1. Open the complete pipeline notebook in the created environment.
  2. Follow the notebook's instructions.

RAM requirements

For overnight, high density (256 channels) EEG recordings downsampled to 250 Hz expect at least 64 GB RAM expenditure for cleaning, spectral analyses and event detection.

Retrieve example dataset

odie = pooch.create(
    path=pooch.os_cache("sleepeegpy_dataset"),
    base_url="doi:10.5281/zenodo.10362189",
)
odie.load_registry_from_doi()
bad_channels = odie.fetch("bad_channels.txt")
annotations = odie.fetch("annotations.txt")
path_to_eeg = odie.fetch("resampled_raw.fif")
for i in range(1,4):
    odie.fetch(f"resampled_raw-{i}.fif")

sleepeegpy's People

Contributors

genuster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sleepeegpy's Issues

info['dig']

Hi
I'm not able to interpolate bad channels as it shows info['dig'] is None. How do i add the digitization points ?

Missing Staging File

Could you please upload the file name staging.txt that is been used in the demo? I couldn't find it anywhere on zenodo nor here. Thanks!

Troubleshooting Installation of sleepeegpy on macOS

The following error occurs when attempting to install sleepeegpy on macOS using pip:
ERROR: Could not find a version that satisfies the requirement libomp (from versions: none) ERROR: No matching distribution found for libomp

One way to solve it can be using brew:
brew install cmake libomp
pip install lightgbm
pip install sleepeegpy

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.