How to use NetPhorce Shiny?

There are two waya in which you can use NetPhorce Shiny application.

  • Option 1: Access the Shiny application through a website portal"
  • Option 2: Download the NetPhorce Shiny application from GitHub and run it locally

Download the NetPhorce Shiny application from GitHub

Step 1. Install R and R Studio

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

Step 2. Install the Required Packages

## 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.

Step 3. Start the application

There are two ways to download and run NetPhorce Shiny application:

Step 3.1 Temporary Download and Run

shiny::runGitHub("NetPhorceShiny", "ksong4")

Step 3.2 Manual Download and Run

library(shiny)
## Windows
runApp("~/Download/NetPhorceShiny-master", launch.browser = TRUE)