distanceCorrelation: Distance correlation

Description Usage Arguments Value Examples

View source: R/correlation.R

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)

methimpute documentation built on Nov. 8, 2020, 5:47 p.m.