eSparse() returns an assay of the Sparse slot of a ScMaSigPro
object, genes by cells, as a dense matrix; eSparse<- sets one.
Usage
eSparse(object, i = "counts", ...)
eSparse(object, i = "counts") <- value
# S4 method for class 'ScMaSigPro'
eSparse(object, i = "counts", ...)
# S4 method for class 'ScMaSigPro,character'
eSparse(object, i = "counts") <- value
# S4 method for class 'ScMaSigPro,missing'
eSparse(object, i = "counts") <- valueArguments
- object
A ScMaSigPro object.
- i
The name of the assay. With the default,
"counts",eSparse()returns the first assay when no assay has that name.- ...
Not used.
- value
A matrix, a
dgCMatrixor a data frame of numbers, with one row per gene and one column per cell of theSparseslot. Its row and column names, when present, must be the gene and cell names of the slot in the same order; missing names are filled in.
Details
eSparse<- stores value as a dgCMatrix. It gives a message when it
creates a new assay and a warning when it replaces one.
See also
Other accessors:
cDense(),
cSparse(),
eDense(),
pathAssign(),
predictors()
