R/methods-ShinyApp.R

Defines functions browseVariants

Documented in browseVariants

browseVariants <- function(vfResultsObj) {
  appDir <- system.file("shinyApp", package="VariantFiltering")
  if (appDir == "")
    stop("The VariantFiltering Shiny app cannot be found within the package.")

  argumentMissing <- TRUE
  if (!missing(vfResultsObj)) {
    if (class(vfResultsObj) != "VariantFilteringResults")
      stop("The input argument to 'browseVariants()' must be a 'VariantFilteringResults' object.")
    argumentMissing <- FALSE
  }

  runApp(appDir)
}
rcastelo/VariantFiltering documentation built on Oct. 23, 2024, 5:23 p.m.