inst/unitTests/test_HitsList.R

test_HitsList_as_matrix <- function() {
  x <- IRangesList(chr1=IRanges(1, 5), chr2=IRanges(6, 10))
  y <- IRangesList(chr2=IRanges(8, 10))
  checkIdentical(as.matrix(findOverlaps(x, y)),
                 cbind(queryHits = 2L, subjectHits = 1L))
}

Try the IRanges package in your browser

Any scripts or data that you put into this service are public.

IRanges documentation built on Dec. 14, 2020, 2 a.m.