getian107 / PRScsx

Cross-population polygenic prediction
MIT License
69 stars 20 forks source link

Estimating PRS uncertainty #25

Closed mglev1n closed 3 weeks ago

mglev1n commented 1 year ago

LDpred2 allows the user to return samples from the posterior, which can then be combined with genotypes in order to estimate individual-level uncertainty in polygenic risk (https://privefl.github.io/bigsnpr/articles/prs_uncertainty.html and https://rdcu.be/c6bmI). Since PRScs/PRScsx also use MCMC, is it possible to enable similar functionality? It seems like this section is probably relevant: https://github.com/getian107/PRScsx/blob/5f27ff89576b9b052bb4a25ecd165e383ffb113d/mcmc_gtb.py#L111

getian107 commented 1 year ago

Yes- The output file will be large if we write out all posterior samples but technically it's straightforward. I can incorporate this functionality in the next release.

getian107 commented 6 months ago

Just a quick note that PRScs now has the option to output all posterior samples, which can be used to estimate PRS uncertainty.