Convert KEGG pathway to graph
Details
This function downloads the KGML file for a given KEGG pathway ID, parses it and constructs an igraph object.
Examples
pathway_graph <- kegg_to_graph(
pathway_id = "hsa04110"
)
#> adding rname 'https://rest.kegg.jp/get/hsa04110/kgml'
#>
#> adding rname 'https://rest.kegg.jp/list/compound'
#>
#> adding rname 'https://rest.kegg.jp/list/glycan'
#>
#> adding rname 'https://rest.kegg.jp/list/ko'
#>
#> adding rname 'https://rest.kegg.jp/list/enzyme'
#>
#> adding rname 'https://rest.kegg.jp/list/reaction'
#>