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))
}
Bioconductor/IRanges documentation built on Nov. 2, 2024, 4:32 p.m.