Open jajoko opened 2 years ago
Sorry, this problem resolved when I reinstalled the R & Rstudio, and reinstalled all packages. Should've tried that first.
Sorry, this problem resolved when I reinstalled the R & Rstudio, and reinstalled all packages. Should've tried that first.
Could you show your sessionInfo() after you reinstalled R for me? I am trapped with a similar problem.
Sorry! I forgot to post this:
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)
Matrix products: default
locale:
[1] LC_COLLATE=Finnish_Finland.1252 LC_CTYPE=Finnish_Finland.1252 LC_MONETARY=Finnish_Finland.1252 LC_NUMERIC=C
[5] LC_TIME=Finnish_Finland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] workflowr_1.7.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 rstudioapi_0.13 knitr_1.39 whisker_0.4 magrittr_2.0.3
[6] genetics.binaRies_0.0.0.9000 getPass_0.2-2 R6_2.5.1 rlang_1.0.3 fastmap_1.1.0
[11] stringr_1.4.0 httr_1.4.3 tools_4.2.1 xfun_0.31 cli_3.3.0
[16] git2r_0.30.1 htmltools_0.5.2 yaml_2.3.5 digest_0.6.29 rprojroot_2.0.3
[21] processx_3.6.1 ieugwasr_0.1.5 callr_3.7.1 later_1.3.0 promises_1.2.0.1
[26] fs_1.5.2 ps_1.7.1 glue_1.6.2 evaluate_0.15 rmarkdown_2.14
[31] stringi_1.7.6 compiler_4.2.1 httpuv_1.6.5
Sorry! I forgot to post this:
R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 14393) Matrix products: default locale: [1] LC_COLLATE=Finnish_Finland.1252 LC_CTYPE=Finnish_Finland.1252 LC_MONETARY=Finnish_Finland.1252 LC_NUMERIC=C [5] LC_TIME=Finnish_Finland.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] workflowr_1.7.0 loaded via a namespace (and not attached): [1] Rcpp_1.0.8.3 rstudioapi_0.13 knitr_1.39 whisker_0.4 magrittr_2.0.3 [6] genetics.binaRies_0.0.0.9000 getPass_0.2-2 R6_2.5.1 rlang_1.0.3 fastmap_1.1.0 [11] stringr_1.4.0 httr_1.4.3 tools_4.2.1 xfun_0.31 cli_3.3.0 [16] git2r_0.30.1 htmltools_0.5.2 yaml_2.3.5 digest_0.6.29 rprojroot_2.0.3 [21] processx_3.6.1 ieugwasr_0.1.5 callr_3.7.1 later_1.3.0 promises_1.2.0.1 [26] fs_1.5.2 ps_1.7.1 glue_1.6.2 evaluate_0.15 rmarkdown_2.14 [31] stringi_1.7.6 compiler_4.2.1 httpuv_1.6.5
Thanks!I think I found the real reason. The Plink.exe file is broken. 手动下载那个plink.exe,然后放进指定路径就行了
I would wish to extract LD matrix using ieugwasr::ld_matrix. However, I am unable to do so, because ld_matrix does not write a .bim file to my tmp folder. A reproducible example as follows:
Output:
traceback()
givesTo ensure that I got the path to bfile right, I used setwd() to set the path to "path/to/LD/reference/local/dataset/", and
list.files()
givesThe Temp-folder indeed does not have the stated .bim-file. Instead, it has a file with the same name but without the .bim extension that includes the names of the variants. When looking at the
ld_matrix_local()
, which is used byld_matrix()
when plink references are given locally, the variants seem to pass the first part where tmp file without a file extension is madebut seems to fail the second part where plink is called to make a .bim file
And ultimately fails when trying to read the .bim file
The same seems to happen with the second part of the
ld_matrix_local()
that makes a .ld file from the same fileWhat am I doing wrong? I succesfully reinstalled
genetics.binaRies
usingdevtools::install_github()
just in case, because initially I got some error messages when installing it usingremotes::install_github("MRCIEU/genetics.binaRies")
. Is this a problem with ieugwasr or withgenetics.binaries
?sessionInfo()