MOVICS系列教程(二) COMP Module
前言
今天我们来演示MOVICS包的第二个模块,在上一篇推文中:MOVICS系列教程(一) GET Module分析后,我们得到了乳腺癌的5个亚型,那么此模块就是为了对这5种亚型间的分子特征进行展示。
因为需要上一部分的输出结果,大家必须跑完上一篇推文的代码才可以进行本篇推文的演示代码。
主要函数
同样的,我们先来看一下这个模块用到的函数:
compSurv(): compare survival outcome and generate a Kalan-Meier curve with pairwise comparison if possible
compClinvar(): compare and summarize clinical features among different identified subtypes
compMut(): compare mutational frequency and generate an OncoPrint with significant mutations
compTMB(): compare total mutation burden among subtypes and generate distribution of Transitions and Transversions
compFGA(): compare fraction genome altered among subtypes and generate a barplot for distribution comparison
compDrugsen(): compare estimated half maximal inhibitory concentration (IC50) for drug sensitivity and generate a boxviolin for distribution comparison
compAgree(): compare agreement of current subtypes with other pre-existed classifications and generate an alluvial diagram and an agreement barplot
主要是通过比较各亚型间肿瘤的主要特征(生存分析,临床特征,突变状态,TMB,药敏和一致性),来揭示各亚型间不同的分子特征。
代码演示
# survival comparison
surv.brca <- compSurv(moic.res = cmoic.brca,surv.info = surv.info,convt.time = "m", # convert day unit to monthsurv.median.line = "h", # draw horizontal line at median survivalxyrs.est = c(5,10), # estimate 5 and 10-year survivalfig.name = "KAPLAN-MEIER CURVE OF CONSENSUSMOIC")
clin.brca <- compClinvar(moic.res = cmoic.brca,var2comp = surv.info, # data.frame needs to summarize (must has row names of samples)strata = "Subtype", # stratifying variable (e.g., Subtype in this example)factorVars = c("PAM50","pstage","fustat"), # features that are considered categorical variablesnonnormalVars = "futime", # feature(s) that are considered using nonparametric testexactVars = "pstage", # feature(s) that are considered using exact testdoWord = TRUE, # generate .docx file in local pathtab.name = "SUMMARIZATION OF CLINICAL FEATURES")
# mutational frequency comparison
mut.brca <- compMut(moic.res = cmoic.brca,mut.matrix = brca.tcga$mut.status, # binary somatic mutation matrixdoWord = TRUE, # generate table in .docx formatdoPlot = TRUE, # draw OncoPrintfreq.cutoff = 0.05, # keep those genes that mutated in at least 5% of samplesp.adj.cutoff = 0.05, # keep those genes with adjusted p value < 0.05 to draw OncoPrintinnerclust = TRUE, # perform clustering within each subtypeannCol = annCol, # same annotation for heatmapannColors = annColors, # same annotation color for heatmapwidth = 6, height = 2,fig.name = "ONCOPRINT FOR SIGNIFICANT MUTATIONS",tab.name = "INDEPENDENT TEST BETWEEN SUBTYPE AND MUTATION")
# compare TMB
tmb.brca <- compTMB(moic.res = cmoic.brca,maf = maf,rmDup = TRUE, # remove duplicated variants per samplermFLAGS = FALSE, # keep FLAGS mutationsexome.size = 38, # estimated exome sizetest.method = "nonparametric", # statistical testing methodfig.name = "DISTRIBUTION OF TMB AND TITV")
# compare FGA, FGG, and FGL
fga.brca <- compFGA(moic.res = cmoic.brca,segment = segment,iscopynumber = FALSE, # this is a segmented copy number filecnathreshold = 0.2, # threshold to determine CNA gain or losstest.method = "nonparametric", # statistical testing methodfig.name = "BARPLOT OF FGA")
# drug sensitivity comparison
drug.brca <- compDrugsen(moic.res = cmoic.brca,norm.expr = fpkm[,cmoic.brca$clust.res$samID], # double guarantee sample orderdrugs = c("Cisplatin", "Paclitaxel"), # a vector of names of drug in GDSCtissueType = "breast", # choose specific tissue type to construct ridge regression modeltest.method = "nonparametric", # statistical testing methodprefix = "BOXVIOLIN OF ESTIMATED IC50")
# customize the factor level for pstage
surv.info$pstage <- factor(surv.info$pstage, levels = c("TX","T1","T2","T3","T4"))# agreement comparison (support up to 6 classifications include current subtype)
agree.brca <- compAgree(moic.res = cmoic.brca,subt2comp = surv.info[,c("PAM50","pstage")],doPlot = TRUE,box.width = 0.2,fig.name = "AGREEMENT OF CONSENSUSMOIC WITH PAM50 AND PSTAGE")
总结
相信你已经被上述各种炫酷的图片吸引住了,但是截止到目前为止,我们仍然只是从表型上找出乳腺癌的各亚型间分子功能的不同。而如果想更深入的挖掘其背后机制,就需要找出各亚型间这些差异表达的基因是哪些,这就是MOVICS第三个模块的作用了,Immugent将会在下一次推文中进行介绍,敬请期待!
MOVICS系列教程(二) COMP Module相关推荐
- MOVICS系列教程(一) GET Module
前言 Immugent在之前的推文:整合多组学数据进行分型之MOVICS中已经介绍了MOVICS的基本功能,从本篇推文开始,小编将会以一系列推文的形式对这个R包进行实操演示. 为了方便有兴趣的小伙伴进 ...
- MOVICS系列教程(三) RUN Module
前言 通过学习前面几个模块,我们已经发现了基于多组学数据找出的乳腺癌各亚型间具有非常显著的分子差异,而我们如果想深入挖掘其背后机制,就需要找出差异表达的基因是哪些,以及这些基因具有什么样的功能.而MO ...
- 黄聪:Microsoft Enterprise Library 5.0 系列教程(二) Cryptography Application Block (高级)
原文:黄聪:Microsoft Enterprise Library 5.0 系列教程(二) Cryptography Application Block (高级) 本章介绍的是企业库加密应用程序模块 ...
- C#微信公众号开发系列教程二(新手接入指南)
此系列前面已经更新了两篇博文了,都是微信开发的前期准备工作,现在切入正题,本篇讲解新手接入的步骤与方法,大神可直接跳过,也欢迎大神吐槽. 微信公众号开发系列教程一(调试环境部署) 微信公众号开发系列教 ...
- QT5系列教程二---基于qcustomplot的QT5 GUI串口收发绘图软件实现
QT5系列教程二---基于qcustomplot的QT5 GUI串口收发绘图软件实现 结构 UI部分 代码部分 step1:实现串口数据接受 串口接受数据格式 在`.pro`文件中添加`serialp ...
- 以太坊构建DApps系列教程(二):构建TNS代币
在本系列关于使用以太坊构建DApps教程的第1部分中,我们引导大家做了两个版本的本地区块链进行开发:一个Ganache版本和一个完整的私有PoA版本. 在这一部分中,我们将深入研究并构建我们的TNS代 ...
- Cocoapods系列教程(二)——开源主义接班人
原文地址:Cocoapods系列教程(二)--开源主义接班人 引言 在写该博客的时候,博主刚看到一个问题:"那些头衔只是看起来很厉害,实际不难获得?".然后有个神回复写到:&quo ...
- 汇川技术小型PLC梯形图编程系列教程(二):AutoShop软件使用技巧介绍
原文链接:汇川技术小型PLC梯形图编程系列教程(二):AutoShop软件使用技巧介绍 俗话说的好,磨刀不误砍柴工.这里的刀指的是准备工作:手册+熟练使用软件(掌握一些技巧).所以本篇为大家简单介绍一 ...
- 2021年淘宝客系列教程(二)事前准备
2021年淘宝客系列教程(二)事前准备 本系列立志于将淘宝客如何在微信公众号/微信机器人这类基础上运作,到最后开发一个完整的淘宝客系统而编写,如有雷同,纯属借鉴~ 2021年淘宝客系列教程(一)淘宝客 ...
最新文章
- 一步一步学Linq to sql(六):探究特性
- linux查看docker使用率,查看docker容器的内存占用
- Spring基于Setter函数的依赖注入(DI)
- 转:精通JS正则表达式
- 用C语言实现SGF格式围棋棋谱解析器
- Linux网络协议栈:网卡收包分析
- WinForm程序启动控制台窗口Console
- OSPF邻接关系建立过程
- 【Linux-shell】shell脚本基础语法练习
- 基于ansys命令流的水池静力学分析
- 【IObit】五大软件激活码( Advanced Systemcare....)
- linux 隧道服务器,Linux下建立和使用隧道访问IPV6网络的方法 - 如何用隧道搭建ipv6...
- 【硬件学习笔记】防反接保护电路
- Vivado工程配置petalinux实现linux下网卡驱动
- 二十六 .ajax登录 认证 验证码(session)
- Python:实现arithmetic算术算法(附完整源码)
- 金市良臣:3.9黄金白银今日操作建议黄金何时止跌完成筑底解读
- jQuery 实现动态粒子特效,太美了!!!
- HTML5基本结构及标签
- coreldraw凹槽_CATIA课时:操作工具栏创建修剪分割曲面视频教程_翼狐网