gene_z: Compute dispersion z-scores for each gene in a gene x sample...

View source: R/vg.R

gene_zR Documentation

Compute dispersion z-scores for each gene in a gene x sample matrix

Description

This version of z scoring will differ from base R's scale()

Usage

gene_z(dat, dispersions = NULL, rescale = FALSE)

Arguments

dat

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

dispersions

(optional) a vector of dispersions for each gene/row. If NULL (default), will be computed using gene_dispersion().

rescale

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

Value

a numeric vector of z-scores for each gene


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