7 lines
248 B
R
Raw Normal View History

2025-01-12 00:52:51 +08:00
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))
}