map: Converts one identifier into other identifiers for the given...

View source: R/map.R

mapR Documentation

Converts one identifier into other identifiers for the given target data source.

Description

Converts one identifier into other identifiers for the given target data source.

Usage

map(mapper, source, identifier, target, compactIdentifier)

Arguments

mapper

loaded BridgeDb identifier mapper

source

system code of the data source

identifier

identifier to be converted

target

system code of the target data source (optional)

compactIdentifier

the Bioregistry.io compact identifier to convert

Value

mappings

a data frame of mapped identifiers for the target data source

Author(s)

Egon Willighagen

Examples

## Not run: 
location <- getDatabase("Bacillus subtilis")
mapper <- loadDatabase(location)
map(mapper, "En", "BSn5_00025", "S")
map(mapper, "En", "BSn5_00025")
location <- getDatabase("Homo sapiens")
mapper <- loadDatabase(location)
map(mapper, "En", "ENSG00000139618")
map(mapper, compactIdentifier="uniprot:P51587")

## End(Not run)

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