R/extractor_functions.R

setGeneric(".extract_cID", function(sce) standardGeneric(".extract_cID"))

setMethod(".extract_cID", "SingleCellExperiment", function(sce) {
    sce@metadata$hexbin[[1]]
})

setGeneric(".extract_hexbin", function(sce) standardGeneric(".extract_hexbin"))

setMethod(".extract_hexbin", "SingleCellExperiment", function(sce) {
    sce@metadata$hexbin[[2]]
})
SaskiaFreytag/schex documentation built on Feb. 4, 2024, 7:49 p.m.