R/annotation.R

#' @import methods
NULL

#' Accessing annotation information
#'
#' Get or set the annotation information contained in an object.
#' @param object An object containing annotation information.
#' @param ... Additional arguments, for use in specific methods.
#' @param value The annotation information to set on \code{object}.
#' @seealso
#'  \itemize{
#'    \item \code{\link[methods]{showMethods}} for displaying a summary of the
#'          methods defined for a given generic function.
#'
#'    \item \code{\link[methods]{selectMethod}} for getting the definition of
#'          a specific method.
#'
#'    \item \link{generics} for a summary of all the generics defined
#'          in the \pkg{generics} package.
#'  }
#' @examples
#' annotation
#' showMethods("annotation")
#' @keywords methods
#' @export
setGeneric("annotation",
    function(object, ...) UseMethod("annotation")
)

#' @rdname annotation
#' @export
setGeneric("annotation<-",
    function(object, ..., value) UseMethod("annotation<-")
)

#' Select Generic
#' @param x An object.
#' @param ... Additional arguments, for use in specific methods.
#' @export
setGeneric("select", function(.data, ...) UseMethod("select"))
Bioconductor/generics documentation built on May 6, 2019, 7:52 a.m.