View source: R/PRIOR_FUNCTIONS.R
EstPrior | R Documentation |
Input raw data and return estimated size and mu for each gene using the MME method.
EstPrior(Data, verbose = TRUE)
Data |
A matrix of single-cell expression where rows
are genes and columns are samples (cells). |
verbose |
print out status messages. Default is TRUE. |
mu and size are two parameters of the prior that need to be specified for each gene in bayNorm. They are parameters of negative binomial distribution. The variance is mu + mu^2/size in this parametrization.
List containing estimated mu and size for each gene.
data('EXAMPLE_DATA_list') #Return estimated mu and size for each gene using MME method. MME_est<-EstPrior(Data=EXAMPLE_DATA_list$inputdata[,seq(1,30)], verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.