factorizeMatrix {celda} | R Documentation

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

### Description

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

### Usage

    factorizeMatrix(
      counts,
      celdaMod,
      type = c("counts", "proportion", "posterior")
    )

### Arguments

`counts` | Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate 'celdaMod'.
`celdaMod` | 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

    data(celdaCGSim, celdaCGMod)
    factorizedMatrices <- factorizeMatrix(
        celdaCGSim$counts, celdaCGMod,
        "posterior"
    )

[Package celda version 1.2.4 Index]