Poll 0.1: What is the first element in your .libPaths() ?
We will use a couple of libraries in this course. We have to make sure these are installed - in a suitable location defined by .libPaths().
These installations can take a while. So it’s best to tackle this first. The following code chunk will checks if a required library is available and will attempt to install it if this is not the case.
# Bioconductor
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if (!require("DESeq2", quietly = TRUE))
BiocManager::install("DESeq2")
if (!require("EnsDb.Hsapiens.v75", quietly = TRUE))
BiocManager::install("EnsDb.Hsapiens.v75")
# CRAN
if (!require("tidyverse", quietly = TRUE))
install.packages("tidyverse")
if (!require("pheatmap", quietly = TRUE))
install.packages("pheatmap")
if (!require("ggrepel", quietly = TRUE))
install.packages("ggrepel")
if (!require("UpSetR", quietly = TRUE))
install.packages("UpSetR")
if (!require("ashr", quietly = TRUE))
install.packages("ashr")
After running the above chunk, make sure the libraries can be loaded:
library("DESeq2")
library("tidyverse")
library("pheatmap")
library("ggrepel")
library("EnsDb.Hsapiens.v75")
library("UpSetR")
library("ashr")
After the course you will be able to
There is lots of useful material out there. This course is heavily influenced by those tutorials:
We will also be using publicly available data, which has been altered for educational purposes (and should thus be treated as such).
The Rstudio GUI.
Poll 0.2: How will you keep track of the code, course material and notes during this course ?
Task: Create a new project and clone the datafiles we will be using from github.
If you are working in workbench, start a new session.
In your session (local or workbench):
Repository URL: https://github.com/maxplanck-ie/Rdeseq2
Project directory name: chose a folder name
Go to https://github.com/maxplanck-ie/Rdeseq2 , click on the green ‘< > Code’ dropdown button and select ‘Download ZIP’. Save the file to an appropriate location and extract its content.
Now open your Rstudio instances, and set the working directory to the folder you have just extracted.
If it worked, you should have a new session, and in your console you will retrieve your project directory:
getwd()
and you should be able to see the data folder:
list.files(‘data’)
which should contain these folders:
How it should look like: