gene_means: Compute means for each gene in a gene x sample matrix

View source: R/vg.R

gene_meansR Documentation

Compute means for each gene in a gene x sample matrix

Description

This is a convenient wrapper around rowMeans that is compatible with multiple matrix types (including dgCMatrix)

Usage

gene_means(dat, rescale = FALSE)

Arguments

dat

a matrix or dg[CT]Matrix of expression values with genes as rows and samples as columns.

rescale

a logical indicating whether or not to rescale using rescale_samples(). Default is FALSE.

Value

a vector of means for each gene/row


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.