Request compound name from KEGG Database
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.
• 1,727 views
•
link
1 answer
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
• 0 views
•
link
Log in to answer this question.