KEGGAPI
Documentation for KEGGAPI.
diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 0124dac..e7c0d8e 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-03T20:21:52","documenter_version":"1.4.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-04T01:39:23","documenter_version":"1.4.1"}} \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index a7febe7..7045512 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 Friday 3 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
using KEGGAPI
-KEGGAPI.conv("eco", "ncbi-geneid")
KEGGAPI.KeggTupleList("https://rest.kegg.jp/conv/eco/ncbi-geneid", ["Target ID", "Source ID"], Any[["ncbi-geneid:944742", "ncbi-geneid:945803", "ncbi-geneid:947498", "ncbi-geneid:945198", "ncbi-geneid:944747", "ncbi-geneid:944749", "ncbi-geneid:944745", "ncbi-geneid:944748", "ncbi-geneid:944760", "ncbi-geneid:944792" … "ncbi-geneid:63925657", "ncbi-geneid:63925658", "ncbi-geneid:63925659", "ncbi-geneid:63925661", "ncbi-geneid:63925662", "ncbi-geneid:63925663", "ncbi-geneid:63925665", "ncbi-geneid:63925666", "ncbi-geneid:63925667", "ncbi-geneid:63925627"], ["eco:b0001", "eco:b0002", "eco:b0003", "eco:b0004", "eco:b0005", "eco:b0006", "eco:b0007", "eco:b0008", "eco:b0009", "eco:b0010" … "eco:b4794", "eco:b4795", "eco:b4796", "eco:b4797", "eco:b4798", "eco:b4799", "eco:b4800", "eco:b4801", "eco:b4802", "eco:b4803"]])
using KEGGAPI
-KEGGAPI.conv("ncbi-geneid", "eco")
KEGGAPI.KeggTupleList("https://rest.kegg.jp/conv/ncbi-geneid/eco", ["Target ID", "Source ID"], Any[["eco:b0001", "eco:b0002", "eco:b0003", "eco:b0004", "eco:b0005", "eco:b0006", "eco:b0007", "eco:b0008", "eco:b0009", "eco:b0010" … "eco:b4794", "eco:b4795", "eco:b4796", "eco:b4797", "eco:b4798", "eco:b4799", "eco:b4800", "eco:b4801", "eco:b4802", "eco:b4803"], ["ncbi-geneid:944742", "ncbi-geneid:945803", "ncbi-geneid:947498", "ncbi-geneid:945198", "ncbi-geneid:944747", "ncbi-geneid:944749", "ncbi-geneid:944745", "ncbi-geneid:944748", "ncbi-geneid:944760", "ncbi-geneid:944792" … "ncbi-geneid:63925657", "ncbi-geneid:63925658", "ncbi-geneid:63925659", "ncbi-geneid:63925661", "ncbi-geneid:63925662", "ncbi-geneid:63925663", "ncbi-geneid:63925665", "ncbi-geneid:63925666", "ncbi-geneid:63925667", "ncbi-geneid:63925627"]])
using KEGGAPI
-KEGGAPI.conv("ncbi-proteinid", "hsa:10458+ece:Z5100")
KEGGAPI.KeggTupleList("https://rest.kegg.jp/conv/ncbi-proteinid/hsa:10458+ece:Z5100", ["Target ID", "Source ID"], Any[["hsa:10458", "ece:Z5100"], ["ncbi-proteinid:NP_059345", "ncbi-proteinid:AAG58814"]])
using KEGGAPI
-KEGGAPI.conv("genes", "ncbi-geneid:948364")
KEGGAPI.KeggTupleList("https://rest.kegg.jp/conv/genes/ncbi-geneid:948364", ["Target ID", "Source ID"], Any[["ncbi-geneid:948364"], ["eco:b3809"]])
Settings
This document was generated with Documenter.jl version 1.4.1 on Friday 3 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");
+first(DataFrame(
+ output.data,
+ output.colnames
+), 20)
Row | 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");
+first(DataFrame(
+ output.data,
+ output.colnames
+), 20)
Row | 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");
+DataFrame(
+ output.data,
+ output.colnames
+)
Row | Target ID | Source ID |
---|---|---|
String | String | |
1 | hsa:10458 | ncbi-proteinid:NP_059345 |
2 | ece:Z5100 | ncbi-proteinid:AAG58814 |
output = KEGGAPI.conv("genes", "ncbi-geneid:948364");
+DataFrame(
+ output.data,
+ output.colnames
+)
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.
Examples
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("hsa:10458+ece:Z5100", "ncbi-proteinid")
-KEGGAPI.conv("ncbi-geneid:948364", "genes")
sourceKEGGAPI.find
— FunctionKEGGAPI.find(database, query) -> KeggTupleList
Find entries in a specific database from the KEGG API.
Examples
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.
Examples
KEGGAPI.get_image("hsa00010")
sourceKEGGAPI.info
— MethodKEGGAPI.info(database) -> String
Get information about a specific database from the KEGG API.
Examples
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("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
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
Examples
KEGGAPI.link("pathway", "hsa")
sourceKEGGAPI.list
— FunctionKEGGAPI.list(database)
Get a list of entries from a specific database from the KEGG API.
Examples
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 Friday 3 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.