-
Notifications
You must be signed in to change notification settings - Fork 91
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
Why computing the R2 between the trait and the PRS is different from PRSIce results? #324
Comments
There's no way an r2 will be negative as it is the r^2
…On Wed, Jun 14, 2023, 3:29 AM Antonio Nappi ***@***.***> wrote:
I don't understand why, when I compute the R2 value between my trait and
the PRS obtained with PRSice the result is very different from the one
reported by PRSice, e.g. I obtain a value of -0.47 while PRSice, in its
summary file, reports a PRS.R2 of 0.075
—
Reply to this email directly, view it on GitHub
<#324>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJTRYWKBCTNKDXDPXHUC6DXLFR5RANCNFSM6AAAAAAZF5NZB4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I am using the r2_score function from scikit-learn and according to the documentation |
all your p-value is 0, which can lead to the high-resolution plot (which operates on -log10 p) to look abnormal. As for the R2, the way we calculated it was 1 - (1 - full model R2) / (1 - null model R2). I am not sure how you implemented your python script and I'd guess there's some error in how you used the r2_score function that might have lead to this drastic difference in results. |
Hey, I got the error with the R2, now it's fine. for the pvalue that are all 0, do you think that it's an error? The trait that I am studying is BMI |
It is possible for BMI to have p-value of 0 as the GWAS is powerful, though I will also try and look out for sample overlap, which can sometimes lead to inflation in test statistics. |
I don't understand why, when I compute the R2 value between my trait and the PRS obtained with PRSice the result is very different from the one reported by PRSice, e.g. I obtain a value of -0.47 while PRSice, in its summary file, reports a PRS.R2 of 0.075. I report here also the plots generated by PRSice. The plots looks strange, how should I interpret them?
The text was updated successfully, but these errors were encountered: