colnames-set: Setter method for colnames in ExperimentSubset objects

Description Usage Arguments Value Examples

Description

Set colnames to an ExperimentSubset object or a subset in the ExperimentSubset object or any object supported by colnames in base package.

Usage

1
2
3
4
colnames(object, ...) <- value

## S4 replacement method for signature 'ANY'
colnames(object, subsetName, ...) <- value

Arguments

object

ExperimentSubset Input ExperimentSubset object or any object supported by colnames in base package.

...

Additional parameters and subsetName parameter to pass the name of the subset to get colnames from.

value

list() A list of colnames to set to the input object.

subsetName

character(1) Name of the subset to get colnames from. If missing, colnames from main object are returned.

Value

Input object with colnames set.

Examples

1
2
3
4
5
6
7
8
data(sce_chcl, package = "scds")
es <- ExperimentSubset(sce_chcl)
es <- createSubset(es, "subset1",
rows = c(10,11,50,56,98,99,102,105,109, 200),
cols = c(20,21,40,45,90,99,100,123,166,299),
parentAssay = "counts")
colnames(es, subsetName = "subset1") <-
paste0("col", seq(subsetDim(es, subsetName = "subset1")[2]))

ExperimentSubset documentation built on Nov. 8, 2020, 5:03 p.m.