S4Vectors
S4Vectors copied to clipboard
queryHits()/subjectHits() for HitsList throw error
Hi,
the following example reports an error
library(S4Vectors)
library(IRanges)
hits <- findMatches(c("1","2","3","4"),c("1","1","2","4"))
hits <- relist(hits,PartitioningByEnd(c(2,3,4)))
queryHits(hits)
#> Error in rep.int(x@subjectOffsets, nr): invalid 'times' value
This seems to originate in the as.matrix function.
SessioInfo
sessionInfo() #> R version 3.6.2 (2019-12-12) #> Platform: x86_64-w64-mingw32/x64 (64-bit) #> Running under: Windows 10 x64 (build 18363) #> #> Matrix products: default #> #> locale: #> [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 #> [3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C #> [5] LC_TIME=German_Germany.1252 #> #> attached base packages: #> [1] parallel stats4 stats graphics grDevices utils datasets #> [8] methods base #> #> other attached packages: #> [1] IRanges_2.20.2 S4Vectors_0.24.3 BiocGenerics_0.32.0 #> #> loaded via a namespace (and not attached): #> [1] Rcpp_1.0.3 digest_0.6.24 magrittr_1.5 evaluate_0.14 #> [5] highr_0.8 rlang_0.4.4 stringi_1.4.6 rmarkdown_2.1 #> [9] tools_3.6.2 stringr_1.4.0 xfun_0.12 yaml_2.2.1 #> [13] compiler_3.6.2 htmltools_0.4.0 knitr_1.28