Get or set cell names from an SCESet object

Description

Get or set cell names from an SCESet object

Usage

1
2
3
4
5
6
cellNames(object) <- value

cellNames(object)

## S4 replacement method for signature 'SCESet,vector'
cellNames(object)<-value

Arguments

object

An SCESet object.

value

a vector of cell names to apply to the SCESet object.

Details

Simply a wrapper to sampleNames.

Value

A vector of cell names.

Author(s)

Davis McCarthy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
cellNames(example_sceset)

data("sc_example_counts")
data("sc_example_cell_info")
example_sceset <- newSCESet(countData = sc_example_counts)
cellNames(example_sceset) <- 1:ncol(example_sceset)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.