Description Usage Arguments Details Value
View source: R/calc_posterior.R
Given prediction and prior variance, calculates the Gamma posterior distribution parameters for a single gene.
1 | calc.post(y, mu, sf, scale.sf)
|
y |
A vector of observed gene counts. |
mu |
A vector of prior means. |
sf |
Vector of normalized size factors. |
scale.sf |
Mean of the original size factors. |
Let α be the shape parameter and β be the rate parameter of the prior Gamma distribution. Then, the posterior Gamma distribution will be
Gamma(y + α, sf + β),
where y is the observed gene count and sf is the size factor.
A list with the following components
|
Recovered (normalized) expression |
|
Standard error of expression estimate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.