R 差异分析
- 格式:pdf
- 大小:1.83 MB
- 文档页数:64
使用DESeq函数进行分析
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
输出标准化readcount
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
数据导出
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析流程
初始数据 标准化( normalization ) 根据模型假设检验求pvalue 多重假设检验得到FDR值 差异基因筛选
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析流程
检验方法:Wald LRT 多重检验方法:BH 筛选出符合要求的差异基因:pvalue padj
载入包 library(包名称) #无需引号
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析软件
类型 软件
有生物学重复 DESeq2
标准化 方法
DESeq
数学模 型
负二项分布
无生物学重复 DEGseq
TMM
泊松分布
特殊情况 (最小重复)
Counts (gene g in sample j) has a
Mean = μ gj
Variance = μ +φμ ² gj g gj
Biological CV² = φ =>Biological CV = √φ
g
g
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
Providing Advanced Genomic Solutions
1 差异分析用途及工具 2 软件安装及部分原理介绍 3 实战练习-DESeq2 edgeR
软件安装
CRAN来源的包 install.packages("包名称")
Bioconductor来源的包 source(“/biocLite.R”) #每次打开R之后, 只需做一次 biocLite("包名称")
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
效果展示
标准化方法
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析流程
初始数据 标准化( normalization ) 根据模型假设检验求pvalue 多重假设检验得到FDR值 差异基因筛选
聚类图-数据导入处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
聚类图-pheatmap 函数
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
标准化 Why ?消除大小不同(测序深度)对差异分析结果的影响
how ?找到一个能反映大小的能够代表本次测序特有的因子,从而通过这个 因子实现对原始数据read的标准化。
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
标准化方法比较
edgeR
TMM
BH
BH
筛选 标准
padj<0.05
|log2FC|>1 padj<0.005 |log2FC|>1 padj<0.005
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析流程
初始数据 标准化( normalization ) 根据模型假设检验求pvalue 多重假设检验得到FDR值 差异基因筛选
火山图及聚类热图
数据处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
火山图-文件处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
火山图-文件处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析模型
负二项分布(Negative binomial distribution)
The NB model fits observed expression data of RNA-seq better. It is a generalization of Poisson, and 2 parameters need to be estimated (μ and φ)
火山图-开始绘图
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
火山图-图片调整
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
火山图-图片调整
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
聚类图-不显示行名
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
背景
edgeR-无生物学重复为例
线虫 两个样品 无生物学重复
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
初始数据
数据处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
差异分析流程
初始数据 标准化( normalization ) 根据模型假设检验求pvalue 多重假设检验得到FDR值 差异基因筛选
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
标准化方法
标准化方法——TMM One sample as a reference sample and the others as test samples.
For each test sample, TMM is computed as the weighted mean of log ratios between this test and the reference, after exclusion of the most expressed genes and the genes with the largest log ratios.
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
高级班
差异表达分析&实战练习
诺禾致源转录调控生物信息培训班
目 录
Contents
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
1 差异分析用途及工具 2 软件安装及部分原理介绍 3 实战练习-DESeq2 & edgeR
目 录
Contents
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
1 差异分析用途及工具 2 软件安装及部分原理介绍 3 实战练习-DESeq2 & edgeR
为什么要做差异分析
1)在不同背景下比较mRNA水平 • 同一物种,不同组织:研究基因在不同部分的表达情况 • 同一物种,同一组织:研究基因在不同处理下,不同条件下的表达变化 • 时间序列实验: 基因在不同时期的表达情况与发育的关系(STEM)
DESeq2
背景 拟南芥 处理(N)和参考(WT)各3个生物学重复
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
数据处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
数据处理
提供领先的基因组学解决方案
From Wikipedia. Can be 3 different genes, each with their own poisson distribution. Lambda is the mean of the gene's distribution, with a certain number of reads. Y=axis: chance to pick that number of reads.
Providing Advanced Genomic Solutions
数据导入和前期处理
数据处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
数据处理
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions
聚类图-图片调整
提供领先的基因组学解决方案
Providing Advanced Genomic Solutions