API reference¶
Automatic sleep staging & events detection¶
|
Automatic sleep staging of polysomnography data. |
|
Automatic artifact rejection. |
|
Rapid eye movements (REMs) detection. |
|
Output class for REMs detection. |
|
Spindles detection. |
|
Output class for spindles detection. |
|
Slow-waves detection. |
|
Output class for slow-waves detection. |
|
Determine correctness of detected events against ground-truth events. |
Hypnogram & sleep statistics¶
|
Upsample an hypnogram to a given sampling frequency and fit the resulting hypnogram to corresponding EEG data, such that the hypnogram and EEG data have the exact same number of samples. |
|
Upsample the hypnogram to a given sampling frequency. |
|
Convert a string hypnogram array to integer. |
|
Convert an integer hypnogram array to a string array. |
|
Find sequences of consecutive values exceeding a certain duration in hypnogram. |
|
Load a Compumedics Profusion hypnogram (.xml). |
|
Plot a hypnogram. |
|
Plot a full-night multi-taper spectrogram, optionally with the hypnogram on top. |
|
Create a state-transition matrix from an hypnogram. |
|
Compute standard sleep statistics from an hypnogram. |
|
Experimental class for manipulating hypnogram in YASA (dev). |
|
Simulate a hypnogram based on transition probabilities. |
|
Evaluate agreement between two hypnograms or two collections of hypnograms. |
|
Evaluate agreement between sleep statistics reported by two different scorers. |
Spectral analyses¶
|
Calculate the Welch bandpower for each channel and, if specified, for each sleep stage. |
|
Compute the average power of the EEG in specified frequency band(s) given a pre-computed PSD. |
|
Compute bandpowers in N-dimensional PSD. |
|
Separate the aperiodic (= fractal, or 1/f) and oscillatory component of the power spectra of EEG data using the IRASA method. |
|
Moving transformation of one or two time-series. |
|
Plot a full-night multi-taper spectrogram, optionally with the hypnogram on top. |
|
Calculate a sliding window of a 1D or 2D EEG signal. |
|
Compute the pointwise power via STFT and interpolation. |
|
Topoplot. |
Heart rate analysis¶
|
Calculate heart rate and heart rate variability (HRV) features from an ECG. |