tfcb_2021

Lecture 17: Introduction to bulk RNA-seq analysis

We will apply all our learnings to undertake analysis of RNA-seq data. In this lecture, we will use R/Bioconductor to perform bulk RNA-seq analysis and in the next two lectures we will Python to perform single-cell RNA-seq analysis.

This lecture will begin with a introduction to RNA-seq and the steps in RNA-seq analysis. We will then undertake a hands-on excercise using R and Bioconductor tools to analyze RNA-seq data generated using Glioblastoma Multiforme patient samples.

Learning Objectives

Class materials

Class preparation

Environment set up

We will create a new conda environment for the RNA-seq lectures

# Create new conda environment
conda create -n tfcb2021_rna r r-tidyverse r-irkernel bioconductor-plyranges bioconductor-genomicfeatures bioconductor-rtracklayer bioconductor-ggbio bioconductor-deseq2 bioconductor-enhancedvolcano   bioconductor-goseq r-pheatmap r-rcolorbrewer  bioconductor-org.hs.eg.db -c conda-forge -c bioconda

# Activate conda environment
conda activate tfcb2021_rna

Follow the instructions here to setup the new conda environment in VSCode. Repeated below for convenience.

  1. Open the Terminal window in VSCode (Terminal > New Terminal) and activate the tfcb2021_rna environment you previously created with conda activate tfcb2021_rna.
  2. Type which R into Terminal to identify where the R interpreter is located in the environment (ex. /usr/local/anaconda3/envs/tfcb2021_rna/bin/R).
  3. Now switch back to the base environment with conda activate base.
  4. Type the location identified in Step 2 (ex. /usr/local/anaconda3/envs/tfcb2021_rna/bin/R). This should start the R interpreter.
  5. In the R interpreter, type IRkernel::installspec() after the >. This should install kernelspec in the right location.

Data files