keggGetImage: Get Images from KEGG

Description Usage Arguments Details Examples

Description

Get Images of Pathways, Compounds, etc, from KEGG

Usage

1
keggGetImage(keywords, path = getwd(), display = FALSE)

Arguments

keywords

string, or character array. Corresponding IDs.

path

string. The path to save images.

dispaly

logical. Display images in R window or not.

Details

Using '+' to add multiple IDs in keywords string.

Images of pathway won't dispaly in R window, causing it's usually too large. They will be saved in path /image by default. Of course, all images from keggGetImage() will be saved.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# retrieves the png image file of a pathway map
keggGetImage('hsa05130')

# retrieves the gif image file of a compound
keggGetImage('C00002')

# retrieves image files of multiple pathway maps or compoumnds.
keggGetImage(c('hsa05130', 'C00002'))
# same as above
keggGetImage('hsa05130+C00002')

VonWebEinstein/keggAPI documentation built on May 9, 2019, 10:02 p.m.