distanceCorrelation: Distance correlation

Description Usage Arguments Value Examples

Description

Compute the distance correlation from a methimputeData object.

Usage

1
distanceCorrelation(data, distances = 0:50, separate.contexts = FALSE)

Arguments

data

A methimputeData object.

distances

An integer vector specifying the distances for which the correlation will be calculated.

separate.contexts

A logical indicating whether contexts are treated separately. If set to TRUE, correlations will only be calculated between cytosines of the same context.

Value

A list() with an array containing the correlation values and the corresponding ggplot.

Examples

1
2
3
4
5
6
## Get some toy data
file <- system.file("data","arabidopsis_toydata.RData",
                    package="methimpute")
data <- get(load(file))
distcor <- distanceCorrelation(data)
print(distcor$plot)

ataudt/popmeth documentation built on May 10, 2019, 2:07 p.m.