Homework: create new docker image and R exercise - bcb420-2024/Dien_Nguyen GitHub Wiki
Estimated time: 1 hour
Actual time: 45 min
- To create docker file, on VSCode, create a new file called Dockerfile
- To include the base image, place
FROM risserlin/bcb420-base-image:winter2024on the first line - To build the docker image from the docker file, run
docker build -t dien-image .in the same directory. Here,dien-imageis the name of the docker image. - Run
docker imagesto 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-imageon Powershell
-
applyfunction 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))