在开发UCSCXenaShiny这个包过程中开发了一个小工具,用于查看某个基因在肿瘤组织和正常组织中表达量的差异。肿瘤组织数据来源于TCGA,正常组织数据来源于GTEX。
使用起来非常方便
首先安装开发版本的包
remotes::install_github("openbiox/XenaShiny")
library(UCSCXenaShiny)
接着直接调函数
#使用小提琴图
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = F, Show.P.label = F)
#使用箱型图
vis_toil_TvsN(Gene = "TP53", Mode = "Boxplot", Show.P.value = F, Show.P.label = F)
#加上P值
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = T, Show.P.label = T)
#换个配色
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = T, Show.P.label = T,value = c("Red","Green"))




网友评论