R/AllClasses.R

#' Pathway-Express result class
#' 
#' This class is used to encode the results of the pathway analysis performed by the function \code{\link{pe}}.
#' 
#' @details
#' 
#' The slots \code{input} and \code{ref} record global information related to the whole analysis, 
#' while the \code{pathways} slot records the specific results as \code{\link{pePathway-class}} for each one of the pathways used in the analysis.
#' 
#' 
#' @section Slots: 
#' 
#' \describe{
#'     \item{\code{pathways}:}{A list of \code{\link{pePathway-class}} objects.}
#'     \item{\code{input}:}{named vector of fold changes used for the analysis. The names of the vector are the IDs originaly used.}
#'     \item{\code{ref}:}{character vector containing the IDs used as reference in the analysis.}
#'     \item{\code{cutOffFree}:}{boolean value indicating if a cut-of-free analysis has been performed.}
#'   }
#' 
#' @author
#' 
#' Calin Voichita and Sorin Draghici
#'
#' @seealso \code{\link{pe}}, \code{\link{pePathway-class}}
#'
#' @exportClass peRes
setClass("peRes",
         representation(pathways = "list",
                        input = "numeric",
                        ref = "character",
                        cutOffFree = "logical"),
         prototype(pathways = list(), cutOffFree = FALSE)
)

#' Class that encodes the result of Pathway-Express for a single pathway
#' 
#' 
#' @section Slots:
#' 
#' \describe{
#'    \item{\code{map}:}{an object of type graph (e.g., \code{\link{graphNEL}}).}
#'    \item{\code{input}:}{named vector of fold changes for genes on this pathway. The names of the genes are the orignal IDS used in the analysis}
#'    \item{\code{ref}:}{vector of reference IDs on this pathway}
#'    \item{\code{boot}:}{an object of class \code{boot} encoding the bootstrap information.}
#'    \item{\code{Pert}:}{the gene perturbation factors for all genes on the pathway, as computed by Pathway-Express.}
#'    \item{\code{Acc}:}{the gene accumulations for all genes on the pathway, as computed by Pathway-Express.}
#'    \item{\code{asGS}:}{pathway was considered as gene set}
#' }
#' 
#' @author
#' 
#' Calin Voichita and Sorin Draghici
#'
#'             
#' @seealso \code{\link{pe}}, \code{\link{peRes-class}}
#' 
#' @aliases pePathway-class
#' @import graph
#' @exportClass pePathway
setClass("pePathway", 
         representation(map = "graph",
                        input = "numeric",
                        ref = "character",
                        boot = "ANY",
                        Pert = "numeric",
                        Acc = "numeric",
                        asGS = "logical"
         ), 
         prototype(map = new("graphNEL")
         )
)


#' Primary dis-regulation (pDis) result class
#' 
#' This class is used to encode the results of the pathway analysis performed by the function \code{\link{pDis}}.
#' 
#' @details
#' 
#' The slots \code{input} and \code{ref} record global information related to the whole analysis, 
#' while the \code{pathways} slot records the specific results as \code{\link{pDisPathway-class}} for each one of the pathways used in the analysis.
#' 
#' 
#' @section Slots: 
#' 
#' \describe{
#'     \item{\code{pathways}:}{A list of \code{\link{pDisPathway-class}} objects.}
#'     \item{\code{input}:}{named vector of fold changes used for the analysis. The names of the vector are the IDs originaly used.}
#'     \item{\code{ref}:}{character vector containing the IDs used as reference in the analysis.}
#'     \item{\code{cutOffFree}:}{boolean value indicating if a cut-of-free analysis has been performed.}
#'   }
#' 
#' @author
#' 
#' Calin Voichita, Sahar Ansari and Sorin Draghici
#'
#' @seealso \code{\link{pDis}}, \code{\link{pDisPathway-class}}
#'
#' @aliases pDisRes-class
#' @exportClass pDisRes
setClass("pDisRes",
         representation(pathways = "list",
                        input = "numeric",
                        ref = "character",
                        cutOffFree = "logical"),
         prototype(pathways = list(), cutOffFree = FALSE)
)

#' Class that encodes the result of pDis analysis for a single pathway
#' 
#' 
#' @section Slots:
#' 
#' \describe{
#'    \item{\code{map}:}{an object of type graph (e.g., \code{\link{graphNEL}}).}
#'    \item{\code{input}:}{named vector of fold changes for genes on this pathway. The names of the genes are the orignal IDS used in the analysis}
#'    \item{\code{ref}:}{vector of reference IDs on this pathway}
#'    \item{\code{boot}:}{an object of class \code{boot} encoding the bootstrap information.}
#'    \item{\code{pDis}:}{the gene primary dis-regulation for all genes on the pathway, as computed by primary dis-regulation.}
#'    \item{\code{asGS}:}{pathway was considered as gene set}
#' }
#' 
#' @author
#' 
#' Calin Voichita, Sahar Ansari and Sorin Draghici
#'
#'             
#' @seealso \code{\link{pDis}}, \code{\link{pDisRes-class}}
#' 
#' @aliases pDisPathway-class
#' @import graph
#' @exportClass pDisPathway
setClass("pDisPathway", 
         representation(map = "graph",
                        input = "numeric",
                        ref = "character",
                        boot = "ANY",
                        pDis = "numeric",
                        asGS = "logical"
         ), 
         prototype(map = new("graphNEL")
         )
)

Try the ROntoTools package in your browser

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

ROntoTools documentation built on Nov. 8, 2020, 7:41 p.m.