getFreqShrink: Calculate cell frequencies for shrinakge estimator

Description Usage Arguments Value Examples

View source: R/Frequency.R

Description

Calculate cell frequencies for shrinakge estimator

Usage

1
getFreqShrink(transposeCounts, ind, N, Total)

Arguments

transposeCounts

Transposed sparse count matrix

ind

Integer indicating chosen gene (row number in count matrix)

N

Number of cells

Total

Integer of total counts per cell

Value

Numeric vector of shrinkage cell frequencies

Examples

1
2
3
4
5
6
Counts <- Matrix::sparseMatrix(i = c(2,3,3),
                               j = c(1,1,2),
                               x = c(1,1,1))
N <- ncol(Counts)
Total <- Matrix::rowSums(Counts)
getFreqShrink(Matrix::t(Counts), 1, N, Total)

mjcasy/infohet documentation built on May 4, 2021, 1:09 a.m.