Main function for running LCV. Obtained from https://github.com/lukejoconnor/LCV
1 2 3 4 5 6 7 8 9 10 11 12 13 |
ell |
Mx1 vector of LD scores; |
z.1 |
Mx1 vector of estimated marginal per-normalized-genotype effects on trait 1 (or Z scores; invariant to scaling); |
z.2 |
Mx2 vector of effects on trait2; |
no.blocks, |
number of jackknife blocks; |
crosstrait.intercept |
0 if crosstrait LDSC intercept should be fixed and 1 otherwise; |
ldsc.intercept |
0 if LDSC intercept should be fixed and 1 otherwise (1 is recommended); |
weights |
Mx1 vector of regression weights; |
sig.threshold, |
threshold above which to discard chisq statistics for the purpose of estimating the LDSC intercept; large-effect SNPs discarded above sig_threshold*mean(z.x^2); |
intercept.12 |
covariance between sampling errors for Z1 and Z2, only needed if crosstrait_intercept=0 If the 2 GWAS are disjoint, this can be set to zero. |
n1 |
sample size for trait 1, only needed if ldsc.intercept=1; |
n2 |
sample size for trait 2, only needed if ldsc.intercept=1; |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.