Reads a European Data Format (EDF or EDF+) file and returns a structured
list containing signal data, channel metadata, and recording header.
Wraps edfReader::readEdfHeader() and edfReader::readEdfSignals() with
consistent output formatting for the mrpheus pipeline.
Value
A list of class mrpheus_edf with components:
- header
Data frame. Recording metadata (patient info, start time, number of signals, etc.).
- signals
Named list of numeric vectors, one per channel.
- channels
Data frame. Channel-level metadata: label, sample rate, physical min/max, digital min/max, transducer type, prefiltering.
- duration_s
Numeric. Total recording duration in seconds.
- path
Character. Resolved path to the source file.
Examples
if (FALSE) { # \dontrun{
rec <- read_edf("data/psg_001.edf")
rec <- read_edf("data/psg_001.edf", channels = c("EEG Fpz-Cz", "EOG horizontal"))
rec$channels
} # }