v5-assay-summaries: V5 Assay Summaries

v5-assay-summariesR Documentation

V5 Assay Summaries

Description

Summary maths for StdAssay Objects

Usage

## S4 method for signature 'StdAssay'
colMeans(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

## S4 method for signature 'StdAssay'
colSums(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

## S4 method for signature 'StdAssay'
rowMeans(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

## S4 method for signature 'StdAssay'
rowSums(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

Arguments

x

an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame. For .colSums() etc, a numeric, integer or logical matrix (or vector of length m * n).

na.rm

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

dims

integer: Which dimensions are regarded as ‘rows’ or ‘columns’ to sum over. For row*, the sum or mean is over dimensions dims+1, ...; for col* it is over dimensions 1:dims.

layer

Name of layer to run function on

...

Ignored

Value

The results of the summary math function for the layer specified


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