Extracts expression data (usually as ExpressionSet
objects) from other objects.
eset(object, ...)
S4 (GEDdata_entry)
`eset`(object, load = TRUE, filter = TRUE, verbose = FALSE, save = TRUE,
cache = TRUE)
FALSE
the gene expression data is not loaded and
the result will be NULL
if the dataset has not
already been loaded in a previous call.
If explicitly TRUE
(i.e. not missing), then the
data is (re-)loaded from cache, or downloaded from a
public repository if it has not been previously cached.
In this case, the pre-processing pipeline is performed
again.TRUE
then the processing/filtering function
associated with the data (registry field 'filter'
)
is applied. A custom pre-processing function may also be
passed.
If FALSE
, no processing is performed on the data.verbose=3
) to display more detailed outputs.eset
, these data are
generally loaded from disk and not re-downloaded by the
relevant package (e.g., GEOquery or
ArrayExpress). If save=TRUE
(as default),
the new data will replace any previously downloaded
data.an ExpressionSet
object.
signature(object = "ExpressionMix")
:
Extracts an ExpressionSet object from an
ExpressionMix
object.
Because ExpressionMix-class
inherits from
ExpressionSet-class
, this methods simply
returns the object coerced as an ExpressionSet
object.
signature(object = "GEDdata_entry")
:
Extracting Expression Data from CellMix Dataset Registry
Entry.
Loads and extracts the expression data from a CellMix
registry dataset entry, as an ExpressionSet
object.
The first time the expression data is accessed, and if
argument load=TRUE
, it is loaded from the local
storage if possible (cf. GEDsave
), or
downloaded from GEO using GEDdownload
. It
is then pre-processed (see below) and the resulting value
(an ExpressionSet
object) is cached in the
GEDdata_entry environment. Subsequent calls use the
cached value.
The data pre-processing consists in filtering and
extraction/addition of phenotypic or feature annotation
data. The filtering is performed by the function stored
in element object$filter
. The extra phenotypic
data is generated by the function stored in element
object$pdata
. The extra feature data is generated
by the function stored in element object$fdata
.
Note that the whole pre-processing pipeline is not
cached.
## Not run:
##D # get data from the registry
##D e <- gedData('GSE20300')
##D # this is an ExpressionMix object
##D e
##D # extract the ExpressionSet part
##D class(eset(e))
## End(Not run)
ExpressionSet