factorizeMatrix.Rd
Generate factorized matrices showing each feature's influence on cell / gene clustering
factorizeMatrix(counts, celda.mod, type)
counts | Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate `celda.mod`. |
---|---|
celda.mod | Celda object of class "celda_C", "celda_G", or "celda_CG". |
type | A character vector containing one or more of "counts", "proportions", or "posterior". "counts" returns the raw number of counts for each entry in each matrix. "proportions" returns the counts matrix where each vector is normalized to a probability distribution. "posterior" returns the posterior estimates which include the addition of the Dirichlet concentration parameter (essentially as a pseudocount). |
celda.sim = simulateCells("celda_CG") celda.mod = celda_CG(celda.sim$counts, K=celda.sim$K, L=celda.sim$L, nchains=1, max.iter=1)#>#>#>#>#>#>#>#>#>#>#>#>#>factorized.matrices = factorizeMatrix(celda.sim$counts, celda.mod, "posterior")