Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/correlated_regions.R
Correlated regions in a specified region
1 2 | correlated_regions_by_window(site, meth, expr, chr, cov = NULL, cov_cutoff = 3, min_dp = 4,
cor_method = "spearman", window_size = 5, window_step = window_size, subgroup = NULL, max_width = 10000)
|
site |
position of CpG sites in this region, should be sorted |
meth |
methylation matrix corresponding to |
expr |
expression for the associated gene |
chr |
chromosome name, used to construct the |
cov |
CpG coverage matrix. CpG coverage is important when |
cov_cutoff |
cutoff for CpG coverage when using raw methylation rate, used for raw methylation. Note when the CpG coverage is too low, the raw methylation rate is not reliable. Raw methylation rate for those CpGs with coverage less this this cutoff is set to |
min_dp |
minimal number of non-NA values for calculating correlations. When |
cor_method |
method for calcualting correlations, pass to |
window_size |
how many CpG sites in a window |
window_step |
step of the sliding window, measured in number of CpG sites |
subgroup |
subgroup information. If provided, ANOVA test and group mean are applied on each correlated region. |
max_width |
maximum width of a window |
cov
and cov_cutoff
should be set when the methylation is unsmoothed, because
for the unsmoothed data, the methylation rate is not reliable when the CpG coverage is low.
a GRanges
object
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.