clusterProbability,celda_CG-method {celda} | R Documentation

## Conditional probabilities for cells and features from a Celda_CG model

### Description

Calculates the conditional probability of each cell belonging to each subpopulation given all other cell cluster assignments as well as each feature belonging to each module given all other feature cluster assignments in a 'celda_CG()' result.

### Usage

    ## S4 method for signature 'celda_CG'
    clusterProbability(counts, celdaMod, log = FALSE, ...)

### 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_CG'.
`log` | Logical. If FALSE, then the normalized conditional probabilities will be returned. If TRUE, then the unnormalized log probabilities will be returned. Default FALSE.
`...` | Additional parameters.

### Value

A list containging a matrix for the conditional cell and feature cluster probabilities.

### See Also

'celda_CG()' for clustering features and cells

### Examples

    data(celdaCGSim, celdaCGMod)
    clusterProb <- clusterProbability(celdaCGSim$counts, celdaCGMod)

[Package celda version 1.2.4 Index]