/usr/lib/R/site-library/IRanges/unitTests/test_HitsList.R is in r-bioc-iranges 2.4.1-1.
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 <- RangedData(IRanges(start=c(1,6), end=c(5,10)), space=c("chr1","chr2"))
y <- RangedData(IRanges(start=8, end=10), space="chr2")
checkIdentical(as.matrix(findOverlaps(x, y)),
cbind(queryHits = 2L, subjectHits = 1L))
}
|