clusterProbability,celda_G-method {celda} | R Documentation

## Conditional probabilities for features in modules from a Celda_G model

### Description

Calculates the conditional probability of each feature belonging to each module given all other feature cluster assignments in a 'celda_G()' result.

### Usage

    ## S4 method for signature 'celda_G'
    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_G'.
`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 cluster probabilities.

### See Also

'celda_G()' for clustering features

### Examples

    data(celdaGSim, celdaGMod)
    clusterProb <- clusterProbability(celdaGSim$counts, celdaGMod)

[Package celda version 1.3.4 Index]