Blume Christine, Cajochen Christian
Centre for Chronobiology, Psychiatric Hospital of the University of Basel, Basel, Switzerland.
Transfaculty Research Platform Molecular and Cognitive Neurosciences, University of Basel, Basel, Switzerland.
MethodsX. 2021 Mar 27;8:101318. doi: 10.1016/j.mex.2021.101318. eCollection 2021.
The detection of NREM-REM sleep cycles in human sleep data (i.e., polysomnographically assessed sleep stages) enables fine-grained analyses of ultradian variations in sleep microstructure (e.g., sleep spindles, and arousals), or other amplitude- and frequency-specific electroencephalographic features during sleep. While many laboratories have software that is used internally, reproducibility requires the availability of open-source software. Therefore, we here introduce the 'SleepCycles' package for R, an open-source software package that identifies sleep cycles and their respective (non-) rapid eye movement ([N]REM) periods from sleep staging data. Additionally, each (N)REM period is subdivided into parts of equal duration (percentiles), which may be useful for further fine-grained analyses. The detection criteria used in the package are, with some adaptations, largely based on criteria originally proposed by Feinberg and Floyd (1979). The latest version of the package can be downloaded from the Comprehensive R Archives Network (CRAN).•The package 'SleepCycles' for R allows to identify sleep cycles and their respective NREM and REM periods from sleep staging results.•Besides the cycle detection, NREM and REM periods are also split into parts of equal duration (percentiles) thereby allowing for a better temporal resolution across the night and comparisons of sleep cycles with different durations amongst different night recordings.
在人类睡眠数据中检测非快速眼动睡眠-快速眼动睡眠周期(即通过多导睡眠图评估的睡眠阶段),能够对睡眠微观结构的超日变化(如睡眠纺锤波和觉醒)或睡眠期间其他特定振幅和频率的脑电图特征进行细粒度分析。虽然许多实验室都有内部使用的软件,但可重复性需要开源软件。因此,我们在此介绍用于R语言的“SleepCycles”软件包,这是一个开源软件包,可从睡眠分期数据中识别睡眠周期及其各自的(非)快速眼动([N]REM)期。此外,每个(N)REM期被细分为等时长的部分(百分位数),这可能有助于进一步的细粒度分析。该软件包中使用的检测标准在经过一些调整后,很大程度上基于Feinberg和Floyd(1979年)最初提出的标准。该软件包的最新版本可从综合R存档网络(CRAN)下载。
•用于R语言的“SleepCycles”软件包可从睡眠分期结果中识别睡眠周期及其各自的非快速眼动和快速眼动期。
•除了周期检测外,非快速眼动和快速眼动期还被分为等时长的部分(百分位数),从而可以在整个夜间获得更好的时间分辨率,并比较不同夜间记录中不同时长睡眠周期。