knitr::opts_chunk$set( collapse = TRUE, comment = "#>", echo = TRUE, message = FALSE, warning = FALSE, fig.width=8, fig.height=5 )
# install.packages(devtools) ## Install devtools if necessary devtools::install_github("mtandon09/MAFDashRPackage")
You can run TCGAbiolinks::getGDCprojects()
to get a data frame of available datasets. The last column (tumor
) contains valid TCGA project codes for download.
library(MAFDash) library(maftools) # Let's use the example MAF provided by maftools laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
## Text to display as the header in the output file title_text <- paste0("Example Dashboard") ## Location for the output file html_filename <- "LAML.mafdash.html" getMAFDashboard(maf = laml.maf, outputFileName = html_filename, outputFileTitle=title_text)
The output can be seen here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.