chr1swallace/coloc

runsusie error report: Error in (function (z, R, n, bhat, shat, var_y, z_ld_weight = 0, estimate_residual_variance = FALSE, : The dimension of R (0 x 0) does not agree with expected (500 x 500)

phyliciasy opened this issue · 2 comments

I tidy the datainput and check the data structure based on the example dataset in this link:
https://cran.r-project.org/web/packages/coloc/vignettes/a06_SuSiE.html

And my dataset (MY_LIST) passed the test: check_dataset(D4,req="LD")

And when I run:
S1=runsusie(MY_LIST)

I have an error report:
Error in (function (z, R, n, bhat, shat, var_y, z_ld_weight = 0, estimate_residual_variance = FALSE, :
The dimension of R (0 x 0) does not agree with expected (500 x 500)

I do not know why it does not work. Please help me if possible. Thanks a lot.

I suspect your rows/columns of your LD matrix are not named. I should make check_dataset() check for that