Skip to content

Instantly share code, notes, and snippets.

@scientificprotocols
Last active August 29, 2015 14:21
Show Gist options
  • Save scientificprotocols/7099b3af35d40adf0459 to your computer and use it in GitHub Desktop.
Save scientificprotocols/7099b3af35d40adf0459 to your computer and use it in GitHub Desktop.
A Bioconductor R pipeline for analysis of RNA-seq data
Authors: Wei Shi

Abstract

We describe a powerful and easy-to-use RNA-seq analysis pipeline that can be used for complete analysis of RNA-seq data. It starts with raw read output of an sequencing instrument and reports lists of genes that are found to be differentially expressed in the comparison of different cell types. It consists of several analysis modules including Subread read alignment [1], featureCounts read summarization [2], voom normalization [3] and statistical testing of differential expression using empirical Bayes moderated t-statistic [4]. The entire pipeline mainly makes use of two R packages, Rsubread and limma, both available from the popular Bioconductor project.

Procedure

  1. Check the sequencing quality of RNA-seq data using ‘qualityScores’ function in Rsubread package.
  • Use ‘align’ function in Rsubread to align the reads.
  • Use ‘featureCounts’ function in Rsubread to assign reads to genes.
  • Use ‘voom’ function in limma package to normalize read counts and to estimate the mean-variance relationship.
  • Use ‘lmFit’ function in limma to fit linear models to genes.
  • Use ‘treat’ (or ‘eBayes’) function in limma to compute moderated t statistic for each gene for each comparison.
  • Call differentially expressed genes using the ‘decideTests’ function in limma.

The Rsubread package can be downloaded from http://bioconductor.org/packages/release/bioc/html/Rsubread.html. The limma package can be downloaded from http://bioconductor.org/packages/release/bioc/html/limma.html

Timing

The whole pipeline will take less than 8 hours to complete the analysis of an RNA-seq dataset including 100 million reads in total, on a computer with >=4 CPUs and >=8GB of memory.

Anticipated Results

Lists of genes whose expression levels are found to be statistically significantly changed in different conditions (eg. different cell types or different treatments).

References

  1. Liao Y, Smyth GK and Shi W. The Subread aligner: fast, accurate and scalable read mapping by seed-and-vote. Nucleic Acids Research, 41(10):e108, 2013
  • Liao Y, Smyth GK and Shi W. featureCounts: an efficient general purpose program for assigning sequence reads to genomic features. Bioinformatics, 30(7):923-30, 2014
  • Law CW, Chen Y, Shi W and Smyth GK. Voom: precision weights unlock linear model analysis tools for RNA-seq read counts. Genome Biology, 15(2):R29, 2014
  • Smyth GK. Linear models and empirical Bayes methods for assessing differential expression in microarray experiments. Statistical Applications in Genetics and Molecular Biology, Volume 3, Article 3, 2004

Associated Publications

Transcriptional profiling of mouse B cell terminal differentiation defines a signature for antibody-secreting plasma cells, Wei Shi, Yang Liao, Simon N Willis, Nadine Taubenheim, Michael Inouye, David M Tarlinton, Gordon K Smyth, Philip D Hodgkin, Stephen L Nutt, and Lynn M Corcoran, Nature Immunology doi:10.1038/ni.3154

Author information

Wei Shi, Gordon Smyth's Lab, Walter and Eliza Hall Institute, Melbourne

Correspondence to: Wei Shi ([email protected])

Source: Protocol Exchange (2015) doi:10.1038/protex.2015.039. Originally published online 18 May 2015.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment