Description Usage Arguments Details Value Author(s) Examples
View source: R/hilbert_curve_difference.R
Visualize methylation difference by Hilbert curve
1 2 | hilbert_curve_methylation_difference(subgroup, comparison, chromosome = paste0("chr", 1:22),
species = "hg19", type = c("global_mean", "subgroup_mean", "difference"))
|
subgroup |
subgroup information which corresponds to sample IDs stored in |
comparison |
if there are more than one subgroups, the comparison of two subgroups which shows the methylation difference The value is a vector of length of two and the difference is calculated as |
chromosome |
a vector of chromosome names |
species |
species |
type |
Three types of visualization are supported, see "details" section |
Genome is segmented by 1kb window and mean methylation for each 1kb window is calculated, later visualized by Hilbert curve.
There are three types of visualization methods:
the mean methylation averaged from all samples
the mean methylation averaged in every subgroup
the difference of methylation in two subgroups
To compare methylation in two subgroups, users can use following two ways:
directly compare mean methylation in the two subgroups
use combination of "global_mean" + "difference" (this one I feel better to visualize the difference)
A GRanges
object which contains mean methylation for the 1kb segmentation and other statistics.
If users just need this object without making any plots, set type = "none"
.
The returned value can be sent to general_chipseq_association_to_methylation
.
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.