actigraphy_df_to_SummarizedExperiment: Convert Actigraphy data.frame to a SummarizedExperiment

Description Usage Arguments Value Examples

View source: R/actigraphy_to_SE.R

Description

Convert Actigraphy data.frame to a SummarizedExperiment

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
actigraphy_df_to_SummarizedExperiment(
  x,
  path_column = "file",
  measure = c("ai_mean", "mad_mean", "enmo_mean", "ai_median", "mad_median",
    "enmo_median"),
  assay_name = measure,
  rowData = NULL,
  ...,
  verbose = TRUE
)

Arguments

x

An optional 'data.frame' describing the samples/participants.

path_column

column in 'x' that is the paths to the file names of the data. Can also be a list column of 'x' where this column are the images

measure

measure to grab to create an assay

assay_name

Name of the 'assay' in the SummarizedExperiment

rowData

row data to pass to SummarizedExperiment

...

additional arguments to pass to SummarizedExperiment

verbose

print diagnostic messages

Value

A SummarizedExperiment output

Examples

1
2
3
4
5
6
7
8
file = system.file("extdata",
"TAS1H30182785_2019-09-17.gt3x",
package = "SummarizedActigraphy")
files = rep(file, 10)
df = data.frame(file = files,
age = stats::rpois(length(files), 50),
stringsAsFactors = FALSE)
se = actigraphy_df_to_SummarizedExperiment(df, "file")

oslerinhealth/SummarizedActigraphy documentation built on Aug. 20, 2020, 2:21 a.m.