CreateRdrop | R Documentation |
Computes leave-one-out correlations (rDrop) for each CpG
CreateRdrop(data, method = c("pearson", "spearman"), use = "complete.obs")
data |
a dataframe with rownames = sample IDs, column names = CpG IDs. |
method |
method for computing correlation, can be "pearson" or
"spearman", and is passed to the |
use |
method for handling missing values when calculating the
correlation. Defaults to |
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
r_drop
: The correlation between each CpG with the sum of
the rest of the CpGs
data(betaMatrix_ex1)
CreateRdrop(data = betaMatrix_ex1, method = "pearson")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.