Firstly, assume you have already installed UCSCXenaShiny package.
library(UCSCXenaShiny)
#> =========================================================================================
#> UCSCXenaShiny version 2.2.0
#> Project URL: https://github.com/openbiox/UCSCXenaShiny
#> Usages: https://openbiox.github.io/UCSCXenaShiny/
#>
#> If you use it in published research, please cite:
#> Shensuo Li, Yuzhong Peng, Minjun Chen, Yankun Zhao, Yi Xiong, Jianfeng Li, Peng Luo,
#> Haitao Wang, Fei Zhao, Qi Zhao, Yanru Cui, Sujun Chen, Jian-Guo Zhou, Shixiang Wang,
#> Facilitating integrative and personalized oncology omics analysis with UCSCXenaShiny,
#> Communications Biology, 1200 (2024), https://doi.org/10.1038/s42003-024-06891-2
#> =========================================================================================
#> --Enjoy it--
From UCSCXenaShiny v2, we provide a comprehensive tutorial book for introducing how to use the datasets, functions, and the Shiny application.
We provide function to retrieve multi-dimensional data including genomic, epigenomic, transcriptomic, and proteomic data from TCGA (note, this actually contains data from TCGA/TARGET/GTEx databases) and CCLE Pan-Cancer dataset for single identifier (e.g., gene, protein).
Check parameters:
args(query_pancan_value)
#> function (molecule, data_type = c("mRNA", "transcript", "protein",
#> "mutation", "cnv", "methylation", "miRNA", "fusion", "promoter",
#> "APOBEC"), database = c("toil", "ccle", "pcawg"), reset_id = NULL,
#> opt_pancan = .opt_pancan)
#> NULL
For TCGA gene expression data, we use Xena dataset with ID
TcgaTargetGtex_rsem_gene_tpm
which includes 19131 samples
with tumor tissue samples and normal tissue samples. The expression
value unit is log2(tpm+0.001)
.
Let’s check several examples.
gene_expr <- query_pancan_value("TP53")
#> =========================================================================================
#> UCSCXenaTools version 1.4.8
#> Project URL: https://github.com/ropensci/UCSCXenaTools
#> Usages: https://cran.r-project.org/web/packages/UCSCXenaTools/vignettes/USCSXenaTools.html
#>
#> If you use it in published research, please cite:
#> Wang et al., (2019). The UCSCXenaTools R package: a toolkit for accessing genomics data
#> from UCSC Xena platform, from cancer multi-omics to single-cell RNA-seq.
#> Journal of Open Source Software, 4(40), 1627, https://doi.org/10.21105/joss.01627
#> =========================================================================================
#> --Enjoy it--
#> Try querying data #1
#> Try querying data #2
#> Try querying data #3
#> Try querying data #4
#> Try querying data #5
#> Warning in value[[3L]](cond): Tried 5 times but failed, please check URL or
#> your internet connection or try it later!
#> Saving data to file /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = FALSE, Show.P.label = FALSE)
#> Reading cache data /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> Try querying data #1
#> Try querying data #2
#> Try querying data #3
#> Try querying data #4
#> Try querying data #5
#> Warning in value[[3L]](cond): Tried 5 times but failed, please check URL or
#> your internet connection or try it later!
#> Saving data to file /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
#> Warning in vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value =
#> FALSE, : No data available
#> NULL
vis_toil_TvsN_cancer(
Gene = "TP53",
Mode = "Violinplot",
Show.P.value = TRUE,
Show.P.label = TRUE,
Method = "wilcox.test",
values = c("#DF2020", "#DDDF21"),
TCGA.only = FALSE,
Cancer = "ACC"
)
#> Reading cache data /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> Try querying data #1
#> Try querying data #2
#> Try querying data #3
#> Try querying data #4
#> Try querying data #5
#> Warning in value[[3L]](cond): Tried 5 times but failed, please check URL or
#> your internet connection or try it later!
#> Saving data to file /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
#> Warning in vis_toil_TvsN_cancer(Gene = "TP53", Mode = "Violinplot",
#> Show.P.value = TRUE, : No data available
#> NULL
This function needs gganatogram package, which is not on CRAN. Please install it before using this function.
if (require("gganatogram")) {
vis_pancan_anatomy(Gene = "TP53", Gender = c("Female", "Male"), option = "D")
}
vis_unicox_tree(
Gene = "TP53",
measure = "OS",
values = c("grey", "#E31A1C", "#377DB8")
)
#> Reading cache data /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> Try querying data #1
#> Try querying data #2
#> Try querying data #3
#> Try querying data #4
#> Try querying data #5
#> Warning in value[[3L]](cond): Tried 5 times but failed, please check URL or
#> your internet connection or try it later!
#> Saving data to file /tmp/RtmpA2DCMA/UCSCXenaShiny/4822f991b17cbdab3831c455be7620b2.rds
#> More info about dataset please run following commands:
#> library(UCSCXenaTools)
#> XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_rsem_gene_tpm") %>% XenaBrowse()
#> Warning in vis_unicox_tree(Gene = "TP53", measure = "OS", values = c("grey", :
#> No data available
#> NULL
All exported data and functions are organized at here.