This repository only aims to make TCC-GUI dockered. This image works well on MacBook Pro Intel chip. If you are using Apple silicon, go to https://github.com/geedrn/TCC-GUI-Docker_Apple.
Users are responsible for checking the original repository, all the citations and code of conducts. https://github.com/swsoyee/TCC-GUI
I changed the style of installation of required package. Originally TCC-GUI relies on renv::restore(). However, it takes long time to make docker image, I confirmed the required packages like
grep -r "library(" $(pwd)/TCC-GUI_edited/TCC-GUI | cut -d'(' -f2 | cut -d')' -f1 | sort | uniq
plotly
DT
MASS
RColorBrewer
TCC
cluster
data.table
dplyr
heatmaply
knitr
markdown
plotly
rmarkdown
shiny
shinyBS
shinyWidgets
shinycssloaders
shinydashboard
tidyr
utils
I made a description file following these packages and used renv::hydrate() instead. Docker image sustains the versions of R package in itself and the strategy sounds fair to me. TCC is somehow difficult to install so I added a line separately. This docker image was tested on my computer (MBP 2019, Intel core i7). I am considering to test this on MBP 2021 (?), Apple silicon.
Turn on your Docker Desktop app!
You can git clone and run docker build in the directory.
git clone https://github.com/geedrn/TCC-GUI-Docker.git
cd TCC-GUI-Docker
docker build . -t IMAGE_NAME
The image itself is publicly available too (https://hub.docker.com/r/geedrn/tcc). If you trust me, use this version.
docker run \
--rm -e DISABLE_AUTH=true \
-p 8787:8787 \
geedrn/tcc
This automatically finds the image in your local PC. If the docker does not find it, it pulls the image from the hub for your initial run. Once you close the terminal from the red botton, it also shut offs the docker container.
Open localhost:8787 by Google Chrome or Safari.
Copy this magic commnand and run TCC-GUI.
shiny::runApp(appDir = "TCC-GUI")
If you are not familiar with this, you can also find TCC-GUI folder in the bottom right and open it. Then find ui.R file and double click. This process pops up the window on the up left. Find Run App botton and push it!
Close the terminal. Close the Docker hub app. If you are a mac user, you should find a Docker icon at the top of your screen. Click it and push Quit Docker Desktop. Otherwise Docker eats at least 4GB memory all the time.