R/import_kegg.R

Defines functions import_kegg

Documented in import_kegg

#' KEGG to Cytoscape
#'
#' Import a KEGG pathway to Cytoscape, Cytoscape needs to be open for this function to work
#'
#' @param x KEGG pathway ID
#'
#' @return import pathway x to Cytoscape as a network
#' @export
#'
#' @examples
#' x <- 'ko00010'
#' import_kegg(x)
import_kegg <- function(x)
{
  browseURL(paste('http://localhost:1234/keggscape/v1', x, sep="/", collapse=NULL), browser = getOption("browser"),
            encodeIfNeeded = FALSE)
}
delfarahalireza/calcyt documentation built on April 28, 2022, 12:05 a.m.