celdaModules {celda} | R Documentation

## Get or set the feature module labels from a celda SingleCellExperiment object.

### Description

Return or set the feature module cluster labels determined by celda_G or celda_CG models.

### Usage

    celdaModules(sce, altExpName = "featureSubset")

    ## S4 method for signature 'SingleCellExperiment'
    celdaModules(sce, altExpName = "featureSubset")

    celdaModules(sce, altExpName = "featureSubset") <- value

    ## S4 replacement method for signature 'SingleCellExperiment'
    celdaModules(sce, altExpName = "featureSubset") <- value

### Arguments

`sce` | A SingleCellExperiment object returned by celda_G, or celda_CG, with the matrix located in the `useAssay` assay slot. Rows represent features and columns represent cells.
`altExpName` | The name for the altExp slot to use. Default "featureSubset".
`value` | Character vector of feature module labels for replacements. Works only if `x` is a SingleCellExperiment object.

### Value

Character vector. Contains feature module labels for each feature in x.

### Examples

    data(sceCeldaCG)
    celdaModules(sceCeldaCG)

[Package celda version 1.6.1 Index]