KEGGAPI

Documentation for KEGGAPI.

Functions

KEGGAPI.convMethod

KEGGAPI.conv(<targetdb>, <sourcedb>)

Convert KEGG identifiers to/from outside identifiers.

Examples

KEGGAPI.conv("eco", "ncbi-geneid")
KEGGAPI.conv("ncbi-geneid", "eco")
KEGGAPI.conv("hsa:10458+ece:Z5100", "ncbi-proteinid")
KEGGAPI.conv("ncbi-geneid:948364", "genes")
source
KEGGAPI.findFunction

KEGGAPI.find(database, query) -> KeggTupleList

Find entries in a specific database from the KEGG API.

Examples

KEGGAPI.find("compound","glucose")
source
KEGGAPI.get_imageMethod

KEGGAPI.get_image(pathway) -> Image

Get an image of a specific pathway from the KEGG API.

Examples

KEGGAPI.get_image("hsa00010")
source
KEGGAPI.infoMethod

KEGGAPI.info(database) -> String

Get information about a specific database from the KEGG API.

Examples

KEGGAPI.info("kegg")
source
KEGGAPI.kegg_getFunction

KEGGAPI.get(query, option) -> Vector

Get entries from across the KEGG database. The get function takes a vector of strings and returns a vector containing the urls used and the data returned.

The get function will split the vector into groups of 10 and make a request for each chunk.

Examples

kegg_get_genes = 
    KEGGAPI.kegg_get(
        ["hsa:10458", "hsa:10458", "hsa:10458", "hsa:10458"], 
        "ntseq"
        )
kegg_get_compounds = 
KEGGAPI.kegg_get(
    ["C01290","G00092"]
    )
source
KEGGAPI.linkMethod

KEGGAPI.conv(<targetdb>, <sourcedb>)

Find related entries by using database cross-references

Examples

KEGGAPI.link("pathway", "hsa")
source
KEGGAPI.listFunction

KEGGAPI.list(database)

Get a list of entries from a specific database from the KEGG API.

Examples

KEGGAPI.list("pathway")
source
KEGGAPI.requestMethod

request(url)

Make a request to the specified URL and return the response body as a string. If an error occurs, a RequestError is thrown. This function is not intended for direct use. Instead, use the info, list, and find, etc. functions.

Examples

request("https://rest.kegg.jp/info/kegg")
source
KEGGAPI.request_otherMethod

request_other(url)

Make a request to the specified URL and return the response body as a vector. If an error occurs, a RequestError is thrown. This function is not intended for direct use.

Examples

request_other("https://rest.kegg.jp/image/hsa00010")
source
KEGGAPI.save_imageMethod

KEGGAPI.save_image(image, filename) -> filename

Save an image to a file.

Examples

image = KEGGAPI.get_image("hsa00010")
KEGGAPI.save_image(image, "glycolysis.png")
source