View source: R/Single_Cell_Simu.R
calcMV | R Documentation |
Calculate empirical means and variances of selected genes in a given dataset.
calcMV(a, FC = 1, FC.thresh = NA, threshold = Inf, include.zeroes = FALSE)
a |
Numeric vector of values to calculate empirical mean and variance. |
FC |
Fold change for the mean and standard deviation. Default value is 1. |
FC.thresh |
Alternate fold change for the mean and standard deviation
when the (log nonzero) mean is above the value of |
threshold |
Mean threshold value which dictates which fold change value
to use for multiplying mean and standard deviation.
Default value is Inf (so |
include.zeroes |
Logical value indicating whether the zero values should be included in the calculations of the empirical means and variances. |
Calculate empirical means and variances of selected genes in a
given dataset. Optionally, multiply
the means and standard deviations by a fold change value, which can also
vary by mean value. If the mean is
below some specified threshold threshold
, use one fold change value
FC
. If above the threshold, use the alternate
fold change value FC.thresh
. Estimates of mean and variance are
robust to outliers.
MV Vector of two elements, first contains the empirical mean estimate, second contains the empirical variance estimate (optionally multiplied by a fold change).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.