| computeMethylationDataSpatialCorrelation {DMRcaller} | R Documentation |
This function computes the correlation of the methylation levels as a
function of the distances between the Cytosines. The function returns a
vector with the correlation of methylation levels at distance equal to
a vector of specified thresholds.
computeMethylationDataSpatialCorrelation(methylationData, regions = NULL, context = "CG", distances = NULL)
methylationData |
the methylation data stored as a |
regions |
a |
context |
the context in which the correlation is computed ( |
distances |
a |
a vector with the correlation of the methylation levels for
Cytosines located at distances specified in the distances
vector.
Nicolae Radu Zabet
plotMethylationDataSpatialCorrelation,
methylationDataList
# load the methylation data
data(methylationDataList)
# compute spatial correlation in CG context
distances <- c(1,5,10,15)
correlation_CG_wt <- computeMethylationDataSpatialCorrelation(methylationDataList[["WT"]],
context="CG", distances=distances)