HD | R Documentation |
Each individuals sample includes 10000 cytosine positions
HD
'hdiv is an object from class 'InfDiv' with
GRanges-class
as elements carrying in the
meta-columns the following variables:
Methylated read counts from the reference sample.
Unmethylated read counts from the reference sample.
Methylated read counts from the treatment sample.
Unmethylated read counts from the treatment sample.
methylation level from the reference sample.
methylation level from the treatment sample.
the total variation distance (difference of methylation levels)
TV computes with Bayesian correction for the methelation levels.
Hellinger divergence.
J divergence.
'HD' was obtained with function estimateDivergence
.
## Load a dataset of simulated read counts.
data("HD", package = "MethylIT")
## Number of positions with Hellinger divergence values greater than
## the HD_95%
critical.val <- do.call(rbind, lapply(HD, function(x) {
hd.95 = quantile(x$hdiv, 0.95)
tv.95 = quantile(abs(x$bay.TV), 0.95)
return(c(tv = tv.95, hd = hd.95, num.sites.hd95 = sum(x$hdiv > hd.95),
num.sites.tv95 = sum(x$bay.TV > tv.95)))}))
critical.val
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.