MOVICS系列教程(二) COMP Module

MOVICS系列教程(二) COMP Module前言 今天我们来演示 MOVICS 包的第二个模块 在上一篇推文中 MOVICS 系列教程 一 GET Module 分析后 我们得到了乳腺癌的 5 个亚型 那么此模块就是为了对这 5 种亚型间的分子特征进行展示 因为需要上一部分的输出结果 大家必须跑完上一篇推文的代码才可以进行本篇推文的演示代码

大家好,我是讯享网,很高兴认识大家。

前言

今天我们来演示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 month                       surv.median.line = "h", # draw horizontal line at median survival                       xyrs.est         = c(5,10), # estimate 5 and 10-year survival                       fig.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 variables                          nonnormalVars = "futime", # feature(s) that are considered using nonparametric test                          exactVars     = "pstage", # feature(s) that are considered using exact test                          doWord        = TRUE, # generate .docx file in local path                          tab.name      = "SUMMARIZATION OF CLINICAL FEATURES") 

# mutational frequency comparison mut.brca <- compMut(moic.res     = cmoic.brca,                     mut.matrix   = brca.tcga$mut.status, # binary somatic mutation matrix                     doWord       = TRUE, # generate table in .docx format                     doPlot       = TRUE, # draw OncoPrint                     freq.cutoff  = 0.05, # keep those genes that mutated in at least 5% of samples                     p.adj.cutoff = 0.05, # keep those genes with adjusted p value < 0.05 to draw OncoPrint                     innerclust   = TRUE, # perform clustering within each subtype                     annCol       = annCol, # same annotation for heatmap                     annColors    = annColors, # same annotation color for heatmap                     width        = 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 sample                     rmFLAGS      = FALSE, # keep FLAGS mutations                     exome.size   = 38, # estimated exome size                     test.method  = "nonparametric", # statistical testing method                     fig.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 file                     cnathreshold = 0.2, # threshold to determine CNA gain or loss                     test.method  = "nonparametric", # statistical testing method                     fig.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 order                          drugs       = c("Cisplatin", "Paclitaxel"), # a vector of names of drug in GDSC                          tissueType  = "breast", # choose specific tissue type to construct ridge regression model                          test.method = "nonparametric", # statistical testing method                          prefix      = "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将会在下一次推文中进行介绍,敬请期待!


小讯
上一篇 2025-01-27 15:31
下一篇 2025-02-27 20:52

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/109330.html