Request compound name from KEGG Database
1
0
Entering edit mode
4.9 years ago
dnnxl15 • 0

Dear all, i would like to extract the name compound related to the KEGG Database entry, for example if i have C00880, i will have as a output the name "D-Galactonic acid" or "D-Galactonate". Is there any library in python that can make this kind of request of something ?

Thanks.

pathway kegg compound • 1.2k views
ADD COMMENT
1
Entering edit mode
4.9 years ago
AK ★ 2.2k

Hi dnnxl15,

You can use the KEGG API to query for it:

$ curl -s "http://rest.kegg.jp/find/cpd/C00880"
cpd:C00880  D-Galactonate; D-Galactonic acid

Or first get the full list of compound names and query from it if you have multiple compound IDs:

$ wget -nc -O cpd.txt "http://rest.kegg.jp/list/cpd"
$ grep 'C00880\|C22044' cpd.txt
cpd:C00880  D-Galactonate; D-Galactonic acid
cpd:C22044  alpha-Selinene
ADD COMMENT

Login before adding your answer.

Traffic: 2897 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6