get.complete.list.pathways <- function(organism_code){
# print("getListAllHumanMaps")
url <- get.url.list.pathway.by.organism(organism_code);
file <- downloadFileByUrl(url);
file <- gsub("path:","",file);
file <- gsub(":","",file);
file <- strsplit(file,"[\\\\]|[^[:print:]]",fixed=FALSE);
file <- as.vector(unlist(file));
allMapsIds <- file[grep(organism_code, file)];
return <- allMapsIds;
}
getHumanGeneByMap <- function(pathwayId){
# print("getHumanGeneByMap")
url <- getHumanGeneByMapUrl(pathwayId);
file <- downloadFileByUrl(url);
}
getMetaboliteByMap <- function(pathwayId){
# print("getMetaboliteByMap")
url <- getMetaboliteByMapUrl(pathwayId);
file <- downloadFileByUrl(url);
}
getHumanGeneByMapUrl <- function(pathwayId){
# print("getHumanGeneByMapUrl")
url <- paste("http://rest.kegg.jp/link/genes/", pathwayId, sep = "")
return <- url;
}
getMetaboliteByMapUrl <- function(pathwayId){
# print("getMetaboliteByMapUrl")
pathwayId <- gsub("hsa","map",pathwayId);
url <- paste("http://rest.kegg.jp/link/cpd/",pathwayId,sep = "")
return <- url;
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.