Skip to content
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

Error: rg out of bounds #78

Closed
ghost opened this issue Mar 30, 2017 · 5 comments
Closed

Error: rg out of bounds #78

ghost opened this issue Mar 30, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 30, 2017

Hi,

I'm using ldsc with two populations with the same phenotype. The qc and heritability steps are done correctly. However, when I run genetic correlation, the software doesn't calculate it. Here is the example:

Heritability of phenotype 1

Total Observed scale h2: 0.2318 (0.0145)
Lambda GC: 1.2464
Mean Chi^2: 1.2902
Intercept: 1.0276 (0.01)
Ratio: 0.0953 (0.0346)

Heritability of phenotype 2/2

Total Observed scale h2: 0.1568 (0.0258)
Lambda GC: 1.071
Mean Chi^2: 1.079
Intercept: 1.0114 (0.0077)
Ratio: 0.1445 (0.0981)

Genetic Covariance

Total Observed scale gencov: 0.2374 (0.0144)
Mean z1*z2: 0.5315
Intercept: 0.3695 (0.0061)

Genetic Correlation

Genetic Correlation: nan (nan) (rg out of bounds)
Z-score: nan (nan) (rg out of bounds)
P: nan (nan) (rg out of bounds)
WARNING: rg was out of bounds.
This often means that h2 is not significantly different from zero.

Summary of Genetic Correlation Results
p1 p2 rg se z p h2_obs h2_obs_se h2_int h2_int_se gcov_int gcov_int_se
da.sumstats.gz temp8.sumstats.gz 1.2452 0.0763 16.3274 6.2984e-60 0.1568 0.0258 1.0114 0.0077 0.3695 0.0061

I have tried the two files separately with other files (with different phenotype) and the program does calculate the genetic correlation. Thus, the files seem to be correct as qc and heritability can be calculated and also the genetic correlation with another file but not between these two files.

Could you help me?

Many thanks in advance!!!

Paula

@rkwalters
Copy link
Collaborator

rkwalters commented Mar 30, 2017 via email

@ghost
Copy link
Author

ghost commented Apr 4, 2017

Hi Raymond,

Many thanks for your quick answer!!!
I tried to run ldsc with two files with the same population (only to ensure the programme was running well) and it worked, giving a rg estimate of 1 (as expected). In this example, the overlap between individuals was 100%. If there are repeated people between my other files (but the overlap is <100%), why rg is >1?

Thanks again!!!

Paula

@rkwalters
Copy link
Collaborator

rkwalters commented Apr 5, 2017 via email

@ghost
Copy link
Author

ghost commented Apr 5, 2017

Hi Raymond,

I've checked the populations and, as expected, there is some overlap between them. Thank you for explaining me how the estimate is calculated.

Thank you very much!!!

Kind regards,
Paula

@rkwalters
Copy link
Collaborator

Hi Paula,
Closing this thread as resolved. If you have any more issues, feel free to follow up here or via the google group.
Cheers,
Raymond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant