Perform DE analysis

We will now perform differential gene expression analysis using R.

2KB
Open
R script (run_edgeR.R)

Download the above R script, save in the LSLNGS2015 folder, unzip and run

cd ~/LSLNGS2015

Rscript --vanilla run_edgeR.R

Output shown in the terminal

Loading required package: limma
Loading required package: methods
null device
          1
null device
          1
null device
          1

View tabular results

The R script output and save the results of the analysis into 2 files: DE_analysis.gene.txt and DE_analysis.transcript.txt.

head DE_analysis.gene.txt

head DE_analysis.transcript.txt

Download PDFs and view plots

Multidimensional scaling (MDS) plot

MDS plot shows clear separation of the GM12878 versus K562 samples.

MDS plot

Mean-Difference (MD) Plot per sample

The plotMD() from limma generate mean difference plot displaying the log fold changes and average expression values for each gene (or M versus A plot or MA plot).

Gene-level plots

Gene-level MD plot

Transcript-level plots

Transcript-level MD plot

Mean-Difference (MD) Plot, between 2 cell lines

The differentially expressed genes (adjusted P = 0.05) are highlighted in red.

Smear Plot

Last updated

Was this helpful?