Genetic correlation (rg) is the central cross-trait statistic in causal genomics: a single number summarizing how much two traits share genetic architecture. It is computed from GWAS summary statistics (cross-trait LDSC, HDL, LAVA, rho-HESS, Popcorn) or individual-level genotypes (GREML-bivariate), and underpins multi-trait analyses (GenomicSEM, MTAG), latent-causal inference (LCV gcp), and Mendelian randomization validity assessment (CHP-aware sensitivity is required whenever rg between exposure and outcome is large).
This skill covers global rg, local rg per locus, trans-ancestry rg, and the operational rules for choosing among methods. The two postdoc-level traps are (a) misreading the cross-trait LDSC intercept as a bias on rg (it absorbs sample overlap without contaminating the rg estimate) and (b) running HDL on overlapping cohorts (HDL is biased under any non-trivial overlap).
SNP, A1, A2, N, BETA (or Z), SE, P, ideally EAFeur_w_ld_chr/ from alkesgroup; non-EUR: matched references at the same site)Tell the AI agent what to estimate:
"Compute genetic correlation between LDL-cholesterol and coronary artery disease using cross-trait LDSC with the EUR reference panel. Report rg, SE, p-value, and the gcov intercept. Explain whether the intercept indicates sample overlap and whether that affects the rg estimate."
"Both GWAS come from non-overlapping cohorts (verified by participant IDs). Use HDL for maximum precision and report rg, SE, and the variance reduction vs LDSC. Confirm overlap is < 5% before running."
"Global LDSC rg between major depressive disorder and rheumatoid arthritis is ~0. Run LAVA across the ~2495 EUR LDetect loci, filter loci with significant univariate local h2 in both traits, and report Bonferroni-significant bivariate local rg. Annotate any hit loci with GWAS catalog and pathway enrichment."
"Compute genetic correlation between EUR-ancestry and EAS-ancestry type-2 diabetes GWAS using Popcorn. Report rho_ge (effect correlation) and rho_gi (impact correlation). Explain whether rho_ge < 1 reflects population-specific causal architecture or methodological artifact."
"Before running Mendelian randomization of BMI on cardiovascular disease, compute LDSC rg. If |rg| > 0.3, add CAUSE (or LHC-MR) to the sensitivity battery because IVW, Egger, and MR-PRESSO are all blind to correlated horizontal pleiotropy. Report rg + intercept alongside the MR results."
"Genetic correlation between two traits is 0.6. Run LCV to estimate gcp; interpret gcp = 0 as pure correlation (no partial causation in tested direction) and gcp near 1 as full causation. Use the LCV scripts on LDSC-merged sumstats."
"I have rg estimates from both LDSC and HDL that disagree. Diagnose by inspecting LDSC intercept and verifying sample overlap. If overlap is non-trivial, report LDSC as primary and exclude HDL; if overlap is verified < 5%, prefer HDL as primary (lower variance)."
"Run LAVA's run.pcor() to estimate the local partial rg between schizophrenia and bipolar disorder (as the
targetpair) conditional on major depressive disorder (phenos), using up to 4 conditioning traits before identification fails."
munge_sumstats.py (LDSC) to a harmonized format restricted to HapMap3 SNPsHDL.rg with N0 = 0 (or the overlap count)eur_w_ld_chr/ for EUR GWAS, EAS / AFR for non-EUR; using EUR LD scores on non-EUR sumstats produces inflated intercepts and unreliable rg.run.univ() first on every locus and filter at p < 0.05 / N_loci in BOTH traits before running run.bivar(). Skipping this filter produces spurious boundary-case rg values.Insufficient SNPs at locus errors.abdenlab/ldsc-python3 fork (v2.0.0) for a working Python 3 CLI; belowlab/ldsc v3.0.1 README states the --h2/--rg/--h2-cts CLI is currently broken (use Docker jtb114/ldsc:latest for the belowlab fallback). The original bulik/ldsc repository has not been updated since 2019.| Method | Per-pair runtime | Hardware |
|---|---|---|
| LDSC rg | ~1 min | laptop |
| HDL.rg | ~10-30 sec | laptop |
| LAVA bivariate (full ~2495 loci) | ~hours | server (parallelizable by chromosome) |
| SUPERGNOVA | ~hours | server |
| Popcorn | ~minutes | laptop |
| GenomicSEM ldsc() (multi-trait) | minutes to ~hour | depends on trait count |
| rho-HESS | ~30-60 min per chromosome | server |
| GREML-bivariate (GCTA) | hours to days | server with large RAM |
causal-genomics/mendelian-randomization - Primary causal estimation; |rg| > 0.3 motivates CHP-aware sensitivity causal-genomics/pleiotropy-detection - CAUSE, LHC-MR, LCV; CHP-aware MR battery triggered by high rg causal-genomics/heritability-partitioning - Partner method; LDSC stack for univariate h2 and partitioned enrichment causal-genomics/genomic-sem - GenomicSEM ldsc() is the multivariate extension of bivariate LDSC causal-genomics/colocalization-analysis - Locus-level shared causal variant; complements LAVA hits causal-genomics/fine-mapping - Credible-set construction at LAVA-significant loci causal-genomics/mediation-analysis - MVMR for X -> M -> Y after rg motivates causal hypothesis population-genetics/association-testing - GWAS summary statistics underlying all rg methods clinical-biostatistics/effect-measures - Translate genetic-architecture findings to clinical effect measures