gene_loess_fit: Compute dispersion-mean Loess-fit for each gene in a gene x...

View source: R/vg.R

gene_loess_fitR Documentation

Compute dispersion-mean Loess-fit for each gene in a gene x sample matrix

Description

Compute dispersion-mean Loess-fit for each gene in a gene x sample matrix

Usage

gene_loess_fit(dat, dispersions = NULL, means = 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().

means

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

rescale

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

Value

a loess fit object returned by the loess() function.


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