I can read an indexed, tar.gz vcf file remotely from macos, but not on linux nor from a current docker devel image.
The file is served by a Flask CORS range-enabled webserver. Problem can be reproduced with the 5 lines shown below, which succeed on macos, fails in docker with
[E::hts_open_format] Failed to open file https://igv-data.systemsbiology.net/static/ampad/test/chr2.vcf.gz
roi <- GRanges(seqnames="2", IRanges(start=127084188, end=127084203))
tabixFile <- TabixFile("https://igv-data.systemsbiology.net/static/ampad/test/chr2.vcf.gz")
x <- readVcf(tabixFile, "hg19", roi)
dim(geno(x)$GT) # 2 1894
works fine with macos (first sessionInfo()) fails with docker & linux (second session Info. error message in the latter:
*[E::hts_open_format] Failed to open file https://igv-data.systemsbiology.net/static/ampad/test/chr2.vcf.gz
Error in open.BcfFile(BcfFile(file, character(0), ...)) :
'open' VCF/BCF failed
filename: https://igv-data.systemsbiology.net/static/ampad/test/chr2.vcf.gz*
sessionInfo( ) # macos. which runs without error
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] VariantAnnotation_1.38.0 Rsamtools_2.8.0
[3] Biostrings_2.60.1 XVector_0.32.0
[5] SummarizedExperiment_1.22.0 Biobase_2.52.0
[7] GenomicRanges_1.44.0 GenomeInfoDb_1.28.1
[9] IRanges_2.26.0 S4Vectors_0.30.0
[11] MatrixGenerics_1.4.0 matrixStats_0.59.0
[13] BiocGenerics_0.38.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 lattice_0.20-44 prettyunits_1.1.1
[4] png_0.1-7 assertthat_0.2.1 digest_0.6.27
[7] utf8_1.2.1 BiocFileCache_2.0.0 R6_2.5.0
[10] RSQLite_2.2.7 httr_1.4.2 pillar_1.6.1
[13] zlibbioc_1.38.0 rlang_0.4.11 GenomicFeatures_1.44.0
[16] progress_1.2.2 curl_4.3.2 rstudioapi_0.13
[19] blob_1.2.1 Matrix_1.3-4 BiocParallel_1.26.1
[22] stringr_1.4.0 RCurl_1.98-1.3 bit_4.0.4
[25] biomaRt_2.48.2 DelayedArray_0.18.0 rtracklayer_1.52.0
[28] compiler_4.1.0 pkgconfig_2.0.3 tidyselect_1.1.1
[31] KEGGREST_1.32.0 tibble_3.1.2 GenomeInfoDbData_1.2.6
[34] XML_3.99-0.6 fansi_0.5.0 crayon_1.4.1
[37] dplyr_1.0.7 dbplyr_2.1.1 GenomicAlignments_1.28.0
[40] bitops_1.0-7 rappdirs_0.3.3 grid_4.1.0
[43] lifecycle_1.0.0 DBI_1.1.1 magrittr_2.0.1
[46] stringi_1.6.2 cachem_1.0.5 xml2_1.3.2
[49] ellipsis_0.3.2 filelock_1.0.2 vctrs_0.3.8
[52] generics_0.1.0 rjson_0.2.20 restfulr_0.0.13
[55] tools_4.1.0 bit64_4.0.5 BSgenome_1.60.0
[58] glue_1.4.2 purrr_0.3.4 hms_1.1.0
[61] yaml_2.2.1 fastmap_1.1.0 AnnotationDbi_1.54.1
[64] memoise_2.0.0 BiocIO_1.2.0
sessionInfo() from today's docker devel, runs with openBcfFile error shown above
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats4 stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] VariantAnnotation_1.39.0 Rsamtools_2.9.1
[3] Biostrings_2.61.1 XVector_0.33.0
[5] SummarizedExperiment_1.23.1 Biobase_2.53.0
[7] GenomicRanges_1.45.0 GenomeInfoDb_1.29.3
[9] IRanges_2.27.0 S4Vectors_0.31.0
[11] MatrixGenerics_1.5.1 matrixStats_0.59.0
[13] BiocGenerics_0.39.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 lattice_0.20-44 prettyunits_1.1.1
[4] png_0.1-7 assertthat_0.2.1 digest_0.6.27
[7] utf8_1.2.1 BiocFileCache_2.1.1 R6_2.5.0
[10] RSQLite_2.2.7 httr_1.4.2 pillar_1.6.1
[13] zlibbioc_1.39.0 rlang_0.4.11 GenomicFeatures_1.45.0
[16] progress_1.2.2 curl_4.3.2 rstudioapi_0.13
[19] blob_1.2.1 Matrix_1.3-4 BiocParallel_1.27.1
[22] stringr_1.4.0 RCurl_1.98-1.3 bit_4.0.4
[25] biomaRt_2.49.2 DelayedArray_0.19.1 rtracklayer_1.53.0
[28] compiler_4.1.0 pkgconfig_2.0.3 tidyselect_1.1.1
[31] KEGGREST_1.33.0 tibble_3.1.2 GenomeInfoDbData_1.2.6
[34] XML_3.99-0.6 fansi_0.5.0 crayon_1.4.1
[37] dplyr_1.0.7 dbplyr_2.1.1 GenomicAlignments_1.29.0
[40] bitops_1.0-7 rappdirs_0.3.3 grid_4.1.0
[43] lifecycle_1.0.0 DBI_1.1.1 magrittr_2.0.1
[46] stringi_1.6.2 cachem_1.0.5 xml2_1.3.2
[49] ellipsis_0.3.2 filelock_1.0.2 vctrs_0.3.8
[52] generics_0.1.0 rjson_0.2.20 restfulr_0.0.13
[55] tools_4.1.0 bit64_4.0.5 BSgenome_1.61.0
[58] glue_1.4.2 purrr_0.3.4 hms_1.1.0
[61] yaml_2.2.1 parallel_4.1.0 fastmap_1.1.0
[64] AnnotationDbi_1.55.1 memoise_2.0.0 BiocIO_1.3.0