02基因差异表达分析
R包安装
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("ballgown")
##也可以直接使用library加载
library(ballgown)# Installation path not writeable
installed.packages()[, c("Package", "LibPath")]
#查看这些包的安装路径,直接改变权限1.加载表达文件
# make the ballgown object:
#根据目录来提取表达
bg = ballgown(dataDir=data_directory, samplePattern='sample', meas='all')
bg
#直接指定样本文件夹所在路径
ballgown(samples=c(文件目录),meas='all')
## ballgown instance with 100 transcripts and 20 samples2.使用插槽访问里面的各种数据
差异表达分析
分析两个重复间的重复性和差异表达基因
使用DESeq2进行差异表达分析
htseq统计比对到gene的read数目
进行差异表达分析
绘制火山图

比较分类
参考
Last updated