Skip to contents

Ingestion

Read and prepare PSG recordings.

read_edf()
Read an EDF or EDF+ recording
prepare_psg()
Prepare a PSG recording for analysis

Artefacts

Detect and flag artefact epochs.

detect_artifacts()
Detect artefact epochs in a PSG recording

Spectral analysis

Power spectral density and time-frequency representations.

compute_band_power()
Compute EEG band power per epoch
compute_spectrogram()
Compute a time-frequency spectrogram

Event detection

Automatic detection of sleep microstructure events.

compute_spindles()
Detect sleep spindles
compute_slow_oscillations()
Detect slow oscillations

Sleep staging

Automatic AASM epoch staging and hypnogram export.

stage_epochs()
Automatic AASM sleep staging
export_hypnogram()
Export a staged hypnogram for use with hypnor

Respiratory

Apnea/hypopnea detection and respiratory indices.

detect_apneas()
Detect respiratory events (apneas and hypopneas)
compute_ahi()
Compute Apnea-Hypopnea Index (AHI)
compute_odi()
Compute Oxygen Desaturation Index (ODI)

Cardiac

HRV metrics across sleep stages.

compute_hrv_sleep()
Compute HRV metrics across sleep stages

Data

Bundled datasets and palettes.

palette_orpheus
Orpheus mosaic palette

Package

Package-level documentation.

mrpheus mrpheus-package
mrpheus: Polysomnography Signal Analysis for Sleep Research