Description Usage Arguments Details Examples
Hook functions to extract methylation
1 | methylation_hooks(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE)
|
... |
Arguments for the parameters, see "details" section |
RESET |
reset to default values |
READ.ONLY |
whether only return read-only options |
LOCAL |
switch local mode |
Methylation from whole genome bisulfite seuqencing is always huge and it does not make sense to read them all into the memory. This hook sets how to read the methylation data and how to return methylation value (e.g. CpG coverage, methylation rate...)
There are following hooks:
set a chromosome. The function accepts a single chromosome name and returns an object which is used as the first argument in other functions
how to extract methylation value. The function should have three arguments: the object returned from set()
, index of rows and index of columns. Normally, the first argument (obj
) can be ignored when calling this hook. Note the methylation matrix should be column names (used as sample id in other functions)
how to extract raw methylation value, same setting as meth
the function should return a vector of CpG sites
how to extract CpG coverage, same setting as meth
.
howt to extract CpG sites as a GRanges
object.
Note: positions of CpG sites in a chromosome should be sorted.
1 2 | # There is no example
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.