Homework: create new docker image and R exercise - bcb420-2024/Dien_Nguyen GitHub Wiki

Estimated time: 1 hour

Actual time: 45 min

Creating the docker image

  • To create docker file, on VSCode, create a new file called Dockerfile
  • To include the base image, place FROM risserlin/bcb420-base-image:winter2024 on the first line
  • To build the docker image from the docker file, run docker build -t dien-image . in the same directory. Here, dien-image is the name of the docker image.
  • Run docker images to check that it has built successfully.
  • To create the container, run docker run -e PASSWORD=changeit -v ${PWD}:/home/rstudio/projects -p 8787:8787 dien-image on Powershell

Calculate log fold change in RStudio

  • apply function can be used to apply a function to each row of a matrix or dataframe
  • Get log fold change by log2(mean(cond) / mean(ctrl))
⚠️ **GitHub.com Fallback** ⚠️