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
preprocess_psg()
Preprocess a PSG recording

Signal filtering

Low-level filter functions for physiological signals.

remove_dc()
Remove DC offset from a signal
detect_powerline()
Auto-detect powerline frequency
notch_filter()
Apply a notch (bandstop) filter to a signal
bandpass_filter()
Apply a bandpass filter to a signal

EOG correction

Remove ocular artefacts from EEG channels.

correct_eog_regression()
Remove EOG artefacts using linear regression
correct_eog_ica()
Remove EOG artefacts using ICA

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_temporal_bandpower()
Compute temporal band power across a PSG recording
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

MRI physiology

Philips PMU physiological log processing and cardiac signal analysis.

read_philips_physlog()
Read a Philips MRI Physiological Log File
detect_qrs()
Detect QRS Complexes in an ECG Signal (Pan-Tompkins Algorithm)
compute_hr_signal()
Compute Instantaneous Heart Rate from R-Peak Indices
compute_hrv_freq()
Frequency-domain HRV (HF power), locked to each infant's own respiratory rate, as a proxy for respiratory sinus arrhythmia (RSA).

Data

Bundled datasets and palettes.

palette_orpheus
Orpheus mosaic palette

Package

Package-level documentation.

mrpheus mrpheus-package
mrpheus: Raw Physiological Signal Analysis for Biological Rhythms Research