read_sample_sheets: Read sample sheet(s)

Description Usage Arguments Value Examples

Description

Read one or multiple sample sheets in csv format. The information is used to translate between cryptic names (e.g. provided by service provider) and names that can be interpreted. As an alternative to this function, the information can be provided as data.frame with the two columns "Name" and "ID".

Usage

1
2
read_sample_sheets(files, skip = NULL, cols = c("Sample_ID",
  "SentrixBarcode_A", "SentrixPosition_A"))

Arguments

files

Path to sample sheet.

skip

Integer, lines to skip, before data is read. If not provided, the program looks for entry __[Data]__

cols

Character vector, column names to use. First one is the Sample ID, Second and third ones are barcode and position.

Value

A data.frame containing the idat names and the meaningful names of the samples.

Examples

1
2
3
4
if(require(brassicaData)){
samples <- read_sample_sheets(files = list.files(system.file("extdata",
package = "brassicaData"), full.names = TRUE, pattern = "csv"))
}

grafab/gsrc documentation built on May 17, 2019, 8:18 a.m.