NBumiFitDispVsMean {M3Drop} | R 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);

[Package M3Drop version 1.18.0 Index]