Learn R Programming

cellGeometry (version 0.5.7)

logmean: Mean Objects

Description

Functions designed for use with scmean() to calculate mean gene expression in each cell cluster across matrix rows.

Usage

logmean(x)

trimmean(x)

log2s(x)

Value

Numeric vector of mean values.

logmean applies log2(x+1) then calculates rowMeans.

trimmean applies a trimmed mean to each row of gene counts, excluding the top and bottom 5% of values which helps to exclude outliers. Note, this needs the Rfast2 package to be installed. When trimmean is used with scmean(), postFUN is typically set to log2s. This simply applies log2(x+1) after the trimmed mean of counts has been calculated.

Arguments

x

A count matrix