Description Available methods Author(s) See Also Examples
Miscellaneous methods for the SingleCellExperiment class that do not fit in any other documentation category.
In the following code snippets, x
and object
are SingleCellExperiment objects.
show(object)
:Print a message to screen describing the contents of object
.
objectVersion(x)
:Return the version of the package with which x
was constructed.
sizeFactors(object)
:Return a numeric vector of size factors of length equal to ncol(object)
.
If no size factors are available in object
, return NULL
instead.
sizeFactors(object) <- value
:Replace the size factors with value
,
usually expected to be a numeric vector or vector-like object.
Alternatively, value
can be NULL
in which case any size factors in object
are removed.
Aaron Lun
updateObject
, where objectVersion
is used.
1 2 3 4 5 6 7 8 9 10 11 12 | example(SingleCellExperiment, echo=FALSE) # Using the class example
show(sce)
objectVersion(sce)
# Setting/getting size factors.
sizeFactors(sce) <- runif(ncol(sce))
sizeFactors(sce)
sizeFactors(sce) <- NULL
sizeFactors(sce)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.