colMeans-Seurat-method: Row and Column Sums and Means

colMeans,Seurat-methodR Documentation

Row and Column Sums and Means

Description

Calculate rowSums, colSums, rowMeans, and colMeans on Seurat objects

Usage

## S4 method for signature 'Seurat'
colMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")

## S4 method for signature 'Seurat'
colSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")

## S4 method for signature 'Seurat'
rowMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")

## S4 method for signature 'Seurat'
rowSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")

Arguments

x

A Seurat object

na.rm

logical. Should missing values (including NaN) be omitted from the calculations?

dims

completely ignored by the Matrix methods.

...

potentially further arguments, for method <-> generic compatibility.

slot

Name of assay expression matrix to calculate column/row means/sums on

Value

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

See Also

Seurat

Examples

head(colMeans(pbmc_small))

head(colSums(pbmc_small))

head(rowMeans(pbmc_small))

head(rowSums(pbmc_small))


SeuratObject documentation built on Nov. 18, 2023, 1:06 a.m.