1
|
1
|
|
2 # notes on KEGG behaviour
|
|
3
|
|
4 Tested with Release 78.0+/05-05, May 16 (see http://rest.kegg.jp/info/genes)
|
|
5
|
|
6 *Recommendation 1 - Do not combine AND with OR queries*
|
|
7 multiple complex queries are not recommended.
|
|
8
|
|
9 *OR's on certain db's e.g. glycan, enzyme do not always return correctly*
|
|
10
|
|
11 ## Shiga toxin behaviour test
|
|
12 Using the shiga toxin example from http://www.genome.jp/kegg/rest/keggapi.html
|
|
13 /find/genes/shiga+toxin for keywords "shiga" and "toxin"
|
|
14 /find/genes/"shiga toxin" for keywords "shiga toxin"
|
|
15
|
|
16 results in test-data
|
|
17 - test-data/shiga-toxin-example-AND
|
|
18 - test-data/shiga-toxin-example-AND-broken
|
|
19 - test-data/shiga-toxin-example-OR
|
|
20 - test-data/shiga-toxin-example-OR-broken
|
|
21
|
|
22
|
|
23 ### AND example
|
|
24 /find/genes/shiga+toxin for keywords "shiga" and "toxin"
|
|
25 http://rest.kegg.jp/find/genes/shiga+toxin
|
|
26
|
|
27 ### OR example
|
|
28 /find/genes/"shiga toxin" for keywords "shiga toxin"
|
|
29 http://rest.kegg.jp/find/genes/"shiga%20toxin"
|
|
30
|
|
31 ### BROKEN AND
|
|
32 http://rest.kegg.jp/find/genes/"shiga+toxin"
|
|
33 If query is in put in quotes.
|
|
34 this result is the same as OR.
|
|
35
|
|
36 ### BROKEN OR
|
|
37 http://rest.kegg.jp/find/genes/shiga%20toxin
|
|
38 If query is not placed in quotations.
|
|
39 this result is the same as AND.
|
|
40
|
|
41 ## Enzyme tests
|
|
42
|
|
43 http://rest.kegg.jp/find/enzyme/deoxy+1.1.1 AND works
|
|
44 http://rest.kegg.jp/find/enzyme/"deoxy%201.1.1" OR does not work
|
|
45 http://rest.kegg.jp/find/enzyme/"deoxy 1.1.1" OR does not work
|
|
46
|
|
47 0
|
|
48 http://rest.kegg.jp/find/enzyme/ec:2.4.99.1+ec:2.4.99.6 AND works but return nothing as no overlap
|
|
49 http://rest.kegg.jp/find/enzyme/"ec:2.4.99.1 ec:2.4.99.6" OR doesn't work
|
|
50 http://rest.kegg.jp/find/enzyme/ec:2.4.99. works
|
|
51
|