/usr/lib/R/site-library/IRanges/unitTests/test_HitsList.R is in r-bioc-iranges 2.12.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 | 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))
}
|