statsCells: Calculate the Statistics for each Cell.

View source: R/models.R

statsCellsR Documentation

Calculate the Statistics for each Cell.

Description

Calculate the statistics, mean or median, for each cell.

Usage

statsCells(data, idents, stats = c("mean", "median"), cutoff = NA)

Arguments

data

Expression data. A d x M matrix with d rows of features and M columns of data points (cells).

idents

Cell type identity in characters or factors.

stats

Statistics used to calculate strength.

  • mean, using mean (Default).

  • medain, using median.

cutoff

Cutoff used to calculate the statistics (mean or median). Default is NA. If set to 0, all 0 values will be removed when calculating mean or median.

Value

Returns a matrix with calculated statistics.


stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.