Description Usage Arguments Details Value Author(s)
Find highly variable genes (log linear model)
1 2 | logVarGenes(scd, minMean = 0, fraction = 0.05, lower = FALSE,
residualsInLogSpace = TRUE, quadratic = TRUE, se = qnorm(p = 0.975))
|
scd |
Single Cell Dataset |
minMean |
Fit model to genes with mean expression gretaer than minMean |
fraction |
The fraction of cells on |
lower |
By default this function will only winsorise the upper end. If you also require the bottom end to be winsorised set this to TRUE. |
residualsInLogSpace |
Use lm instead of nls to optimise residuals in log-space. |
quadratic |
Fit an order 2 model to log cv-squared against log mean |
se |
The number of standard errors to return. |
Find highly variable genes (log linear model). Model is fitted to:
\frac{σ^{2}}{μ^{2}} = a * μ^{k}
Using the non-linear squares method, if residualsInLogSpace is FALSE. Otherwise using a linear model +/- a quadartic term.
Returns a list of means, cv2, fit object and variable genes
Wajid Jawaid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.