Skip to main content

sleepeegpy

sleepeegpy is a high-level package built on top of mne-python, yasa and specparam (fooof) for preprocessing, analysis, and visualization 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 this repository zip folder, you will need only the notebooks folder.

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")

Metadata

Release files for sleepeegpy 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sleepeegpy 0.6.0
File Size Uploaded
sleepeegpy-0.6.0.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sleepeegpy 0.6.0
File Interpreter ABI Platform
sleepeegpy-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.0 kB

Release files / sleepeegpy-0.6.0.tar.gz

Download URL sleepeegpy-0.6.0.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cec03c5a70cefa9cafeda0975eb4b77e59460d80fe8b2311c1f32c7bda61f421
BLAKE2b-256 checksum
How to use checksums
c10cc59b90b26af2454d1093594fc44eeec55a8d9e396aaf5d861749757deb56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / sleepeegpy-0.6.0-py3-none-any.whl

Download URL sleepeegpy-0.6.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
622788053c9aa9188b68511f77272aea64ea65a34a211de6995deadbd010479c
BLAKE2b-256 checksum
How to use checksums
b98592c3ba36540f66588ea4501b546b45c7965f05abf5ef113daf87be58e3d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page