sampleLabel {celda} | R Documentation

## Get or set sample labels from a celda SingleCellExperiment object

### Description

Return or set the sample labels for the cells in `sce`.

### Usage

    sampleLabel(x, altExpName = "featureSubset")

    ## S4 method for signature 'SingleCellExperiment'
    sampleLabel(x, altExpName = "featureSubset")

    sampleLabel(x, altExpName = "featureSubset") <- value

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

    ## S4 method for signature 'celdaModel'
    sampleLabel(x)

### Arguments

`x` | Can be one of 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 celda model object.
`altExpName` | The name for the altExp slot to use. Default "featureSubset".
`value` | Character vector of sample labels for replacements. Works only is `x` is a SingleCellExperiment object.

### Value

Character vector. Contains the sample labels provided at model creation, or those automatically generated by celda.

### Examples

    data(sceCeldaCG)
    sampleLabel(sceCeldaCG)
    data(celdaCGMod)
    sampleLabel(celdaCGMod)

[Package celda version 1.8.1 Index]