TeachingMaterial
TeachingMaterial copied to clipboard
RNA-seq data analysis practical
RNA-seq data analysis practical
This tutorial will illustrate how to use standalone tools, together with R and Bioconductor for the analysis of RNA-seq data. Keep in mind that this is a rapidly evolving field and that this document is not intended as a review of the many tools available to perform each step; instead, we will cover one of the many existing workflows to analyse this type of data.
We will be working with a subset of a publicly available dataset from Drosophila melanogaster, which is available both in the Short Read archive (SRP001537 - raw data) and in Bioconductor (pasilla package - processed data). For more information about this dataset please refer to the original publication (Brooks et al. 2010).
The tools and R packages that we will be using during the practical are listed below (see Software requirements) and the necessary data files can be found here. After dowloading and uncompressing the tar.gz file, you should have the following directory structure in your computer:
RNAseq
|-- reference # reference info (e.g. genome sequence and annotation)
`-- data
|-- raw # raw data: fastq files
|-- mapped # mapped data: BAM files
`-- demultiplexing # extra fastq files for the demultiplexing section
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. This means that you are able to copy, share and modify the work, as long as the result is distributed under the same license.
Table of contents
- Dealing with raw data
- The FASTQ format
- Quality assessment (QA)
- Filtering FASTQ files
- De-multiplexing samples
- Aligning reads to the genome
- Dealing with aligned data
- The SAM/BAM format
- Visualising aligned reads
- Filtering BAM files
- Gene-centric analyses:
- Counting reads overlapping annotated genes
- With htseq-count
- With R
- Alternative approaches
- Normalising counts
- With RPKMs
- With DESeq2
- Differential gene expression
- Counting reads overlapping annotated genes
- Exon-centric analyses:
- Differential exon usage
- Transcript-centric analyses:
- Identification, annotation and visualisation of splicing switch events
Software requirements
Note: depending on the topics covered in the course some of these tools might not be used.
-
Standalone tools:
-
Bioconductor packages:
- GenomicRanges
- GenomicAlignments
- Rsamtools
- biomaRt
- pasilla
- DESeq2
- DEXSeq (only for some dependencies)
Other resources
Course data
Getting started in R and UNIX
- R reference card
- Unix comand line cheat sheet
- R and Bioconductor tutorial by Thomas Girke
- Do not forget to check the documentation for the packages used in the practical!
More on RNA-seq and NGS
- Introduction to my thesis
- Online training resources at the EBI website
- Bioinformatic methods I - Coursera
- Bioinformatic methods II - Coursera
- Data analysis for genomics
- Courses from the Bioconductor website
Aknowledgments
This tutorial has been inspired on material developed by Ângela Gonçalves, Nicolas Delhomme, Simon Anders and Martin Morgan, who I would like to thank and acknowledge. Special thanks must go to Ângela Gonçalves and Mitra Barzine, with whom I have been teaching, and to Gabriella Rustici, for always finding a way to organise a new course.