EstPrior {bayNorm} | R Documentation |
Input raw data and return estimated size and mu for each gene using the MME method.
EstPrior(Data, parallel = FALSE, NCores = 5, verbose = TRUE)
Data |
A matrix of single-cell expression where rows
are genes and columns are samples (cells). |
parallel |
If TRUE, |
NCores |
number of cores to use, default is 5. This will be used to set up a parallel environment using either MulticoreParam (Linux, Mac) or SnowParam (Windows) with NCores using the package BiocParallel. |
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)