R/has_graph.R

Defines functions has_graph

Documented in has_graph

#' Has graph
#'
#' Check whether an object has a particular graph.
#' @param graph_keys The names of specific graphs to extract.
#' @inheritParams converters
has_graph <- function(obj,
                      graph_keys,
                      verbose = TRUE){

    g <- get_obsp(obj = obj,
                    verbose = verbose)
    graph_keys %in% names(g)
}
bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.