numOverlaps | R Documentation |
Returns the number of regions in A overlapping any region in B
numOverlaps(A, B, count.once=FALSE, ...)
A |
a region set in any of the formats accepted by |
B |
a region set in any of the formats accepted by |
count.once |
boolean indicating whether the overlap of multiple B regions with a single A region should be counted once or multiple times |
... |
any additional parameters needed |
It returns a numeric value that is the number of regions in A overlapping at least one region in B.
overlapPermTest
, permTest
genome <- filterChromosomes(getGenome("hg19"), keep.chr="chr1")
A <- createRandomRegions(nregions=20, length.mean=10000000, length.sd=20000, genome=genome, non.overlapping=FALSE)
B <- c(A, createRandomRegions(nregions=10, length.mean=10000, length.sd=20000, genome=genome, non.overlapping=FALSE))
numOverlaps(A, B)
numOverlaps(A, B, count.once=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.