[Biopython-dev] KEGG API Wrapper

Kevin Wu kjwu at ucsd.edu
Wed Oct 10 21:27:19 UTC 2012


Hi,

I've written a simple wrapper on top of KEGG's new REST API (
http://www.kegg.jp/kegg/docs/keggapi.html). The main functionality of this
module is that can detect some invalid queries based on kegg's defined
rules. I've implemented each of the examples given on the api docs as tests
as well. Here's a quick example of its usage.

The api call to http://rest.kegg.jp/get/hsa:10458+ece:Z5100/aaseq can be
done using the wrapper as:
KEGG.query("get", ["hsa:10458", "ece:Z5100"], "aaseq")

Querying the api works well with the current parsers written for KEGG
formats. Let me know if there are issues or if it's useful enough to be
merged into Biopython!

https://github.com/kevinwuhoo/biopython

Thanks!
Kevin



More information about the Biopython-dev mailing list