Description Usage Arguments Value Note Examples
Computes the mean distance of regions in A to the nearest element in B
1 | meanDistance(A, B, ...)
|
A |
a region set in any of the accepted formats by |
B |
a region set in any of the accepted formats by |
... |
any additional parameter needed |
The mean of the distances of each region in A to the nearest region in B.
If a region in A is in a chromosome where no B region is, it will be ignored and removed from the mean computation.
1 2 3 4 5 | A <- data.frame("chr1", c(1, 10, 20, 30), c(12, 13, 28, 40))
B <- data.frame("chr1", 25, 35)
meanDistance(A, B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.