privefl / bigsnpr

R package for the analysis of massive SNP arrays.
https://privefl.github.io/bigsnpr/
186 stars 44 forks source link

Error in { : task 1 failed - "Incorrect number of arguments (17), expecting 16 for '_bigsnpr_ldpred2_gibbs_auto'" #467

Closed jfertaj closed 5 months ago

jfertaj commented 10 months ago

Hi,

I am using LDpred2-auto: automatic model but I got an error. I have used the infinitesimal model without problems.

The error is the following:

Error in { :
  task 1 failed - "Incorrect number of arguments (17), expecting 16 for '_bigsnpr_ldpred2_gibbs_auto'"

And the code I am using is this one:

multi_auto <- snp_ldpred2_auto(
        corr,
        df_beta,
        h2_init = h2_est,
        vec_p_init = seq_log(1e-4, 0.2, length.out = 30),
        use_MLE = FALSE,
        ncores = 4,
        allow_jump_sign = FALSE, shrink_corr = 0.95
        )

Any suggestions? Thanks

P.S I am using this version

> packageVersion("bigsnpr")
[1] '1.12.6'

UPDATE

If i run the code with just one core it works, so it seems there is a problem when going in parallel

privefl commented 10 months ago

Have you updated the package recently? I think something in the installation might not have worked. Please close all R sessions, reinstall, and try again.

privefl commented 7 months ago

Any update on this?