Learn R Programming

gsrc (version 1.1)

read_sample_sheets: Read sample sheet(s)

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

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

Run this code
if(require(brassicaData)){
samples <- read_sample_sheets(files = list.files(system.file("extdata",
package = "brassicaData"), full.names = TRUE, pattern = "csv"))
}

Run the code above in your browser using DataLab