### LACEinterface.R
###
### The LACE GUI to manage longitudinal NGS datasets.
###
### See the file LICENSE in the main folder for licensing
### information.
#' @rawNamespace import(biomaRt, except = c("show","select"))
#'
#' @import foreach
#' @import doParallel
#' @import sortable
#' @rawNamespace import(shiny, except = c("runExample", "dataTableOutput", "renderDataTable","validate"))
#' @import shinythemes
#' @import dplyr
#' @import tidyr
#' @import readr
#' @import shinyFiles
#' @import shinyjs
#' @import jsonlite
#' @import configr
#' @import DT
#' @import stringr
#' @import tools
#' @import fs
#' @rawNamespace import(data.table, except = c("first","last", "between"))
#' @import htmltools
#' @import shinyBS
#' @import bsplus
#' @import shinydashboard
#' @import TRONCO
#' @import callr
## Declare name
utils::globalVariables(".my_actual_wd",
package = "LACE",
add = F)
#' @md
#' @title LACE Processing and Analysis Interface
#' @description `LACE2` displays a Shiny user interface to
#' handle the VCF and BAM files processing that is needed to
#' construct the input for the LACE inference algorithms.
#' The function generates also the maximum likelihood longitudinal
#' clonal tree, and shows the output for further explorations of
#' the results.
#'
#' @section Installation:
#' The package is available on GitHub and Bioconductor.
#' LACE 2.0 requires R > 4.1.0 and Bioconductor.
#'
#' To install directly from github run:
#'
#' ```
#' remotes::install_github("https://github.com/BIMIB-DISCo/LACE",
#' dependencies = TRUE)
#' ```
#'
#' @section Dependencies:
#' LACE 2.0 uses *Annovar* and *Samtools suite* as back-ends for variant calling
#' annotation and depth computation, respectively.
#'
#' *Annovar* is a variant calling software written in *Perl* freely available upon
#' registration to their website at
#' [https://annovar.openbioinformatics.org/en/latest/](https://annovar.openbioinformatics.org/en/latest/).
#'
#' *Perl* can be found and installed at [https://www.perl.org/](https://www.perl.org/).
#'
#' *Samtools suite* is a set of tools to handle SAM/BAM/BED file format. It is
#' freely available at [http://www.htslib.org/](http://www.htslib.org/). To install *Samtools* follow the
#' instructions in their website.
#'
#'
#' @usage
#' LACE2()
#'
#'
#' @note
#' The function `LACE` is still available for retrocompatibility.
#'
#' @export
LACE2 <- function() {
appDir <- system.file("shinyapp", package = "LACE")
if (appDir == "") {
stop("LACE: Could not find package directory.",
"Try re-installing `LACE`.",
call. = FALSE)
}
## Did you remember to set: options(browser = 'firefox') ?
.GlobalEnv$.my_actual_wd <- getwd()
.GlobalEnv$.my_pkg_dir <- appDir
print(.GlobalEnv$.my_actual_wd)
on.exit({
setwd(.my_actual_wd)
rm(list = c(".my_actual_wd"), pos = .GlobalEnv)
})
shiny::runApp(file.path(appDir, 'app.R'), display.mode = "normal")
}
### end of file -- LACEinterface.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.