choishingwan / PRS-Tutorial

A tutorial on how to run basic polygenic risk score analysis
MIT License
71 stars 113 forks source link

LD-pred 2 issue, All NAs in PRS file #51

Open ShoaibBME opened 1 year ago

ShoaibBME commented 1 year ago

Hi Sam, I am using LD pred 2 and used this tutorial, https://choishingwan.github.io/PRS-Tutorial/ldpred/ Actually, I have run the entire code with no errors but at the last step, where it is required to select one model. I am getting all NAs in the final PRS (pred_file) file, Same with other models, can you mention how to fix this? Thanks @choishingwan if(is.null(obj.bigSNP)){ obj.bigSNP <- snp_attach("EUR.QC.rds") } genotype <- obj.bigSNP$genotypes

calculate PRS for all samples

ind.test <- 1:nrow(genotype) pred_inf <- big_prodVec( genotype, beta_inf, ind.row = ind.test, ind.col = info_snp$_NUM_ID_)

choishingwan commented 1 year ago

Are you using your data or the one that's provided? And is your LDpred2 version the same as the one stated in the tutorial? The tutorial is more for introduction, and I haven't updated it to the latest version of LDpred2. For software specific query, I'd encourage you to contact the authors

Sam

On Mon, Jun 26, 2023, 11:55 AM ShoaibBME @.***> wrote:

Hi Sam, I am using LD pred 2 and used this tutorial, https://choishingwan.github.io/PRS-Tutorial/ldpred/ Actually, I have run the entire code with no errors but at the last step, where it is required to select one model. I am getting all NAs in the final PRS (pred_file) file, Same with other models, can you mention how to fix this? Thanks @choishingwan https://github.com/choishingwan if(is.null(obj.bigSNP)){ obj.bigSNP <- snp_attach("EUR.QC.rds") } genotype <- obj.bigSNP$genotypes calculate PRS for all samples

ind.test <- 1:nrow(genotype) pred_inf <- big_prodVec( genotype, beta_inf, ind.row = ind.test, ind.col = info_snp$_NUMID)

— Reply to this email directly, view it on GitHub https://github.com/choishingwan/PRS-Tutorial/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTRYT5NJRB4JAMZQVH3BLXNGWI7ANCNFSM6AAAAAAZULX4GI . You are receiving this because you were mentioned.Message ID: @.***>