Browse code

use POST to fetch color maps

jvolkening authored on 23/11/2020 05:35:37
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 
2 2
 importFrom(utils, download.file, head)
3
-importFrom(httr, GET, http_status, content, stop_for_status)
3
+importFrom(httr, GET, POST, http_status, content, stop_for_status)
4 4
 importFrom(png, readPNG, writePNG)
5 5
 importFrom(Biostrings, readAAStringSet, readDNAStringSet,
6 6
     DNAStringSet, AAStringSet)
Browse code

keggConv supports more than 100 identifiers

- iterate when more than 100 ids provided
- seems to be a (empirically determined) limit on KEGG's part
- closes #1

Martin Morgan authored on 10/02/2018 12:13:28
Showing 1 changed files
... ...
@@ -1,4 +1,5 @@
1 1
 
2
+importFrom(utils, download.file, head)
2 3
 importFrom(httr, GET, http_status, content, stop_for_status)
3 4
 importFrom(png, readPNG, writePNG)
4 5
 importFrom(Biostrings, readAAStringSet, readDNAStringSet,
Browse code

Fix issue reported by Martin: use httr::stop_for_status(response) instead of parsing response, which may change over time.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@112198 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 06/01/2016 00:13:20
Showing 1 changed files
... ...
@@ -1,8 +1,9 @@
1 1
 
2
-importFrom(httr, GET, http_status, content)
2
+importFrom(httr, GET, http_status, content, stop_for_status)
3 3
 importFrom(png, readPNG, writePNG)
4 4
 importFrom(Biostrings, readAAStringSet, readDNAStringSet,
5 5
     DNAStringSet, AAStringSet)
6
+import(methods)
6 7
 
7 8
 export(
8 9
     keggInfo,
Browse code

improving flat file parsing, step 2

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72494 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 14/01/2013 00:05:28
Showing 1 changed files
... ...
@@ -1,7 +1,8 @@
1 1
 
2 2
 importFrom(httr, GET, http_status, content)
3 3
 importFrom(png, readPNG, writePNG)
4
-importFrom(Biostrings, readAAStringSet)
4
+importFrom(Biostrings, readAAStringSet, readDNAStringSet,
5
+    DNAStringSet, AAStringSet)
5 6
 
6 7
 export(
7 8
     keggInfo,
Browse code

keggGet with aaseq or ntseq option now returns an AAStringSet object

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72220 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 01/01/2013 19:59:12
Showing 1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 
2 2
 importFrom(httr, GET, http_status, content)
3 3
 importFrom(png, readPNG, writePNG)
4
+importFrom(Biostrings, readAAStringSet)
4 5
 
5 6
 export(
6 7
     keggInfo,
Browse code

Extensive rewrite, deciding to expose all functionality in KEGG REST API, rather than trying to create a drop-in replacement for KEGGSOAP which is not widely used (and much of its functionality did not make the transition to REST). Passes check with --no-tests, because tests have not been rewritten yet. Also still need to add a vignette.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72211 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 01/01/2013 00:44:55
Showing 1 changed files
... ...
@@ -1,39 +1,16 @@
1 1
 
2 2
 importFrom(httr, GET, http_status, content)
3
+importFrom(png, readPNG, writePNG)
4
+
5
+export(
6
+    keggInfo,
7
+    keggList,
8
+    listDatabases,
9
+    keggFind,
10
+    keggGet,
11
+    keggConv,
12
+    keggLink,
13
+    mark.pathway.by.objects,
14
+    color.pathway.by.objects
15
+)
3 16
 
4
-export(color.pathway.by.objects,
5
-       get.best.best.neighbors.by.gene,
6
-       getBestNeighbors,
7
-       get.best.neighbors.by.gene,
8
-       get.compounds.by.pathway,
9
-       get.enzymes.by.pathway,
10
-       get.genes.by.motifs,
11
-       get.genes.by.organism,
12
-       get.genes.by.pathway,
13
-       get.motifs.by.gene,
14
-       get.paralogs.by.gene,
15
-       get.pathways.by.compounds,
16
-       get.pathways.by.enzymes,
17
-       get.pathways.by.genes,
18
-       get.pathways.by.reactions,
19
-       get.reactions.by.pathway,
20
-       list.databases,
21
-       list.organisms,
22
-       list.pathways,
23
-       mark.pathway.by.objects,
24
-       search.compounds.by.name,
25
-       search.glycans.by.name,
26
-       search.compounds.by.composition,
27
-       search.glycans.by.composition,
28
-       search.glycans.by.mass,
29
-       search.compounds.by.mass,
30
-       search.compounds.by.subcomp,
31
-       search.glycans.by.kcam,
32
-       bget,
33
-       bconv,
34
-       get.ko.by.gene,
35
-       get.ko.by.ko.class,
36
-       get.genes.by.ko.class,
37
-       get.genes.by.ko,
38
-       get.kos.by.pathway,
39
-       get.pathways.by.kos)
Browse code

cleanup, add questions for KEGG

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72159 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 23/12/2012 21:52:40
Showing 1 changed files
... ...
@@ -1,8 +1,6 @@
1 1
 
2 2
 importFrom(httr, GET, http_status, content)
3 3
 
4
-importFrom(methods, slot, slotNames)
5
-
6 4
 export(color.pathway.by.objects,
7 5
        get.best.best.neighbors.by.gene,
8 6
        getBestNeighbors,
Browse code

implemented mark.pathway.by.objects()/color.pathway.by.objects(), general cleanup

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72155 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 23/12/2012 20:25:19
Showing 1 changed files
... ...
@@ -1,4 +1,8 @@
1 1
 
2
+importFrom(httr, GET, http_status, content)
3
+
4
+importFrom(methods, slot, slotNames)
5
+
2 6
 export(color.pathway.by.objects,
3 7
        get.best.best.neighbors.by.gene,
4 8
        getBestNeighbors,
Browse code

initial checkin, only one function works (get.genes.by.pathway())

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGREST@72144 bc3139a8-67e5-0310-9ffc-ced21a209358

Dan Tenenbaum authored on 22/12/2012 02:17:15
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+
2
+export(color.pathway.by.objects,
3
+       get.best.best.neighbors.by.gene,
4
+       getBestNeighbors,
5
+       get.best.neighbors.by.gene,
6
+       get.compounds.by.pathway,
7
+       get.enzymes.by.pathway,
8
+       get.genes.by.motifs,
9
+       get.genes.by.organism,
10
+       get.genes.by.pathway,
11
+       get.motifs.by.gene,
12
+       get.paralogs.by.gene,
13
+       get.pathways.by.compounds,
14
+       get.pathways.by.enzymes,
15
+       get.pathways.by.genes,
16
+       get.pathways.by.reactions,
17
+       get.reactions.by.pathway,
18
+       list.databases,
19
+       list.organisms,
20
+       list.pathways,
21
+       mark.pathway.by.objects,
22
+       search.compounds.by.name,
23
+       search.glycans.by.name,
24
+       search.compounds.by.composition,
25
+       search.glycans.by.composition,
26
+       search.glycans.by.mass,
27
+       search.compounds.by.mass,
28
+       search.compounds.by.subcomp,
29
+       search.glycans.by.kcam,
30
+       bget,
31
+       bconv,
32
+       get.ko.by.gene,
33
+       get.ko.by.ko.class,
34
+       get.genes.by.ko.class,
35
+       get.genes.by.ko,
36
+       get.kos.by.pathway,
37
+       get.pathways.by.kos)