Description Usage Arguments Value Author(s) References See Also Examples
View source: R/readCdfDataFrame.R
Reads units (probesets) from an Affymetrix CDF file. Gets all or a subset of units (probesets).
1 2 |
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
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##############################################################
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 #
##############################################################
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.