Analyse Activity and Sleep Behaviour
Overview
Use behavioural variables to score activity and infer sleep from bouts of immobility. It is primarily designed to score sleep in fruit flies from Drosophila Activity Monitor (TriKinetics) and Ethoscope data. It implements sleep scoring using the "five-minute rule" (Hendricks et al. (2000) DOI:10.1016/S0896-6273(00)80877-6), activity classification for Ethoscopes (Geissmann et al. (2017) DOI:10.1371/journal.pbio.2003026) and a new algorithm to detect when animals are dead.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 75%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 50%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
Commits over time
Commit identities over time
6 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/rethomics/sleepr on 2026-10-22.
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-10-05Commits: at least 7 crediting it in the message
- Claude Opus 5.57 commits · Oct 2026
Dependencies
Installing sleepr adds 2 packages (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB, behavr 19 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3.1Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.3.02018-10-30
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-10-30
- Total releases
- 2 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.00
- Download size
- 11 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sleepr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.