factorizeMatrix: Generate factorized matrices showing each feature's influence...

Description Usage Arguments Value Examples

View source: R/s3_generics.R

Description

Generate factorized matrices showing each feature's influence on cell / gene clustering

Usage

1
factorizeMatrix(counts, celda.mod, type)

Arguments

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).

Value

A list of lists of the types of factorized matrices specified

Examples

1
2
factorized.matrices = factorizeMatrix(celda.CG.sim$counts, celda.CG.mod, 
                                      "posterior")

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.