cellNames: Get or set cell names from an SCESet object

Description Usage Arguments Details Value Author(s) Examples

View source: R/SCESet-methods.R

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)

dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.