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

Sample overlap #71

Closed
zhaozhongzhu opened this issue Feb 22, 2017 · 7 comments
Closed

Sample overlap #71

zhaozhongzhu opened this issue Feb 22, 2017 · 7 comments

Comments

@zhaozhongzhu
Copy link

Hello
On the LDSC website, it mentioned for estimating rg, I should use both the --intercept-h2 and --intercept-gencov flags to constrain the single-trait and cross-trait LD Score regression intercepts, respectively.

So my first question is what value I should constraint for --intercept-h2?

My second question is how to estimate phenotypic correlation p for calculating ρNs/sqrt(N1N2)?

./ldsc.py
--rg as.sumstats.gz,al.sumstats.gz,br.sumstats.gz
--ref-ld-chr baseline_ld_chr/base.${chr}@
--w-ld-chr baseline_ld_chr/base.${chr}@
--intercept-h2 ????
--intercept-gencov 0,????
--out as_res

Thank you!

@rkwalters
Copy link
Collaborator

rkwalters commented Feb 22, 2017 via email

@zhaozhongzhu
Copy link
Author

Hi Raymond
Thank you for the response! In my situation, I have a lot of overlap samples between traits. This is why I consider constraint the intercept based on the description in LDSC Nature Genetics paper.

  1. For estimating phenotypic correlation, do you have recommendations on what method to use, such as pearson, etc...
  2. for constraining --intercept-h2, if there is sample overlap, what value should I put in here?

./ldsc.py
--rg as.sumstats.gz,al.sumstats.gz,br.sumstats.gz
--ref-ld-chr baseline_ld_chr/base.${chr}@
--w-ld-chr baseline_ld_chr/base.${chr}@
--intercept-h2 ????
--intercept-gencov 0,????
--out as_res

@rkwalters
Copy link
Collaborator

rkwalters commented Feb 22, 2017 via email

@zhaozhongzhu
Copy link
Author

Hi Raymond
Thank you for the great explanation! When you say "leave it unconstrained and ldsc will freely estimate the intercept.", do you mean ldsc can use the intercept that it estimates by itself and then automatically adjust to the Rg calculation even though I don't choose --constraint intercept option? I also noticed there is an option called "--no intercept", is this different from not putting any intercept command in the code?

Best
ZZ

@rkwalters
Copy link
Collaborator

rkwalters commented Feb 28, 2017 via email

@zhaozhongzhu
Copy link
Author

Thank you Raymond!

@rkwalters
Copy link
Collaborator

Hi,
I'm closing this issue thread as resolved, but 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

2 participants