Get or update sample names in BarcodeObj object and BarcodeQcSet.

bc_names(x)

bc_names(x) <- value

# S4 method for class 'BarcodeObj'
bc_names(x)

# S4 method for class 'BarcodeObj,character'
bc_names(x) <- value

# S4 method for class 'BarcodeQcSet'
bc_names(x)

# S4 method for class 'BarcodeQcSet,ANY'
bc_names(x) <- value

Arguments

x

A BarcodeObj object or a BarcodeQcSet object.

value

A character vector setting the new sample names, with the length of the samples number in BarcodeObj or BarcodeQcSet object.

Value

A character vector

Examples

data(bc_obj)

bc_names(bc_obj)
#> [1] "test1" "test2"
bc_names(bc_obj) <- c("new1", "new2")