privefl / bigsnpr

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

NA in LDSC #427

Closed SoleilChenxu closed 1 year ago

SoleilChenxu commented 1 year ago

Hi, I was running ldsc based your tutorial, the code is

ldsc<- snp_ldsc(ld, length(ld), chi2 = (df_beta$beta / df_beta$beta_se)^2,
                                sample_size = df_beta$n_eff, blocks = NULL)

I received the error of "Error in if (max(abs(pred - pred0)) < 1e-06) break : missing value where TRUE/FALSE needed"

Is there anything I could do to fix?

privefl commented 1 year ago

I think this has been reported in at least two other issues here. Have you looked at those? If yes, how is the problem you have different then?

privefl commented 1 year ago

Any update on this?

SoleilChenxu commented 1 year ago

Any update on this?

Thanks for following up. I am checking today. Will keep you updated!

privefl commented 1 year ago

Any update on this?