NBumi_FitDispVsMean: Fit function between mean and dispersion

NBumiFitDispVsMeanR Documentation

Fit function between mean and dispersion

Description

Fits a power-law relationship between mean expression and dispersion.

Usage

	NBumiFitDispVsMean(fit, suppress.plot=TRUE)

Arguments

fit

output from NBumiFitModel or NBumiFitBasicModel.

suppress.plot

Whether to plot the calculated fit.

Details

Fits a power-law relationship between mean expression and fitted gene-specific dispersions, using linear regression on ln transformed values. Lowly expressed genes, mean expression < 2^4, are excluded as long as at least 2000 genes remain for fitting.

Value

Coefficients of linear regression.

Examples

	library(M3DExampleData)
	counts <- as.matrix(Mmus_example_list$data);
	counts <- counts[rowSums(counts) > 0,];
	fit <- NBumiFitModel(counts);
	coeffs <- NBumiFitDispVsMean(fit, suppress.plot=TRUE);

tallulandrews/M3Drop documentation built on March 6, 2024, 1:49 a.m.