KEGGAPI
Documentation for KEGGAPI.
diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index e7c0d8e..90c3d1b 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-04T01:39:23","documenter_version":"1.4.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-04T02:04:55","documenter_version":"1.4.1"}} \ No newline at end of file diff --git a/dev/assets/logo.jpeg b/dev/assets/logo.jpeg new file mode 100644 index 0000000..7b0ec9f Binary files /dev/null and b/dev/assets/logo.jpeg differ diff --git a/dev/index.html b/dev/index.html index 7045512..51db0e0 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1,2 +1,2 @@ -
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
Examples analogous to KEGG Conv
Querying the API for a simple conversion returns a list with:
This allows to easily convert to a data frame:
output = KEGGAPI.conv("eco", "ncbi-geneid");
+Some Examples · KEGGAPI.jl Some Examples
KEGGAPI.conv
Examples analogous to KEGG Conv
Querying the API for a simple conversion returns a list with:
- The API call
- The column headers of the call ( if the result is tabular )
- The data
This allows to easily convert to a data frame:
output = KEGGAPI.conv("eco", "ncbi-geneid");
first(DataFrame(
output.data,
output.colnames
-), 20)
20×2 DataFrameRow Target ID Source ID String String 1 ncbi-geneid:944742 eco:b0001 2 ncbi-geneid:945803 eco:b0002 3 ncbi-geneid:947498 eco:b0003 4 ncbi-geneid:945198 eco:b0004 5 ncbi-geneid:944747 eco:b0005 6 ncbi-geneid:944749 eco:b0006 7 ncbi-geneid:944745 eco:b0007 8 ncbi-geneid:944748 eco:b0008 9 ncbi-geneid:944760 eco:b0009 10 ncbi-geneid:944792 eco:b0010 11 ncbi-geneid:944771 eco:b0011 12 ncbi-geneid:948295 eco:b0012 13 ncbi-geneid:944751 eco:b0013 14 ncbi-geneid:944750 eco:b0014 15 ncbi-geneid:944753 eco:b0015 16 ncbi-geneid:944754 eco:b0016 17 ncbi-geneid:944756 eco:b0018 18 ncbi-geneid:944758 eco:b0019 19 ncbi-geneid:944757 eco:b0020 20 ncbi-geneid:944743 eco:b0021
output = KEGGAPI.conv("ncbi-geneid", "eco");
+), 5)
5×2 DataFrameRow Target ID Source ID String String 1 ncbi-geneid:944742 eco:b0001 2 ncbi-geneid:945803 eco:b0002 3 ncbi-geneid:947498 eco:b0003 4 ncbi-geneid:945198 eco:b0004 5 ncbi-geneid:944747 eco:b0005
output = KEGGAPI.conv("ncbi-geneid", "eco");
first(DataFrame(
output.data,
output.colnames
-), 20)
20×2 DataFrameRow Target ID Source ID String String 1 eco:b0001 ncbi-geneid:944742 2 eco:b0002 ncbi-geneid:945803 3 eco:b0003 ncbi-geneid:947498 4 eco:b0004 ncbi-geneid:945198 5 eco:b0005 ncbi-geneid:944747 6 eco:b0006 ncbi-geneid:944749 7 eco:b0007 ncbi-geneid:944745 8 eco:b0008 ncbi-geneid:944748 9 eco:b0009 ncbi-geneid:944760 10 eco:b0010 ncbi-geneid:944792 11 eco:b0011 ncbi-geneid:944771 12 eco:b0012 ncbi-geneid:948295 13 eco:b0013 ncbi-geneid:944751 14 eco:b0014 ncbi-geneid:944750 15 eco:b0015 ncbi-geneid:944753 16 eco:b0016 ncbi-geneid:944754 17 eco:b0018 ncbi-geneid:944756 18 eco:b0019 ncbi-geneid:944758 19 eco:b0020 ncbi-geneid:944757 20 eco:b0021 ncbi-geneid:944743
output = KEGGAPI.conv("ncbi-proteinid", "hsa:10458+ece:Z5100");
+), 5)
5×2 DataFrameRow Target ID Source ID String String 1 eco:b0001 ncbi-geneid:944742 2 eco:b0002 ncbi-geneid:945803 3 eco:b0003 ncbi-geneid:947498 4 eco:b0004 ncbi-geneid:945198 5 eco:b0005 ncbi-geneid:944747
output = KEGGAPI.conv("ncbi-proteinid", "hsa:10458+ece:Z5100");
DataFrame(
output.data,
output.colnames
@@ -15,4 +15,4 @@
DataFrame(
output.data,
output.colnames
-)
1×2 DataFrameRow Target ID Source ID String String 1 ncbi-geneid:948364 eco:b3809
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
+)
Row | Target ID | Source ID |
---|---|---|
String | String | |
1 | ncbi-geneid:948364 | eco:b3809 |
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
KEGGAPI.conv
— MethodKEGGAPI.conv(<targetdb>, <sourcedb>)
Convert KEGG identifiers to/from outside identifiers.
Example:
using KEGGAPI
+KEGGAPI.jl Functions · KEGGAPI.jl KEGGAPI.jl Functions
KEGGAPI.conv
— MethodKEGGAPI.conv(<targetdb>, <sourcedb>)
Convert KEGG identifiers to/from outside identifiers.
Example:
using KEGGAPI
KEGGAPI.conv("eco", "ncbi-geneid")
KEGGAPI.conv("ncbi-geneid", "eco")
KEGGAPI.conv("ncbi-proteinid", "hsa:10458+ece:Z5100")
-KEGGAPI.conv("genes", "ncbi-geneid:948364")
sourceKEGGAPI.find
— FunctionKEGGAPI.find(database, query) -> KeggTupleList
Find entries in a specific database from the KEGG API.
using KEGGAPI
-KEGGAPI.find("compound","glucose")
sourceKEGGAPI.get_image
— MethodKEGGAPI.get_image(pathway) -> Image
Get an image of a specific pathway from the KEGG API.
Example:
KEGGAPI.get_image("hsa00010")
sourceKEGGAPI.info
— MethodKEGGAPI.info(database) -> String
Get information about a specific database from the KEGG API.
Example:
KEGGAPI.info("kegg")
sourceKEGGAPI.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
using KEGGAPI
+KEGGAPI.conv("genes", "ncbi-geneid:948364")
sourceKEGGAPI.find
— FunctionKEGGAPI.find(database, query) -> KeggTupleList
Find entries in a specific database from the KEGG API.
using KEGGAPI
+KEGGAPI.find("compound","glucose")
sourceKEGGAPI.get_image
— MethodKEGGAPI.get_image(pathway) -> Image
Get an image of a specific pathway from the KEGG API.
Example:
KEGGAPI.get_image("hsa00010")
sourceKEGGAPI.info
— MethodKEGGAPI.info(database) -> String
Get information about a specific database from the KEGG API.
Example:
KEGGAPI.info("kegg")
sourceKEGGAPI.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
using KEGGAPI
kegg_get_genes =
KEGGAPI.kegg_get(
["hsa:10458", "hsa:10458", "hsa:10458", "hsa:10458"],
@@ -15,5 +15,5 @@
KEGGAPI.kegg_get(
["C01290","G00092"]
);
-first(kegg_get_compounds)
sourceKEGGAPI.link
— MethodKEGGAPI.conv(<targetdb>, <sourcedb>)
Find related entries by using database cross-references
Example:
KEGGAPI.link("pathway", "hsa")
sourceKEGGAPI.list
— FunctionKEGGAPI.list(database)
Get a list of entries from a specific database from the KEGG API.
Example:
KEGGAPI.list("pathway")
sourceKEGGAPI.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")
sourceKEGGAPI.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")
sourceKEGGAPI.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")
sourceSettings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
+first(kegg_get_compounds)
KEGGAPI.link
— MethodKEGGAPI.conv(<targetdb>, <sourcedb>)
Find related entries by using database cross-references
Example:
KEGGAPI.link("pathway", "hsa")
KEGGAPI.list
— FunctionKEGGAPI.list(database)
Get a list of entries from a specific database from the KEGG API.
Example:
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")
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
KEGGAPI can be installed using the Julia package manager. From the Julia REPL, type ]
to enter the Pkg REPL mode and run
pkg> add https://github.com/bwbioinfo/KEGGAPI.jl
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.
Settings
This document was generated with Documenter.jl version 1.4.1 on Saturday 4 May 2024. Using Julia version 1.10.3.