Kevin2015的个人博客分享 http://blog.sciencenet.cn/u/Kevin2015

博文

R pipeline for splicing analysis

已有 2382 次阅读 2016-5-13 10:52 |个人分类:知识点专题|系统分类:科研笔记

Differential splicing

limma can also detectgenes that how evidence of di_erential splicing between conditions. One can

test for di_erentialsplicing associated with any contrast for a linear model.

In this case, the matrixof counts should be at the exon level, with a row for each exon. For

example,

> dge <-DGEList(counts=counts)

> dge$genes$GeneID<- GeneID

where counts is amatrix of exon-level counts, and GeneID identi_es which gene each exon belongs

to. Then _lter andnormalize:

> A <-rowSums(dge$counts)

> dge <-dge[A>10,,keep.lib.sizes=FALSE]

> dge <-calcNormFactors(dge)

Then apply the voomtransformation and _t a linear model:

> v <-voom(dge,design,plot=TRUE)

> fit <-lmFit(v,design)

Now we can test fordi_erential splicing associated with any coe_cient in the linear model. First

run the di_Splicefunction:

> ex <- diffSplice(fit,geneid="GeneID")

Then

>topSplice(ex,coef=2,level="gene")

will _nd genes that showevidence of di_erential splicing associated with the second coe_cient in

the linear model. Theoutput is similar that from the limma topTable function. More detail can be

obtained by

72

>topSplice(ex,coef=2,level="exon")

which will showindividual exons that are enriched or depleted relative to other exons in thesame

gene. To display thepattern of exons in the top genes:

> plotSplice(ex)




https://blog.sciencenet.cn/blog-2609994-976896.html

上一篇:chip-seq 数据分析下游1--Rcade
下一篇:生存分析及HR计算
收藏 IP: 220.163.147.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-2 04:13

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部