gene_vars | R Documentation |
This function uses mean(values ^ 2) - mean(values) ^ 2
gene_vars(dat, means = NULL, rescale = FALSE)
dat |
a matrix or dg[CT]Matrix of expression values with genes as rows and samples as columns. |
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. |
Results will differ from the var() function.
a numeric vector of variance values for each gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.