EstPrior_sprcpp: Estimate size and mu for Negative Binomial distribution for...

View source: R/RcppExports.R

EstPrior_sprcppR Documentation

Estimate size and mu for Negative Binomial distribution for each gene using MME method (Rcpp version, sp_mat)

Description

Input raw data and return estimated size and mu for each gene using the MME method.

Usage

EstPrior_sprcpp(Data)

Arguments

Data

A matrix of single-cell expression where rows are genes and columns are samples (cells). Data can be of class SummarizedExperiment (the assays slot contains the expression matrix and is named "Counts") or just matrix.

Details

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.

Value

List containing estimated mu and size for each gene.

Examples

data("EXAMPLE_DATA_list")
#Should not run by the users, it is used in prior estimation.
## Not run: 


WT215/bayNorm documentation built on Sept. 2, 2022, 1:46 a.m.