SleepInvestigatoR: A flexible R function for analyzing scored sleep in rodents
Mackenzie C. GambleiD, Benjamin R Williams, James Timothy McKennaiD, Ryan Wellington LoganiD
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 a large number of animals 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 experimenter needs. SleepInvestigatoR delivers a total of 22 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.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- FWCI
- 0.57
- Field percentile
- top 38%
- Organism
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Nyx: a flexible framework for sleep scoring across species, lifespan and modalities
Letizia Signorelli, Solomiia Korchynska, … Charlotte N. Boccara·bioRxiv·Jul 28, 2026
- Sleep Identification Enabled by Supervised Training Algorithms (SIESTA): An open-source platform for automatic sleep staging of rodent polysomnographic data
Carlos S. Caldart, Raymond E.A. Sanchez, … Horacio O. de la Iglesia·bioRxiv·Jul 6, 2020
- Somnus, a tunable, open-source platform for automated EEG sleep scoring in physiological and disease mouse models
Joshua M. Brenner, Matthew S. Caudill, Huda Yahya Zoghbi·bioRxiv·Oct 12, 2026
- Sleep-Deep-Net learns sleep wake scoring from the end-user and completes each record in their style.
Fumi Katsuki, Tristan J. Spratt, … David S. Uygun·bioRxiv·Dec 22, 2023
- SleepEEGpy: a Python-based software 'wrapper' package to organize preprocessing, analysis, and visualization of sleep EEG data
Gennadiy Belonosov, Rotem Falach, … Yuval Nir·bioRxiv·Dec 17, 2023
- Noninvasive Sleep Scoring in Mice using Electric Field Sensors
Heidi E. Kloefkorn, Lauren M. Aiani, … Shawn Hochman·bioRxiv·Oct 7, 2019