clusterProbability,celda_C-method {celda} | R Documentation

## Conditional probabilities for cells in subpopulations from a Celda_C model

### Description

Calculates the conditional probability of each cell belonging to each subpopulation given all other cell cluster assignments in a 'celda_C()' result.

### Usage

    ## S4 method for signature 'celda_C'
    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_C'.
`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 subpopulation cluster probabilities.

### See Also

'celda_C()' for clustering cells

### Examples

    data(celdaCSim, celdaCMod)
    clusterProb <- clusterProbability(celdaCSim$counts, celdaCMod)

[Package celda version 1.0.4 Index]