mark.pathway.by.objects {KEGGREST} | R Documentation |
Client-side interface to obtain an url for a KEGG pathway diagram with a given set of genes marked
Description
Given a KEGG pathway id and a set of KEGG gene ids, the functions return the URL of a KEGG pathway diagram with the elements corresponding to the genes marked by red or specified color
Usage
mark.pathway.by.objects(pathway.id, object.id.list)
color.pathway.by.objects(pathway.id, object.id.list,
fg.color.list, bg.color.list)
Arguments
pathway.id |
|
object.id.list |
|
fg.color.list |
|
bg.color.list |
|
Details
This function only returns the URL of the KEGG pathway diagram. Use
the function browseURL
to view the diagram.
These functions are not part of the KEGG REST API; they are provided
because they existed in KEGGSOAP
and an alternative implementation
was possible.
Value
This function returns a character string for the url
Author(s)
Jianhua Zhang
References
https://www.kegg.jp/kegg/docs/keggapi.html
See Also
Examples
url <- mark.pathway.by.objects(
"path:eco00260", c("eco:b0002", "eco:c00263")
)
if(interactive()){
browseURL(url)
}
url <- color.pathway.by.objects(
"path:eco00260", c("eco:b0002", "eco:c00263"),
c("#ff0000", "#00ff00"),
c("#ffff00", "yellow")
)