R/ca43k.R

Defines functions ca43k

Documented in ca43k

#' app to survey 43000 cancer transcriptomes
#' @return a SummarizedExperiment
#' @note Copies source code and metadata to a temporary folder
#' and executes shiny::runApp there; sets working diretory to folder where
#' ca43k was called
#' when app is exited.  Also will return either NULL or a
#' SummarizedExperiment at conclusion.
#' @examples
#' ca43k
#' @export
ca43k = function() {
 od = getwd()
 on.exit(setwd(od))
 uif = system.file("ca43k/ui.R", package="HumanTranscriptomeCompendium")
 servf = system.file("ca43k/server.R", package="HumanTranscriptomeCompendium")
 zipf = system.file("ca43k/ca1009.zip", package="HumanTranscriptomeCompendium")
 td = tempdir()
 setwd(td)
 file.copy(uif, ".", overwrite=TRUE)
 file.copy(servf, ".", overwrite=TRUE)
 file.copy(zipf, ".", overwrite=TRUE)
 shiny::runApp()
}

Try the HumanTranscriptomeCompendium package in your browser

Any scripts or data that you put into this service are public.

HumanTranscriptomeCompendium documentation built on Nov. 8, 2020, 8:15 p.m.