R/clusterProbability.R
clusterProbability.Rd
Calculate the conditional probability of each cell belonging to each subpopulation given all other cell cluster assignments and/or each feature belonging to each module given all other feature cluster assignments in a celda model.
clusterProbability(
sce,
useAssay = "counts",
altExpName = "featureSubset",
log = FALSE
)
# S4 method for SingleCellExperiment
clusterProbability(
sce,
useAssay = "counts",
altExpName = "featureSubset",
log = FALSE
)
A SingleCellExperiment object returned by
celda_C, celda_G, or celda_CG, with the matrix
located in the useAssay
assay slot.
Rows represent features and columns represent cells.
A string specifying which assay slot to use. Default "counts".
The name for the altExp slot to use. Default "featureSubset".
Logical. If FALSE
, then the normalized conditional
probabilities will be returned. If TRUE
, then the unnormalized log
probabilities will be returned. Default FALSE
.
A list containging a matrix for the conditional cell subpopulation cluster and/or feature module probabilities.
`celda_C()` for clustering cells