hasGeneSetCollection {sparrow} | R 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")

[Package sparrow version 1.0.3 Index]