Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queryHits()/subjectHits() for HitsList throw error #63

Open
FelixErnst opened this issue Feb 27, 2020 · 0 comments
Open

queryHits()/subjectHits() for HitsList throw error #63

FelixErnst opened this issue Feb 27, 2020 · 0 comments
Assignees

Comments

@FelixErnst
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants