Description Usage Arguments Details Value Examples
Mark CpGs in contiguous and co-methylated region
1 2 3 4 5 6 | MarkComethylatedCpGs(
betaCluster_mat,
betaToM = TRUE,
rDropThresh_num = 0.4,
method = c("pearson", "spearman")
)
|
betaCluster_mat |
matrix of beta values, with rownames = sample ids,
column names = CpG ids. Note that the CpGs need to be ordered by their genomic positions,
this can be accomplished by the |
betaToM |
indicates if converting to mvalues before computing correlations |
rDropThresh_num |
thershold for min correlation between a cpg with sum of the rest of the CpGs |
method |
correlation method, can be pearson or spearman |
An outlier CpG in a genomic region will typically have low correlation with the rest of
the CpGs in a genomic region. On the other hand, in a cluster of co-methylated CpGs, we expect
each CpG to have high correlation with the rest of the CpGs. The r.drop
statistic is used
to identify these co-methylated CpGs here.
A data frame with the following columns:
CpG
: CpG ID
keep
: The CpGs with keep = 1
belong to the contiguous and
co-methylated region
ind
: Index for the CpGs
r_drop
: The correlation between each CpG with the sum of the rest of the CpGs
1 2 3 4 5 6 7 8 9 10 11 | data(betaMatrix_ex1)
MarkComethylatedCpGs(betaCluster_mat = betaMatrix_ex1, betaToM = FALSE, method = "pearson")
data(betaMatrix_ex2)
MarkComethylatedCpGs(betaCluster_mat = betaMatrix_ex2, method = "pearson")
data(betaMatrix_ex3)
MarkComethylatedCpGs(betaCluster_mat = betaMatrix_ex3, method = "pearson")
data(betaMatrix_ex4)
MarkComethylatedCpGs(betaCluster_mat = betaMatrix_ex4, rDropThresh_num = 0.6, method = "pearson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.