Description Usage Arguments Value Note
Given a CoMeth1
object, betaCor
computes the
correlations of pairs of beta-values. Correlations are computed per-sample
and are stratified by the strand
, features
and ipd
of
the pairs of methylation loci.
1 2 3 |
cometh |
A CoMeth1 object. |
mls |
A |
ipd |
An integer vector of IPDs. Correlations will only be computed
using pairs with an IPD found in |
nil |
The number of intervening loci (NIL) allowed in each pair. The
default, |
feature |
A |
same_feature |
logical. If supplying a |
ignore_strand |
logical. Should the strand of the methylation loci be
ignored (default: |
method |
A character string indicating which correlation coefficient
is to be computed. One of "pearson" (default), "kendall", or "spearman",
can be abbreviated. Currently, only "pearson" and "spearman" are
supported because "kendall" is very slow (see Note in
|
A data.frame
. While the exact format depends on the
parameters used, the first column is the correlation, the second column is
the sample name and the remaining columns are IPD
and
features
, if relevant. Therefore, each row corresponds to the
correlation for a particular "sample-IPD-features" combination.
Correlations are computed using cor
,
with use = "na.or.complete".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.