readDcp {dChipIO} | R Documentation |
Reads a dChip DCP file
Description
Reads a dChip DCP file.
Usage
readDcp(con, fields=c("rawIntensities", "normalizedIntensities", "calls", "thetas",
"thetaStds", "excludes"), cells=NULL, units=NULL, .nbrOfUnits=NULL, ...)
Arguments
con |
A |
fields |
|
cells |
An |
units |
An |
.nbrOfUnits |
A |
... |
Not used. |
Value
Returns a list
structure containing the file header and the
requested data fields.
Author(s)
Henrik Bengtsson
See Also
To read only the DCP file header, see readDcpHeader
().
Examples
path <- system.file("exData", package="dChipIO")
filename <- "Test3-1-121502.dcp"
pathname <- file.path(path, filename)
hdr <- readDcpHeader(pathname)
print(hdr)
data <- readDcp(pathname)
str(data)
# Read a subset of the units
units <- c(10:11, 15:20, 150:105, 2,2,2)
dataT <- readDcp(pathname, units=units)
str(dataT)
# Assert correctness
for (ff in c("calls", "thetas", "thetaStds", "excludes")) {
stopifnot(length(dataT[[ff]]) == length(units))
stopifnot(identical(dataT[[ff]], data[[ff]][units]))
}
[Package dChipIO version 0.1.5 Index]