Coder Social home page Coder Social logo

tcc-gui-docker_apple's Introduction

๐Ÿ“Š TCC-GUI: Graphical User Interface for TCC package

About TCC-GUI

This repository only aims to make TCC-GUI dockered. This is apple silicon edition. Find the other repository for intel chip (https://github.com/geedrn/TCC-GUI-Docker). Users are responsible for checking the original repository, all the citations and code of conducts. https://github.com/swsoyee/TCC-GUI

How I made a dockerfile

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 20XX, Apple silicon.

How to use the dockered TCC-GUI

Turn on your Docker Desktop app!

HARD VERSION

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

EASY VERSION

The image itself is publicly available too (https://hub.docker.com/r/sayaka0710/tcc). If you trust me, use this version.

docker run \
  --rm -e DISABLE_AUTH=true \
  -p 8787:8787 \
  sayaka0710/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.

Go to Rstudio server

Open localhost:8787 by Google Chrome or Safari.

Execute TCC-GUI

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!

After finishing the analysis, Control+C wraps up everything. Confirm your docker container is shut down on app.

How to finish the analysis

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.

tcc-gui-docker_apple's People

Contributors

geedrn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.