KEGGAPI
Documentation for KEGGAPI.
KEGGAPI.conv
KEGGAPI.find
KEGGAPI.get_image
KEGGAPI.info
KEGGAPI.kegg_get
KEGGAPI.link
KEGGAPI.list
KEGGAPI.request
KEGGAPI.request_other
KEGGAPI.save_image
Functions
KEGGAPI.conv
— MethodKEGGAPI.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")
KEGGAPI.find
— FunctionKEGGAPI.find(database, query) -> KeggTupleList
Find entries in a specific database from the KEGG API.
Examples
KEGGAPI.find("compound","glucose")
KEGGAPI.get_image
— MethodKEGGAPI.get_image(pathway) -> Image
Get an image of a specific pathway from the KEGG API.
Examples
KEGGAPI.get_image("hsa00010")
KEGGAPI.info
— MethodKEGGAPI.info(database) -> String
Get information about a specific database from the KEGG API.
Examples
KEGGAPI.info("kegg")
KEGGAPI.kegg_get
— FunctionKEGGAPI.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"]
)
KEGGAPI.link
— MethodKEGGAPI.conv(<targetdb>, <sourcedb>)
Find related entries by using database cross-references
Examples
KEGGAPI.link("pathway", "hsa")
KEGGAPI.list
— FunctionKEGGAPI.list(database)
Get a list of entries from a specific database from the KEGG API.
Examples
KEGGAPI.list("pathway")
KEGGAPI.request
— Methodrequest(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")
KEGGAPI.request_other
— Methodrequest_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")
KEGGAPI.save_image
— MethodKEGGAPI.save_image(image, filename) -> filename
Save an image to a file.
Examples
image = KEGGAPI.get_image("hsa00010")
KEGGAPI.save_image(image, "glycolysis.png")