#' Run the whole pipeline start to finish
#' @param mutationData dataframe of variant calls
#' @param plots Description
#' @param geneList Description
#' @param plotData Description
#' @keywords Mutation Waterfall
#' @export
#' @examples
#' Mut <- MutationPlot()
#'
MutationPlot <- setClass("MutationPlot",
slots = c(mutationData = "data.frame",
plots="list",
genelist="table",
plotdata="list"))
setMethod("show", "MutationPlot",
function(object) {
if (is.ggplot(object@plots$FinalPlot)) {
print(object@plots$FinalPlot)
} else {
cat("This is an instance of MutationPlot","\n")
cat("Samples:",
object@plotdata$SampleData$SampleCol %>%
levels(),
"\n")
cat("Genes:",
object@plotdata$GeneData$GeneCol %>%
levels(),
"\n")
cat("Number of Mutations:",
object@mutationData %>%
dim(.) %>%
.[1])
}
}
)
MutTheme <- theme_classic() +
theme(axis.text = element_text(size=8),
legend.background = element_blank(),
legend.position = "bottom",
legend.box = "horizontal",
legend.text = element_text(size = 10),
legend.title = element_text(size = 10,
face = "bold"),
legend.key.height = unit(0.2, "cm")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.