This function removes layers from a Seurat or SCE object's RNA assay based on a specified regular expression pattern. It is supposed to remove no longer needed layers from th object.
Examples
sce_data <- readRDS(system.file("extdata", "sce_data.rds", package = "DOtools"))
sce_data <- DO.DietSCE(sce_data, pattern = "data")
#> 2025-07-26 09:21:09 - pattern: data
#> 2025-07-26 09:21:10 - Object has no layers, pattern does not need to be removed from layers.