JohannesNE / rsleep

Sleep Data Analysis with R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rsleep: A R package for sleep data analysis

CRAN Downloads Build Status Docker build codecov License:MIT

rsleep is a R package providing tools for sleep data management, visualization and analysis.

Installation

Stable version can be downloaded and installed from CRAN [1] :

install.packages("rsleep", repos = "https://cloud.r-project.org")

Development version can be directly installed from Github using the devtools package :

devtools::install_github("boupetch/rsleep")

Usage

library(rsleep)

Vignettes

Examples

Hypnogram

Hypnodensity

EEG Spectral profiles

Docker

The rsleep package can be used through Docker, with the automatic build from Dockerhub or by building the image using the provided Dockerfile.

Example

Automatic sleep stages scoring using rsleep Docker image:

wget -O 15012016HD.edf https://osf.io/57j2u/download 

docker run --rm  -v $(pwd):/shared boupetch/rsleep R -e "write.csv(rsleep::score_stages_edf('/shared/15012016HD.edf'),'/shared/hypnodensity.csv')"

References

[1] K. Hornik, The comprehensive r archive network, Wiley Interdisciplinary Reviews: Computational Statistics. 4 (2012) 394–398. https://cran.r-project.org/.

About

Sleep Data Analysis with R

License:Other


Languages

Language:R 97.9%Language:Dockerfile 2.1%