View source: R/actigraphy_to_SE.R
actigraphy_df_to_SummarizedExperiment | R Documentation |
Convert Actigraphy data.frame to a SummarizedExperiment
actigraphy_df_to_SummarizedExperiment(
x,
path_column = "file",
measure = NULL,
assay_name = measure,
rowData = NULL,
...,
verbose = TRUE,
metadata = list()
)
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. If |
assay_name |
Name of the 'assay' in the
|
rowData |
row data to pass to |
... |
additional arguments to pass to |
verbose |
print diagnostic messages |
metadata |
metadata passed to |
A SummarizedExperiment
output
file = system.file("extdata",
"TAS1H30182785_2019-09-17.gt3x",
package = "SummarizedActigraphy")
files = rep(file, 2)
df = data.frame(file = files,
age = stats::rpois(length(files), 50),
stringsAsFactors = FALSE)
se = actigraphy_df_to_SummarizedExperiment(df, "file")
## Not run:
df$file = factor(df$file)
se = actigraphy_df_to_SummarizedExperiment(df, "file", measure = "AI_mean")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.