Skip to contents

Set genes of a BLASE Data object.

Usage

genes(x) <- value

# S4 method for class 'BlaseData'
genes(x) <- value

Arguments

x

a BlaseData object

value

new value for genes slot, should be a vector of strings

Value

Nothing

Examples

counts <- matrix(rpois(100, lambda = 10), ncol = 10, nrow = 10)
sce <- SingleCellExperiment::SingleCellExperiment(
    assays = list(normcounts = counts)
)
sce$pseudotime <- seq_len(10) - 1
data <- as.BlaseData(sce, pseudotime_slot = "pseudotime", n_bins = 3)
genes(data) <- as.character(seq_len(10))

genes(data)
#>  [1] "1"  "2"  "3"  "4"  "5"  "6"  "7"  "8"  "9"  "10"