R/volcanoClass.R

#' Description
#' @param DGEresults dataframe of differentially expressed genes
#' @param plots List of plots
#' @param sigGenes List of dataframes of different gene groups.
#' @param plotData Data used to generate the plots.
#' @keywords Volcano Plot
#' @export
#' @examples
#' Volcano <- VolcanoPlot()
#'

VolcanoPlot <- setClass("VolcanoPlot",
                         slots = c(DEGresults = "data.frame",
                                   plots="list",
                                   sigGenes = "list",
                                   plotdata="list"))

setMethod("show", "VolcanoPlot", function(object) {
	if (is.ggplot(object@plots$volcano)) {
		print(object@plots$volcano)
		} else {
		cat("This is an object of class Volcano")
	}
})
findlaycopley/Volcano documentation built on Oct. 30, 2020, 4:42 p.m.