There are two waya in which you can use NetPhorce Shiny application.
To run the application locally, you are required to install R and R Studio. The applications is built under the following versions:
## Check Current R Version
R.version
## CRAN Repo
.cran_packages <- c("shiny", "data.table", "tidyverse", "shinyjs", "plotly",
"purrr", "scales", "dynamicTreeCut", "ggpubr", "ggfortify",
"dplyr", "ellipse", "kableExtra", "sjmisc", "igraph",
"assertthat", "randomcolorR", "htmlwidgets", "shinywidgets", "visNetwork",
"rintrojs", "shinydashboard", "colorspace")
.inst <- .cran_packages %in% installed.packages()
if (any(!.inst)){
install.packages(.cran_packages[!.inst],repos = "http://cran.rstudio.com/")
}
## Bioconductor Repo
.bioc_packages <- c("SummarizedExperiment", "vsn", "qvalue", "shinythemes")
.inst <- .bioc_packages %in% installed.packages()
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if(any(!.inst)){
BiocManager::install(.bioc_packages[!.inst])
}
## GitHub Repo
.git_packages <- c("particlesjs")
.git_packages_path <- c("dreamRs/particlesjs")
.inst <- .git_packages %in% installed.packages()
if (!requireNamespace("remotes", quietly = TRUE))
install.packages("remotes")
if(any(!.inst)){
remotes::install_github(.git_packages_path[!.inst])
}
# Load packages
sapply(.cran_packages, require, character.only = TRUE)
sapply(.bioc_packages, require, character.only = TRUE)
sapply(.git_packages, require, character.only = TRUE)
Github repository for the particlesjs is optional for running the shiny application. If you do not want to install this package, please comment out line 68 in ui.R by adding ‘#’ in front of the line.
There are two ways to download and run NetPhorce Shiny application:
shiny::runGitHub("NetPhorceShiny", "ksong4")