Learn R Programming

SNPhood (version 1.2.3)

annotation,SNPhood-method: Retrieve the annotation of a SNPhood object.

Description

Specific elements within the annotation slot may also be extracted by using the elements parameter.

Usage

"annotation"(object, elements = NULL, ...)

Arguments

object
Object of class SNPhood
elements
Character. The name of the element(s) in the annotation slot to be extracted. If set to NULL, the full annotation slot is returned.
...
not supported

Value

If only a single value for elements is provided, the element is returned directly. If multiple values are provided, a named list with the requested elements is returned.

Examples

Run this code
data(SNPhood.o, package="SNPhood")
annotation(SNPhood.o)
annotation(SNPhood.o, elements = "regions")
annotation(SNPhood.o, elements = c("regions", "bins"))

Run the code above in your browser using DataLab