Learn R Programming

RaceID (version 0.2.3)

plotRegNB: Function for plotting negative binomial regression

Description

This function plots the parameters obatined by the negative binomial regression of the transcript counts on the total transcript count in each cells. Smoothed parameter estimates are also shown.

Usage

plotRegNB(expData, noise, par.nb = NULL)

Value

None

Arguments

expData

Matrix of gene expression values with genes as rows and cells as columns. The matrix need to contain the same cell IDs as columns like the input matrix used to derive the pruned k nearest neighbours with the pruneKnn function.

noise

List object with the background noise model and a variability matrix, returned by the compNoise function.

par.nb

Parameter to be plotted, i.e. valid column of noise$regData$nbRegr. of the log10 total UMI count. intercept is the intercept inferred by the regression. Default is NULL and theta is shown.

Examples

Run this code
res <- pruneKnn(intestinalDataSmall,metric="pearson",knn=10,alpha=1,no_cores=1,FSelect=FALSE)
noise <- compNoise(intestinalDataSmall,res,regNB=TRUE,pvalue=0.01,genes = NULL,no_cores=1)
plotRegNB(intestinalDataSmall,noise,"theta")

Run the code above in your browser using DataLab