Learn R Programming

minfi (version 1.18.4)

read.450k.exp: Reads an entire 450k experiment using a sample sheet

Description

Reads an entire 450k experiment using a sample sheet or (optionally) a target like data.frame.

Usage

read.450k.exp(base = NULL, targets = NULL, extended = FALSE, recursive = FALSE, verbose = FALSE)

Arguments

base
The base directory.
targets
A targets data.frame, see details
extended
Should the output of the function be a "RGChannelSetExtended" (default is "RGChannelSet").
recursive
Should the search be recursive (see details)
verbose
Should the function be verbose?

Value

An object of class "RGChannelSet" or "RGChannelSetExtended".

Details

If the targets argument is NULL, the function finds all two-color IDAT files in the directory given by base. If recursive is TRUE, the function searches base and all subdirectories. A two-color IDAT files are pair of files with names ending in _Red.idat or _Grn.idat.

If the targets argument is not NULL it is assumed it has a columned named Basename, and this is assumed to be pointing to the base name of a two color IDAT file, ie. a name that can be made into a real IDAT file by appending either _Red.idat or _Grn.idat.

See Also

read.450k for the workhorse function, read.450k.sheet for reading a sample sheet and RGChannelSet for the output class.

Examples

Run this code
## Not run: 
# if(require(minfiData)) {
# 
# baseDir <- system.file("extdata", package = "minfiData")
# RGset <- read.450k.exp(file.path(baseDir, "5723646052"))
# 
# }
# ## End(Not run)

Run the code above in your browser using DataLab