-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use result of lassosum to plink #17
Comments
Following on this thread. If developers can support output the adjusted beta, that would be the best. We can score by plink for support new file format or even dosage format. Best regards |
lassosum and plink are not doing the same thing so I don't understand why you would expect the same result from lassosum and plink. |
What do you mean by adjusted beta? From your code, you have generated beta by beta <- v$best.beta. That is correct. Furthermore, out$keep.test will give you a logical vector to indicate which SNPs in the test .bed file map to the betas. |
We don't expect the plink and lassosum do the same thing. We just want to use plink's scoring function to use lassosum's adjusted betas. Only the last step. Thanks much for the prompt reply. Best regards |
Can you explain what you mean by "adjusted beta" and how it is supposed to differ from "beta"? |
Will the lassosum take in the GWAS summary (univariate beta) and LD structure between snps to update the univariate beta to a new beta (adjusted beta) to control LD between SNPs. And then time the new beta (adjusted beta) with effective allele dosage (0/1/2) to have the PRS? Apologize if my understanding is wrong. Then our purpose is to use the new beta (adjusted beta) to calculate individual PRS by plink other than by lassosum, picking up the best parameter combination by lassosum is OK. Best regards |
If |
What I understand from the question:
|
@privefl, I observed the same thing a while ago as you did. Best regards |
I use the |
Hi, Following on the same thread, would it be possible to export the "v$best.beta" along with their corresponding SNP ids, a1 and a2 alleles? I managed to export the adjusted betas and the SNPids, however I'm unsure about the a1 that is used by lassosum. Does it swap the alleles while adjusting the betas? If yes, is there a way to export it too? Best, |
Hi, Best, |
Yes. If |
Incidentally, if you know the A1,A2 of the bfile is the same as that in |
Yes, it seemed to work. Thanks a lot!! |
I'm trying to export the the final pgs using the option: pgs(out$test.bfile, target.res$best.beta) However, I'm getting the following error. How to resolve this? TIA Error in .pgs.default(weights = weights, bfile = bfile, ...) : |
Hi,
When I run the example of lassosum, it is difficult for me to get the same result from lassosum and plink. lassosum code is:
plink code is:
Result of lassosum:
Result of plink:
Could you tell me the mistake? Thanks!
Best,
Sheng
The text was updated successfully, but these errors were encountered: