R/extractor_functions.R

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

setMethod(".extract_cID", "SingleCellExperiment", function (sce) {

    sce@metadata$hexbin[[1]]
  
}) 

setMethod(".extract_cID", "Seurat", function (sce) {

    sce@misc$hexbin[[1]]
  
}) 

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

setMethod(".extract_hexbin", "SingleCellExperiment", function (sce) {

    sce@metadata$hexbin[[2]]
  
}) 

setMethod(".extract_hexbin", "Seurat", function (sce) {
  
    sce@misc$hexbin[[2]]
  
}) 

Try the schex package in your browser

Any scripts or data that you put into this service are public.

schex documentation built on Nov. 8, 2020, 5:56 p.m.