Install R and the packages you need
Try to do this before the course starts and you will be able to use the supervision time more efficiently!
1. Install R
Install a recent R (4.3 or newer) from CRAN.
2. Install an editor
We recommend RStudio Desktop.
3. Install the packages used in the course
install.packages(c(
"tidyverse", # data wrangling and plotting
"Matrix", # dense and sparse matrices
"jpeg" # read images (Transforming images with matrices)
# ... add packages here as the material is written
))Bioconductor packages (for the single-cell and omics applications) install via BiocManager:
install.packages("BiocManager")
BiocManager::install(c(
"limma", # linear models for log-scale omics data (Many genes at once: limma)
"DESeq2", # RNA-seq counts with a count model (Bulk RNA-seq with DESeq2)
"apeglm", # fold-change shrinkage for lfcShrink (Bulk RNA-seq with DESeq2)
"airway" # example RNA-seq dataset (Bulk RNA-seq with DESeq2)
# ... add Bioconductor packages here as the material is written
))If this stops with “Bioconductor version … requires R version …”, your BiocManager is set to an older Bioconductor release. Run BiocManager::install(version = "3.22") (the release that matches R 4.5) and then repeat the command above.
4. Check it works
library(tidyverse)
A <- matrix(c(2, 1, 1, 3), nrow = 2)
b <- c(1, 2)
solve(A, b) # should print the solution to Ax = bIf that prints two numbers without error, you are ready for the course!