Description Details Constructor Accessor methods Combining MethInfo objects Author(s) Examples
A MethInfo object is an object that contains basic
information about a set of methylation loci. Currently the only attributes
are the type or context of the methylation loci, but more attributes might
be added in the future as the need arises.
Typically MethInfo objects are not used directly but are part of
higher level objects. Those higher level objects will generally provide a
methinfo accessor for getting/setting their MethInfo component.
MethInfo(methtype): Creates a MethInfo object.
In the code snippets below, x is a MethInfo object.
methtype(x), methtype(x) <- value:
Get/set the methylation type of x. value must be a
character vector: "CG" (i.e., CpG), "CHG",
"CHH", "CNN" or some combination of these, e.g.,
c("CG", "CHG") (NA_character_ is also allowed,
but not recommended).
There is no c method for MethInfo objects. Rather, a
merge method is provided.
In the code snippet below, x and y are MethInfo objects.
merge(x, y):
Merge x and y into a single MethInfo object where
the methylation type is the union of methtype(x) and
methtype(y). If the methtype of any object is missing
(NA_character_) then the merged methtype is also missing
(NA_character).
Peter Hickey
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.