SleepInvestigatoR: a flexible R function for analyzing scored sleep in rodents.

Mackenzie C Gamble, Benjamin R Williams, James T McKenna, Ryan W Logan
{"title":"SleepInvestigatoR: a flexible R function for analyzing scored sleep in rodents.","authors":"Mackenzie C Gamble, Benjamin R Williams, James T McKenna, Ryan W Logan","doi":"10.1093/sleepadvances/zpaf032","DOIUrl":null,"url":null,"abstract":"<p><p>Analyzing scored sleep is a fundamental prerequisite to understanding how sleep changes between health and disease. Classically, this is accomplished by manually calculating various measures (e.g. percent of non-rapid eye movement sleep) from a collection of scored sleep files. This process can be tedious and error-prone, especially when studies include large animal numbers or involve long recording sessions. To address this issue, we present SleepInvestigatoR, a versatile tool that can quickly organize and analyze multiple scored sleep files into a single output. The function is written in the open-source statistical language R and has a total of 25 parameters that can be set to match a wide variety of experimental needs. SleepInvestigatoR delivers a total of 23 unique measures of sleep, including all measures commonly reported in the rodent literature. A simple plotting function is also provided to quickly graph and visualize the scored data. All code is designed to be implemented with little formal coding knowledge, and step-by-step instructions are provided on the corresponding GitHub page. Overall, SleepInvestigatoR provides the sleep researcher a critical tool to increase efficiency, interpretation, and reproducibility in analyzing scored rodent sleep.</p>","PeriodicalId":74808,"journal":{"name":"Sleep advances : a journal of the Sleep Research Society","volume":"6 2","pages":"zpaf032"},"PeriodicalIF":0.0000,"publicationDate":"2025-05-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12146841/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Sleep advances : a journal of the Sleep Research Society","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/sleepadvances/zpaf032","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/4/1 0:00:00","PubModel":"eCollection","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Analyzing scored sleep is a fundamental prerequisite to understanding how sleep changes between health and disease. Classically, this is accomplished by manually calculating various measures (e.g. percent of non-rapid eye movement sleep) from a collection of scored sleep files. This process can be tedious and error-prone, especially when studies include large animal numbers or involve long recording sessions. To address this issue, we present SleepInvestigatoR, a versatile tool that can quickly organize and analyze multiple scored sleep files into a single output. The function is written in the open-source statistical language R and has a total of 25 parameters that can be set to match a wide variety of experimental needs. SleepInvestigatoR delivers a total of 23 unique measures of sleep, including all measures commonly reported in the rodent literature. A simple plotting function is also provided to quickly graph and visualize the scored data. All code is designed to be implemented with little formal coding knowledge, and step-by-step instructions are provided on the corresponding GitHub page. Overall, SleepInvestigatoR provides the sleep researcher a critical tool to increase efficiency, interpretation, and reproducibility in analyzing scored rodent sleep.

SleepInvestigatoR:一个灵活的R函数,用于分析啮齿类动物的睡眠评分。
分析睡眠评分是理解健康和疾病之间睡眠变化的基本前提。通常,这是通过手动计算各种测量(例如,非快速眼动睡眠的百分比)从评分的睡眠文件的集合完成的。这个过程可能很乏味,而且容易出错,尤其是当研究涉及大量动物或涉及长时间的记录时。为了解决这个问题,我们提出了SleepInvestigatoR,一个多功能工具,可以快速组织和分析多个得分的睡眠文件到单个输出。该函数是用开源统计语言R编写的,总共有25个参数,可以设置以匹配各种各样的实验需求。SleepInvestigatoR提供了23种独特的睡眠测量方法,包括啮齿类动物文献中常见的所有测量方法。一个简单的绘图功能也提供了快速绘图和可视化得分数据。所有代码的设计都是在很少的正式编码知识的情况下实现的,并且在相应的GitHub页面上提供了分步说明。总的来说,SleepInvestigatoR为睡眠研究者提供了一个重要的工具来提高效率、解释和重现分析啮齿动物睡眠评分。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
2.10
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信