Learn R Programming

KEGGREST (version 1.12.2)

keggLink: Find related entries by using database cross-references.

Description

Find related entries by using database cross-references.

Usage

keggLink(target, source)

Arguments

target
Either the name of a single KEGG database (list available via listDatabases(), a "T number" genome identifier, or a KEGG organism code (lists of both available via keggList("organism")).
source
The same as target, but may also be one or more KEGG identifiers.

Value

A named character vector.

Details

Many of the old KEGGSOAP functions whose names started with 'get', such as get.pathways.by.genes and get.pathways.by.reactions, are replaced by using keggLink (see examples).

References

http://www.kegg.jp/kegg/docs/keggapi.html

Examples

Run this code
keggLink("pathway", "hsa") ## KEGG pathways linked from each of the human genes
                           ## equivalent to 'get.genes.by.pathway' in KEGGSOAP
keggLink("hsa", "pathway") ## human genes linked from each of the KEGG pathways
                           ## equivalent to 'get.pathways.by.genes' in KEGGSOAP
keggLink("pathway", c("hsa:10458", "ece:Z5100")) ## KEGG pathways linked from a
                                                 ## human gene and an E. coli
                                                 ## O157 gene
keggLink("hsa:126") ## LinkDB search shows all KEGG resources related to hsa:126

Run the code above in your browser using DataLab