| mark.pathway.by.objects {KEGGREST} | R Documentation |
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
mark.pathway.by.objects(pathway.id, object.id.list)
color.pathway.by.objects(pathway.id, object.id.list,
fg.color.list, bg.color.list)
pathway.id |
|
object.id.list |
|
fg.color.list |
|
bg.color.list |
|
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.
This function returns a character string for the url
Jianhua Zhang
http://www.kegg.jp/kegg/docs/keggapi.html
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"))