Description Usage Arguments Value Author(s) See Also Examples
View source: R/spatialCorrelation.R
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.
1 2 | 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
1 2 3 4 5 6 7 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.