sampleLabel: Get or set sample labels from a celda SingleCellExperiment...

Description Usage Arguments Value Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sampleLabel(x, ...)

## 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.

...

Ignored. Placeholder to prevent check warning.

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

1
2
3
4

celda documentation built on Nov. 8, 2020, 8:24 p.m.