hasGeneSetCollection: Check if a collection exists in the 'GeneSetDb'

View source: R/GeneSetDb-methods.R

hasGeneSetCollectionR Documentation

Check if a collection exists in the GeneSetDb

Description

Check if a collection exists in the GeneSetDb

Usage

hasGeneSetCollection(x, collection, as.error = FALSE)

Arguments

x

A GeneSetDb()

collection

character vector of name(s) of the collections to query

as.error

logical if TRUE, this will error instead of returning FALSE

Value

logical indicating if this collection exists

Examples

gdb <- exampleGeneSetDb()
hasGeneSetCollection(gdb, "c2")
hasGeneSetCollection(gdb, "unknown collection")

lianos/sparrow documentation built on Nov. 18, 2024, 7:14 a.m.