init_ss: Initialize sufficient statistics.

Description Usage Arguments Value

Description

Calculate and cache in a list various sufficient statistics of the data used by the VAMF algorithm.

Usage

1
init_ss(Y, L, log2trans = TRUE, pseudocount = 0, b1_range = c(0.3, 0.7))

Arguments

Y

a data matrix, typically non-negative values such as counts or TPM

L

desired latent dimension (upper bound)

log2trans

should nonzero values of Y be converted to log-scale?

pseudocount

small offset for log transformation. Transformation is g(y)=log2(pseudocount+y) for all nonzero y values

b1_range

rough guess of typical slopes for the dropout mechanism

Value

a list of sufficient statistics used by other vamf functions


willtownes/vamf documentation built on May 8, 2019, 9:31 a.m.