readXml {AffyCompatible} | R Documentation |
This functions reads the content of Affymetrix DTT (MAGE) or ARR
sample files, or AffxNetAffxAnnotFile array annotation files, return
an internal representation of the underlying XML. The return value can
be used with xclass
to rapidly create R objects
representing deeply nested nodes of the document. The return value can
also be used with xpathApply
in the XML package for
access to character-based representation of the data.
readXml(fl, ...)
fl |
A length-1 character vector giving the full path to the file to be parsed. |
... |
Additional arguments, passed to
xmlTreeParse . |
An object of class XMLInternalDocument
.
Martin Morgan
The vignettes `Retrieving MAGE and ARR sample attributes' and `Annotation retrieval with NetAffxResource' for detailed illustration of use.
xclass
for instantiating objects from xpath queries.
mageDir <- system.file("extdata", "DTT", package="AffyCompatible") mageFiles <- list.files(mageDir, full=TRUE) xml <- readXml(mageFiles[[1]]) xclass(xml, "//MeasuredBioAssay")[[1]]