### conduct inference for peak calling
getInfer <- function(mu, mu0, var.mu){
### formulate statistics
#require(stats)
# require(matrixStats)
#require(base)
stat = (mu - mu0)/sqrt(var.mu)
pval = 1 - pnorm(stat)
fdr = p.adjust(pval, method = "fdr")
return(list(stats = stat, pval = pval, fdr = fdr))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.