factorizeMatrix.celda_C: Matrix factorization for results from celda_C()

Description Usage Arguments Value See Also Examples

View source: R/celda_C.R

Description

Generates factorized matrices showing the contribution of each feature in each cell population or each cell population in each sample.

Usage

1
2
3
## S3 method for class 'celda_C'
factorizeMatrix(counts, celda.mod, 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 'celda.mod'.

celda.mod

Celda object of class "celda_C".

type

Character vector. A vector containing one or more of "counts", "proportion", or "posterior". "counts" returns the raw number of counts for each factorized matrix. "proportions" returns the normalized probabilities for each factorized matrix, which are calculated by dividing the raw counts in each factorized matrix by the total counts in each column. "posterior" returns the posterior estimates. Default 'c("counts", "proportion", "posterior")'.

Value

A list with elements for 'counts', 'proportions', or 'posterior' probabilities. Each element will be a list containing factorized matrices for 'module' and 'sample'.

See Also

'celda_C()' for clustering cells

Examples

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

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