filmov
tv
EdgeR - Differential Gene Expression Analysis using RNA-seq data - R Tutorial
![preview_player](https://i.ytimg.com/vi/SEWEB2o9T1I/maxresdefault.jpg)
Показать описание
#EdgeR #RNAseq #DEG #plot #scatterplot #LogFC #R #Bioinformatics #Bigdata #Datascience #English #USA #England #UK
EdgeR is an R package used to analyze data from high-throughput sequencing assays such as RNA-Seq for differential gene expression.
Following steps should be followed if you want to reproduce the data for better understanding.
Installation
if (!requireNamespace("BiocManager", quietly = TRUE))
BiocManager::install(version = "3.12"
if (!requireNamespace("BiocManager", quietly = TRUE))
BiocManager::install()
BiocManager::install ("edgeR")
library(edgeR)
setwd("D:/Post_PhD_Research/Expression Analysis/EdgeR")
load("mobData.RData")
head(mobData)
mobDataGroups (write angle bracket and “-” here) c("MM", "MM", "WM", "WM", "WW", "WW")
# MM="triple mutatnt shoot grafted onto triple mutant root"
# WM="wild-type shoot grafted onto triple mutant root"
# WW="wild-type shoot grafted onto wild-type root"
data
head(data)
d (write angle bracket and “-” here) DGEList(counts=mobData,group=factor(mobDataGroups))
d
Filtering the data
dim(d)
head(d$counts)
head(cpm(d))
apply(d$counts, 2, sum) # total gene counts per sample
keep (write angle bracket and “-” here) rowSums(cpm(d)(write “greater than” sign here)100) (write “greater than” sign here)= 2
d (write angle bracket and “-” here) d[keep,]
dim(d)
d$samples
Normalizing the data
d (write angle bracket and “-” here) calcNormFactors(d)
d
Data Exploration
Estimating the Dispersion
d1 (write angle bracket and “-” here) estimateCommonDisp(d, verbose=T)
names(d1)
d1 (write angle bracket and “-” here) estimateTagwiseDisp(d1)
names(d1)
plotBCV(d1)
GLM estimates of dispersion
plotBCV(d2)
Differential Expression
et12 (write angle bracket and “-” here) exactTest(d1, pair=c(1,2)) # compare groups 1 and 2
et13 (write angle bracket and “-” here) exactTest(d1, pair=c(1,3)) # compare groups 1 and 3
et23 (write angle bracket and “-” here) exactTest(d1, pair=c(2,3)) # compare groups 2 and 3
topTags(et12, n=10)
summary(de1)
abline(h = c(-2, 2), col = "blue")
EdgeR is an R package used to analyze data from high-throughput sequencing assays such as RNA-Seq for differential gene expression.
Following steps should be followed if you want to reproduce the data for better understanding.
Installation
if (!requireNamespace("BiocManager", quietly = TRUE))
BiocManager::install(version = "3.12"
if (!requireNamespace("BiocManager", quietly = TRUE))
BiocManager::install()
BiocManager::install ("edgeR")
library(edgeR)
setwd("D:/Post_PhD_Research/Expression Analysis/EdgeR")
load("mobData.RData")
head(mobData)
mobDataGroups (write angle bracket and “-” here) c("MM", "MM", "WM", "WM", "WW", "WW")
# MM="triple mutatnt shoot grafted onto triple mutant root"
# WM="wild-type shoot grafted onto triple mutant root"
# WW="wild-type shoot grafted onto wild-type root"
data
head(data)
d (write angle bracket and “-” here) DGEList(counts=mobData,group=factor(mobDataGroups))
d
Filtering the data
dim(d)
head(d$counts)
head(cpm(d))
apply(d$counts, 2, sum) # total gene counts per sample
keep (write angle bracket and “-” here) rowSums(cpm(d)(write “greater than” sign here)100) (write “greater than” sign here)= 2
d (write angle bracket and “-” here) d[keep,]
dim(d)
d$samples
Normalizing the data
d (write angle bracket and “-” here) calcNormFactors(d)
d
Data Exploration
Estimating the Dispersion
d1 (write angle bracket and “-” here) estimateCommonDisp(d, verbose=T)
names(d1)
d1 (write angle bracket and “-” here) estimateTagwiseDisp(d1)
names(d1)
plotBCV(d1)
GLM estimates of dispersion
plotBCV(d2)
Differential Expression
et12 (write angle bracket and “-” here) exactTest(d1, pair=c(1,2)) # compare groups 1 and 2
et13 (write angle bracket and “-” here) exactTest(d1, pair=c(1,3)) # compare groups 1 and 3
et23 (write angle bracket and “-” here) exactTest(d1, pair=c(2,3)) # compare groups 2 and 3
topTags(et12, n=10)
summary(de1)
abline(h = c(-2, 2), col = "blue")
Комментарии