stephenslab / susieR

R package for "sum of single effects" regression.
https://stephenslab.github.io/susieR
Other
172 stars 43 forks source link

Dimension mismatch in N2finemapping data #165

Closed aksarkar closed 2 years ago

aksarkar commented 2 years ago

The dimensions of the genotype matrix and the positions in the data set do not match.

> library(susieR)
> data('N2finemapping')
> dim(N2finemapping$X)
[1]  574 1002
> dim(N2finemapping$pos)
[1] 5207
> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Amazon Linux 2

Matrix products: default
BLAS/LAPACK: /home/ec2-user/mambaforge3/envs/ideas/lib/libmkl_rt.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=en_US.UTF-8   
 [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] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] susieR_0.12.10

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.8.3       magrittr_2.0.3     tidyselect_1.1.2   munsell_0.5.0     
 [5] colorspace_2.0-3   lattice_0.20-45    R6_2.5.1           rlang_1.0.2       
 [9] fansi_1.0.3        plyr_1.8.7         dplyr_1.0.9        tools_4.1.3       
[13] grid_4.1.3         gtable_0.3.0       utf8_1.2.2         irlba_2.3.5       
[17] cli_3.2.0          ellipsis_0.3.2     matrixStats_0.61.0 tibble_3.1.6      
[21] lifecycle_1.0.1    crayon_1.5.1       mixsqp_0.3-43      Matrix_1.4-1      
[25] purrr_0.3.4        ggplot2_3.3.5      vctrs_0.4.1        glue_1.6.2        
[29] compiler_4.1.3     pillar_1.7.0       generics_0.1.2     scales_1.1.1      
[33] reshape_0.8.8      pkgconfig_2.0.3   
gaow commented 2 years ago

Thanks @aksarkar I know exactly how that happened. Now it is fixed.