xrefExists: Checks if the given identifier exists

View source: R/xrefExists.R

xrefExistsR Documentation

Checks if the given identifier exists

Description

Checks if the given identifier exists in the given mapping file

Usage

xrefExists(mapper, source, identifier, compactIdentifier)

Arguments

mapper

loaded BridgeDb identifier mapper

source

system code of the data source

identifier

identifier to be searched

compactIdentifier

the Bioregistry.io compact identifier to check

Value

boolean

true, if the given identifier is found in the mapping database

Author(s)

Egon Willighagen

Examples

## Not run: 
location <- getDatabase("Bacillus subtilis")
mapper <- loadDatabase(location)
xrefExists(mapper, "L", "885041")
xrefExists(mapper, compactIdentifier="ncbigene:885041")

## End(Not run)

egonw/BridgeDbR documentation built on Sept. 18, 2023, 8:14 p.m.