Description Usage Arguments Details Value Examples
Calculates summary statistics to facilitate the fitting of a ZINB model, performs various data input checks.
1 2 | calculate_summary_values(counts)
|
counts |
a numeric matrix of raw UMI or read counts, columns = samples, rows = genes. |
Calculates various summary statistics: total counts by genes and cells, total dropouts by genes and cells and dimensions; which are necessary for fitting library-size adjusted negative binomial models or library-size adjusted zero-inflated negative binomial models.
Compatible with both regular matrices and sparse matrices as defined in the Matrix package.
A named list of: tis = total molecules per cell, tjs = total molecules per gene, dis = total dropouts per cell, djs = total dropouts per genes, total = total molecules in dataset, nc = number of cells, ng = number of genes
1 2 | counts <- matrix(rnbinom(10000, mu=10, size=0.5), ncol=20);
stats <- calculate_summary_values(counts);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.