writeEset | R Documentation |
Export an ExpressionSet object as tab-delimited (or gct) files
writeEset(
eset,
exprs.file,
fData.file,
pData.file,
exprs.file.format = c("gct", "tsv"),
feat.name = NULL,
feat.desc = NULL
)
eset |
The |
exprs.file |
Character, file name where |
fData.file |
Character, optional, file name where |
pData.file |
Character, optional, file name where |
exprs.file.format |
Character, write |
feat.name |
Character, feature names or a column in |
feat.desc |
Character, feature descriptions or a column in
|
NULL, only side effect is used
One limitation of readEset
and writeEset
functions is that
they only support the export/import of exactly one expression
matrix from one ExpressionSet
object. Although an
ExpressionSet
can hold more than one matrices other than the
one known as exprs
, they are currently not handled by writeEset
or readEset
. If such an ExprssionSet
object is first
written in plain files, and then read back as an ExpressionSet
,
matrices other than the one accessible by exprs
will be discarded.
Similarly, other pieces of information saved in an ExpressionSet
,
e.g. experimental data, are lost as well after a cycle of exporting
and subsequent importing. If keeping these information is important for you,
other functions should be considered instead of readEset
and
writeEset
, for instance to save an image in a binary file with
the save
function.
Yet another limitation is that factor information is lost. This hits especially the phenoData where factor information, such as sample groupping and orders of levels, may be important.
readEset
data(sample.ExpressionSet, package="Biobase")
exprs.file <- tempfile()
fData.file <- tempfile()
pData.file <- tempfile()
writeEset(sample.ExpressionSet, exprs.file, fData.file, pData.file,
exprs.file.format="gct")
writeEset(sample.ExpressionSet, exprs.file, fData.file, pData.file,
exprs.file.format="tsv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.