bvilhjal / ldpred

MIT License
96 stars 57 forks source link

LDpred score script #99

Closed afrahshafquat closed 4 years ago

afrahshafquat commented 5 years ago

Hello, Thanks for creating this! I am trying to compute the final scores for the validation dataset and I have a couple of questions on how the scores are computed:

Thanks so much for your help!

afrahshafquat commented 5 years ago

Following up on the second question:

bvilhjal commented 4 years ago

I apologize for the slow reply on this.

Regarding your questions, LDpred assumes converts p-values to z-scores internally, which in case of a binary trait can be thought of some sort of liablity scale. Hence it can be applied to binary and quantitative traits. However, it only reports R2 in the score step.

The split-by-chromosome flag allows you to validate in plink files that are partitioned by chromosomes. This is probably poorly implemented feature, and I should actually just remove it.

The --f/--p/--r2 flags in the score are used to find the files made in the previous step. They are only necessary if you used non-default values in preceding step.

Lastly, yes P+T uses adjusted log OR, so that they can be added up.

Best, Bjarni