Calculate rowSums
, colSums
,
rowMeans
, and colMeans
on
Seurat
objects
# S4 method for Seurat
colMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")# S4 method for Seurat
colSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
# S4 method for Seurat
rowMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")
# S4 method for Seurat
rowSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
colMeans
: the column (cell-wise) means of slot
colSums
: the column (cell-wise) sums of slot
rowMeans
: the row (feature-wise) means of slot
rowSums
: the row (feature-wise) sums of slot
A Seurat
object
logical. Should missing values (including NaN
)
be omitted from the calculations?
completely ignored by the Matrix
methods.
potentially further arguments, for method <->
generic compatibility.
Name of assay expression matrix to calculate column/row means/sums on
Seurat
head(colMeans(pbmc_small))
head(colSums(pbmc_small))
head(rowMeans(pbmc_small))
head(rowSums(pbmc_small))
Run the code above in your browser using DataLab