shinyCircos: an R/Shiny application for interactive creation of Circos plot
1. R Development Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna (2016)
2. RStudio and Inc. shiny: Web Application Framework for R. R package version 1.0.0 (2016)
3. Gu, Z. circlize: Circular Visualization. R package version 0.4.1 (2017)
4. Neuwirth, E. RColorBrewer: ColorBrewer palettes. R package version 1.1-2 (2014)
5. Lawrence, M. GenomicRanges: Representation and manipulation of genomic intervals and variables defined along a genome. R package version 1.24.3 (2016)
6. Dowle, M. data.table: Extension of Data.frame. R package version 1.9.6 (2015)
7. Burow, C. RLumShiny: "Shiny" Applications for the R Package "Luminescence". R package version 0.1.1 (2016)
8. R Core Team and contributors worldwide. grDevices: Graphics devices and support for base and grid graphics. R package version 3.3.3 (2016)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is the repository for the Shiny application presented in “shinyCircos: an R/Shiny application for interactive creation of Circos plot” (Yu et al. Bioinformatics. 2017).
shinyCircos is deployed at https://yimingyu.shinyapps.io/shinycircos/, http://shinycircos.ncpgr.cn/ and http://150.109.59.144:3838/shinyCircos/ for online use.
shinyCircos is idle until you activate it by accessing the URLs.
So it may take some time when you access this URL for the first time.
Once it was activated, shinyCircos could be used smoothly and easily.
User can choose to run shinyCircos installed locally for a more preferable experience.
Step 1: Install R and RStudio
Before running the app you will need to have R and RStudio installed (tested with R 3.3.3 and RStudio 1.0.143).
Please check CRAN (https://cran.r-project.org/) for the installation of R.
Please check https://www.rstudio.com/ for the installation of RStudio.
Step 2: Install the R Shiny package and other packages required by shinyCircos
Start an R session using RStudio and run these lines:
install.packages("shiny")
install.packages("circlize")
install.packages("RColorBrewer")
install.packages("data.table")
install.packages("RLumShiny")
# try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("GenomicRanges")
Step 3: Start the app
Start an R session using RStudio and run these lines:
shiny::runGitHub("shinyCircos", "venyao")
This command will download the code of shinyCircos from GitHub to a temporary directory of your computer and then launch the shinyCircos app in the web browser. Once the web browser was closed, the downloaded code of shinyCircos would be deleted from your computer. Next time when you run this command in RStudio, it will download the source code of shinyCircos from GitHub to a temporary directory again. This process is frustrating since it takes some time to download the code of shinyCircos from GitHub.
Users are suggested to download the source code of shinyCircos from GitHub to a fixed directory of your computer, such as ‘E:\apps’ on Windows. Following the procedure illustrated in the following figure, a zip file named ‘shinyCircos-master.zip’ would be downloaded to the disk of your computer. Move this file to ‘E:\apps’ and unzip this file. Then a directory named ‘shinyCircos-master’ would be generated in ‘E:\apps’. The scripts ‘server.R’ and ‘ui.R’ could be found in ‘E:\apps\shinyCircos-master’.
Then you can start the shinyCircos app by running these lines in RStudio.
library(shiny)
runApp("E:/apps/shinyCircos-master", launch.browser = TRUE)
Step 1: Install R
Please check CRAN (https://cran.r-project.org/) for the installation of R.
Step 2: Install the R Shiny package and other packages required by shinyCircos
Start an R session and run these lines in R:
install.packages("shiny")
install.packages("circlize")
install.packages("RColorBrewer")
install.packages("data.table")
install.packages("RLumShiny")
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("GenomicRanges")
For more information, please check the following pages:
https://cran.r-project.org/web/packages/shiny/index.html
https://github.com/rstudio/shiny
https://shiny.rstudio.com/
Step 3: Install Shiny-Server
Please check the following pages for the installation of shiny-server.
https://www.rstudio.com/products/shiny/download-server/
https://github.com/rstudio/shiny-server/wiki/Building-Shiny-Server-from-Source
Step 4: Upload files of shinyCircos
Put the directory containing the code and data of shinyCircos to /srv/shiny-server.
Step 5: Configure shiny server (/etc/shiny-server/shiny-server.conf)
# Define the user to spawn R Shiny processes
run_as shiny;
# Define a top-level server which will listen on a port
server {
# Use port 3838
listen 3838;
# Define the location available at the base URL
location /shinycircos {
# Directory containing the code and data of shinyCircos
app_dir /srv/shiny-server/shinyCircos;
# Directory to store the log files
log_dir /var/log/shiny-server;
}
}
Step 6: Change the owner of the shinyCircos directory
$ chown -R shiny /srv/shiny-server/shinyCircos
Step 7: Start Shiny-Server
$ start shiny-server
Now, the shinyCircos app is available at http://IPAddressOfTheServer:3838/shinycircos/.