R/utils.R

Defines functions .convert_subset_index

.convert_subset_index <- function(subset, names) {
    if(is.character(subset)) {
        fmt <- paste0('index out of bounds: %s')
        subset <- SummarizedExperiment:::.SummarizedExperiment.charbound(subset, names, fmt)
    }
    return(as.vector(subset))
}

Try the LoomExperiment package in your browser

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

LoomExperiment documentation built on Nov. 8, 2020, 5:41 p.m.