readCdfDataFrame {affxparser} | R Documentation |
Reads units (probesets) from an Affymetrix CDF file. Gets all or a subset of units (probesets).
readCdfDataFrame(filename, units=NULL, groups=NULL, cells=NULL, fields=NULL, drop=TRUE, verbose=0)
filename |
The filename of the CDF file. |
units |
An |
groups |
An |
cells |
An |
fields |
A |
drop |
If |
verbose |
An |
An NxK data.frame
or a vector
of length N.
Henrik Bengtsson
[1] Affymetrix Inc, Affymetrix GCOS 1.x compatible file formats, June 14, 2005. http://www.affymetrix.com/support/developer/
For retrieving the CDF as a list
structure, see
readCdfUnits
.
############################################################## if (require("AffymetrixDataTestFiles")) { # START # ############################################################## # Find any CDF file cdfFile <- findCdf() units <- 101:120 fields <- c("unit", "unitName", "group", "groupName", "cell") df <- readCdfDataFrame(cdfFile, units=units, fields=fields) stopifnot(identical(sort(unique(df$unit)), units)) fields <- c("unit", "unitName", "unitType") fields <- c(fields, "group", "groupName") fields <- c(fields, "x", "y", "cell", "pbase", "tbase") df <- readCdfDataFrame(cdfFile, units=units, fields=fields) stopifnot(identical(sort(unique(df$unit)), units)) ############################################################## } # STOP # ##############################################################