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

import from GDS fails #5

Open
cmatKhan opened this issue Apr 16, 2024 · 5 comments
Open

import from GDS fails #5

cmatKhan opened this issue Apr 16, 2024 · 5 comments

Comments

@cmatKhan
Copy link

Hi all. I am trying to import data from a VCF produced by GATK Haplotypecaller. The VarientExperiment constructor fails from both VCF or GDS. Reproduced with the GDS:

ve = VariantExperiment::makeVariantExperimentFromGDS(
  'all_recomb_results_all_wg_c8_minimal.gds'
)
Error in vapply(nds, function(x) .get_gdsnode_desp(file, x, "dim"), integer(1)) : 
  values must be length 1,
 but FUN(X[[15]]) result is length 2

I get the same error when I use showAvailable.

NOTE: This is a .gds file. But, github requires it has one of a set of extensions, hence the .txt. Just ignore that. I think it works just to add the extension, but I'm happy to share via email if it doesn't.

all_recomb_results_all_wg_c8_minimal.gds.txt

@Liubuntu
Copy link
Collaborator

Liubuntu commented Apr 16, 2024 via email

@cmatKhan
Copy link
Author

I see -- so is a temporary solution to downgrade GDSArray?

@Liubuntu
Copy link
Collaborator

Liubuntu commented Apr 16, 2024 via email

@Liubuntu
Copy link
Collaborator

Liubuntu commented Apr 17, 2024 via email

@cmatKhan
Copy link
Author

cmatKhan commented May 8, 2024

I'm getting the same error. I have 1.18.0 installed, which biocmanager seems to think is the current version.

> BiocManager::install('VariantExperiment', version = '3.19', Ncpus=10)
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
    CRAN: https://cloud.r-project.org
Bioconductor version 3.19 (BiocManager 1.30.23), R 4.4.0 (2024-04-24)
Installation paths not writeable, unable to update packages
  path: /usr/lib/R/library
  packages:
    codetools, lattice, MASS, Matrix, nlme, spatial, survival
Warning message:
package(s) not installed when version(s) same as or greater than current; use `force = TRUE` to re-install: 'VariantExperiment' 
R version 4.4.0 (2024-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: America/Chicago
tzcode source: system (glibc)

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] lubridate_1.9.3             forcats_1.0.0               stringr_1.5.1               dplyr_1.1.4                
 [5] purrr_1.0.2                 readr_2.1.5                 tidyr_1.3.1                 tibble_3.2.1               
 [9] ggplot2_3.5.1               tidyverse_2.0.0             VariantExperiment_1.18.0    SummarizedExperiment_1.34.0
[13] Biobase_2.64.0              GenomicRanges_1.56.0        GenomeInfoDb_1.40.0         IRanges_2.38.0             
[17] MatrixGenerics_1.16.0       matrixStats_1.3.0           S4Vectors_0.42.0            BiocGenerics_0.50.0        

loaded via a namespace (and not attached):
 [1] gtable_0.3.5            SeqArray_1.44.0         lattice_0.22-5          tzdb_0.4.0              vctrs_0.6.5            
 [6] tools_4.4.0             generics_0.1.3          parallel_4.4.0          fansi_1.0.6             pkgconfig_2.0.3        
[11] Matrix_1.6-5            lifecycle_1.0.4         GenomeInfoDbData_1.2.12 compiler_4.4.0          Biostrings_2.72.0      
[16] munsell_0.5.1           pillar_1.9.0            crayon_1.5.2            DelayedArray_0.30.0     abind_1.4-5            
[21] DelayedDataFrame_1.20.0 digest_0.6.35           tidyselect_1.2.1        stringi_1.8.4           grid_4.4.0             
[26] colorspace_2.1-0        cli_3.6.2               SparseArray_1.4.1       magrittr_2.0.3          S4Arrays_1.4.0         
[31] utf8_1.2.4              SNPRelate_1.38.0        withr_3.0.0             scales_1.3.0            UCSC.utils_1.0.0       
[36] bit64_4.0.5             timechange_0.3.0        GDSArray_1.24.0         XVector_0.44.0          httr_1.4.7             
[41] bit_4.0.5               hms_1.1.3               rlang_1.1.3             glue_1.7.0              gdsfmt_1.40.0          
[46] vroom_1.6.5             rstudioapi_0.16.0       jsonlite_1.8.8          R6_2.5.1                zlibbioc_1.50.0   

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