setup_templates: Create templates

Description Usage Arguments Details Value Author(s) See Also

Description

Create files to be used as mapping files. The function will guess as much information as possible based on the data files. The created files may be incomplete and require user modifications but they ensure that the required columns are present.

Usage

1
2
setup_templates(path, templates = c("layout", "analyte", "phenotype"),
  write = TRUE)

Arguments

path

A character. The pathname of an experiment folder. This is the same path as the one that will be used in read.experiment.

templates

A character vector. Can be any combination of "layout", "analyte" and "phenotype". A mapping file will be created for each selected template.

write

A logical. If TRUE, write the template files in the given path. When setup_templates is called through read.experiment, write is set to FALSE and the template files are not saved.

Details

If a mapping file specified by the templates list already exists, the function will not overwrite the existing file. The files should be removed before running the function in order to create new mapping files.

Value

An invisible list of data.frame to be used internally by read.experiment if one or more mapping files are missing from the given path.

Author(s)

Renan Sauteraud

See Also

read.experiment


RGLab/LumiR documentation built on May 8, 2019, 5:51 a.m.