privefl / bigsnpr

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

Using own correlation matrix of LD values. #407

Closed boseb closed 1 year ago

boseb commented 1 year ago

Hi Florian, I am using a correlation matrix of LD values (dsCMatrix) made from our own study genotype, rather than using reference LD in the below function: snp_ldsc2(My.Corr, df_beta, blocks = LDSC_blocks, intercept = NULL, ncores = ncores) Could you please confirm if I can do this?

Thanks, Bose

privefl commented 1 year ago

It will compute the LD scores from your correlation matrix. If you have enough variants, this should be fine.

boseb commented 1 year ago

Great, thanks for confirming.