R/class.R

#' An S4 class to return results from \code{compute_amanida} or \code{amanida_vote} function
#' @slot stat results for statistics combining p-values and fold-changes
#' @slot vote vote-counting for metabolites
#' 
#' @import tibble
#' @importFrom methods callNextMethod
#' 
#' @export

METAtables <- setClass("METAtables",
                       slots = c(stat = "tbl_df",
                                 vote = "tbl_df"))

setMethod(f = "initialize", "METAtables",
          function(.Object, stat, vote) {
            .Object <- callNextMethod()
            .Object@stat <- stat
            .Object@vote <- vote
            .Object
          })

Try the amanida package in your browser

Any scripts or data that you put into this service are public.

amanida documentation built on March 30, 2022, 9:06 a.m.