Question: Convert KEGG KGML file to JSON format
0
gravatar for mia
22 months ago by
mia70
mia70 wrote:

Hi,

I am wondering is anyone knows of a tool that will convert KEGG KGML pathway file to JSON format? Any help would be greatly appreciated.

Thanks

kegg file conversion kgml • 1.0k views
ADD COMMENTlink modified 22 months ago • written 22 months ago by mia70
1
gravatar for Pierre Lindenbaum
22 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum122k wrote:

1) use togows

http://togows.org/entry/kegg-pathway/eco00020.json

2 ) use a XSLT transformation.

I'm lazy, I don't have processed all the element/nodes. Futhermore, A text should be escaped if if contains a double quote. .e.g: https://stackoverflow.com/questions/14217025

ADD COMMENTlink modified 22 months ago • written 22 months ago by Pierre Lindenbaum122k

Pierre, I really appreciate your help. Apologies, I should have been more specific. I would like to convert a KGML file, example provided in the link (https://drive.google.com/file/d/0B4c_nAf77KoUZVhQcEFBdUNDN1E/view?usp=sharing) to JSON format similar to this file (https://drive.google.com/file/d/0B4c_nAf77KoUdk5yeHRWcnItU2M/view?usp=sharing). Essentially, I would like to put the converted JSON file into Escher.

ADD REPLYlink written 22 months ago by mia70

so the solution XML->JSON is xslt.

ADD REPLYlink written 22 months ago by Pierre Lindenbaum122k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1825 users visited in the last hour