All functions

a7()

A7 spindle detection algorithm

adanorm()

Adaptive Normalization of a Signal

bandpass()

Bandpass Filter Function

bands_psd()

Compute power spectral density of bands listed in the bands argument.

chambon2018()

Deep Learning Architecture for Temporal Sleep Stage Classification model implementation in Keras.

check_events()

Check events dataframe format compliance.

choi2018()

Convolutional neural network for real-time apnea-hypopnea event detection during sleep

ckappa()

Computes Cohen's Kappa for agreement in the case of 2 raters.

clean_oximetry()

Clean Oximetry Signal

create_xts()

Create an XTS Object from Resampled Signals

detect_apneic_events()

Detect Apneic Events in SpO2 Signal Data

detect_rem()

Detection of Rapid-Eye Movements (REMs)

detect_rpeaks()

Detect R peaks in a raw ECG signal.

epochs()

Split signals into consecutive, non-overlaping epochs according to an events dataframe or an epoch duration.

hypnogram()

Filter and reorder an events dataframe or a hypnodensity to keep only sleep stages related-events.

normalize_cycles()

Normalize sleep cycles scored on Noxturnal software from start and stop flags to unique events.

periods()

Get a dataframe of sleep periods from a hypnogram, continuous or by stages.

plot_event()

Highlight a scored event over a signal.

plot_hypnodensity()

Plot a hypnodensity graph.

plot_hypnogram()

Plot a hypnogram from an events dataframe.

psm()

Power spectral density using adaptive sine multitaper.

pwelch()

Power spectral density using Welch's method.

read_events_compumedics()

Read a stages export from Compumedics software in .txt format.

read_events_ndb()

Read events from a Resmed Noxturnal .ndb file.

read_events_noxturnal()

Read a Noxturnal events file (Unicode CSV format)

read_events_profusion()

Read a annotation file from Compumedics Profusion software in XML format.

read_events_sleepedfx()

Read a SleepEDFX events file EDF+

read_mdf()

Read a Morpheo Data Format (MDF) directory to a list.

schwabedal2018()

Automated Classification of Sleep Stages in Mice with Deep Learning model implementation in Keras.

score_mice()

Score mice sleep from European Data Format (EDF) files.

score_psg()

Score 30 seconds epochs from European Data Format (EDF) files.

segmentation()

Split signals into consecutive, overlapping segments.

smooth_hypnogram()

Smooth hypnogram epoch, simulating human scorers behaviour.

smooth_liang2012()

Smooth hypnogram according to the 11 rules described by Liang & Al.

spectrogram()

Plot the spectrogram of signal.

stages_stats()

Get stages related statistics in a named vector.

train_batches()

Trains a model from files batches.

transitions()

Count and format stages transitions.

tst90()

Compute TST90, the percentage of time during sleep with an oxygen saturation below 90.

write_batches_mice()

Write batches from mice records

write_batches_psg()

Generates files batches from PSG data.

write_channel()

Write a timeserie to disk using Morpheo Data Format (MDF) guidelines.

write_hypnogram_compumedics()

Write a XML file containing scored stages for Compumedics software.

write_mdf()

Write a European Data Format (EDF) record file to disk using Morpheo Data Format (MDF) guidelines