kegg_picture: Download a pathway diagram as a picture

kegg_pictureR Documentation

Download a pathway diagram as a picture

Description

Downloads a KEGG Pathway diagram as a PNG image.

Usage

kegg_picture(pathway_id, path = NULL)

Arguments

pathway_id

Character: a KEGG Pathway identifier, e.g. "hsa04710". For a complete list of IDs see kegg_pathway_list.

path

Character: save the image to this path. If NULL, the image will be saved in the current directory under the name <pathway_id>.png.

Value

Invisibly returns the path to the downloaded file.

See Also

kegg_pathway_list

  • kegg_pathway_list

  • kegg_open

  • kegg_info

Examples

kegg_picture('hsa04710')
kegg_picture('hsa04710', path = 'foo/bar')
kegg_picture('hsa04710', path = 'foo/bar/circadian.png')


saezlab/OmnipathR documentation built on May 3, 2024, 5:32 a.m.