Compute dispersion for each gene in a gene x sample matrix
gene_dispersion(dat, means = NULL, vars = NULL, rescale = FALSE)a matrix or dg[CT]Matrix of expression values with genes as rows and samples as columns.
(optional) a vector of means for each gene/row. If NULL (default), will be computed using gene_means().
(optional) a vector of variances for each gene/row. If NULL (default), will be computed using gene_vars().
a logical indicating whether or not to rescale using rescale_samples(). Default is FALSE.
a numeric vector of dispersion values for each gene