Description Usage Arguments Details Value Author(s) Examples
View source: R/cpg_dinucleotide_methylation.R
Merge methylation for CpG dinucleotide
1 | merge_cpg_dinucleotide_methylation(pos, meth, cov)
|
pos |
positions of CpG sites, must be sorted |
meth |
methylation matrix associated with the CpG positions. Note the value should be the number of methylated CpGs at each CpG site |
cov |
CpG coverage matrix |
Normally methylation for the two Cs in a CpG dinucleotide (a second C is on the other strand) is very similar. This function helps to reduce the redundency of the methylation dataset.
For two Cs in a CpG dinucleotide, the merged methylation value (the methylated Cs) is calculated by weighting the CpG coverage of the two Cs. Also the merged coverage is also calculated by weighting the coverage itself.
a list containg a pos
vector, a meth
matrix and a cov
matrix
Zuguang Gu <z.gu@dkfz.de>
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.