
Set genes of a BLASE Data object.
genes-setter.Rd
Set genes of a BLASE Data object.
Arguments
- x
a BlaseData object
- value
new value for genes slot, should be a vector of strings
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"