Skip to content

Commit 10c4f93

Browse files
authored
Edit README for clarity and consistency
Refine explanations and improve clarity in the README.
1 parent 2d1b4ad commit 10c4f93

1 file changed

Lines changed: 19 additions & 25 deletions

File tree

README.md

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11
# statgen-advanced
22

3-
43
These notes are for trainees with quantitative backgrounds but without formal training in statistical genetics, who have encountered these methods in the literature but have not yet worked with them hands-on. For statisticians wanting to catch up on genetics applications, these notes provide the conceptual foundations and key assumptions that geneticists make when modeling data.
54

65
These notes are not organized by method, by paper, or by software tool. Instead, we organize by scientific question. For each question, we focus on what problem we are trying to solve, what assumptions we are making, and what generative model most naturally describes how the data arise. Once these foundations are clear, existing methods become natural solutions, and their limitations become obvious.
76

87
Think of it like building a Lego model to represent something in the real world. The statistical building blocks (likelihoods, priors, latent variables, hierarchical structures) are the pieces available. Our goal is to focus on designing the blueprint that captures the essential features of the biological reality, while keeping the available blocks in mind. The details of assembling specific kits will inevitably be discussed, but they are not the focus. When one understands what the design requires and what connections matter, one will know how to select and combine blocks to satisfy those requirements. With this foundation, one can read new methods papers and recognize the same underlying ideas, and feel comfortable adapting or extending existing approaches for new problems.
98

10-
As an example, consider allele-specific expression (ASE) QTL analysis. Total expression reflects the sum of transcripts from both haplotypes; ASE measures their difference within heterozygotes. The same genetic effect parameter underlies both, appearing as dosage effect $(0, 1, 2)$ in total expression and haplotype difference $(-1, 0, +1)$ in ASE. Because sum and difference are conditionally independent, ASE adds information beyond total expression from the same samples, effectively increasing sample size. The within-individual comparison also cancels individual-level confounders (which affect both haplotypes equally), and the phasing information in ASE provides different correlation patterns than genotype dosage (LD), thus improving fine-mapping resolution. These advantages motivate incorporating ASE into QTL analysis. [RASQUAL](https://www.nature.com/articles/ng.3467) implemented a rigorous generative model with Negative Binomial total counts and Beta-Binomial allele-specific counts sharing genetic effect parameters; [mixQTL](https://www.nature.com/articles/s41467-021-21592-8) later achieved scalability through Gaussian approximations and [WASP](https://github.com/bmvdgeijn/WASP) preprocessing, trading some model fidelity for computational efficiency suitable for large-scale analysis. One can extend this framework further by adding local ancestry modeling or fine-mapping algorithms, following the same approach to motivation and generative modeling.
11-
12-
These notes assume familiarity with topics in our [`statgen-primer` notes](https://statfungen.github.io/statgen-primer).
9+
As an example, consider allele-specific expression (ASE) QTL analysis. Total expression reflects the sum of transcripts from both haplotypes; ASE measures their difference within heterozygotes. The same genetic effect parameter underlies both, appearing as dosage effect $(0, 1, 2)$ in total expression and haplotype difference $(-1, 0, +1)$ in ASE. Because sum and difference are conditionally independent, ASE adds information about genetic effects beyond total expression from the same samples, effectively increasing sample size. The within-individual comparison also cancels individual-level confounders (which affect both haplotypes equally), and haplotype difference in ASE provides different correlation (LD) patterns than conventional genotype dosage, thus improving fine-mapping resolution. These advantages motivate incorporating ASE into QTL analysis. [RASQUAL](https://www.nature.com/articles/ng.3467) implemented a rigorous generative model with Negative Binomial total counts and Beta-Binomial allele-specific counts sharing genetic effect parameters; [mixQTL](https://www.nature.com/articles/s41467-021-21592-8) later achieved scalability through Gaussian approximations and [WASP](https://github.com/bmvdgeijn/WASP) preprocessing, trading some modeling rigor for computational efficiency suitable for large-scale analysis. One can extend this framework further by adding local ancestry modeling and fine-mapping, following the same approach to motivation and generative modeling.
1310

1411
## Overview of Topics
1512

16-
These notes organize into five themes. The first three represent fundamental ways of thinking about genetic data that recur across many applications. The last two address how we adapt our models to specific data types or practical computational constraints. Throughout, the same building blocks (likelihoods, priors, latent variables, effect sharing) appear in different combinations depending on the scientific question.
13+
These notes organize into five themes. The first three represent fundamental ways of thinking about genetic data that recur across many applications. The last two address how we adapt our models to specific data types or practical computational constraints. Throughout, the same building blocks, mostly introduced in our ["statgen-primer" notes](https://statfungen.github.io/statgen-primer), appear in different combinations depending on the scientific question.
1714

1815
### Theme 1: Mapping of shared vs. specific effects
1916

2017
The core question in genetic mapping is: which variants are associated with the trait, and how do effects vary across contexts? We ask these questions whether comparing the same trait across studies (meta-analysis), the same trait across ancestries (cross-ancestry analysis), or different traits at the same locus (colocalization).
2118

22-
In sum, both genetic effects and confounders can be shared or context-specific. In meta-analysis, we typically assume effects are shared (or allow for heterogeneity) while residuals are study-specific. In cross-ancestry fine-mapping, effects may be shared but LD patterns (a type of confounder) differ by ancestry. In multi-tissue QTL analysis, confounders may be shared across tissues of the same individual donor of biological sample, while effects vary by cell or tissue types.
19+
In sum, both genetic effects and confounders can be shared or context-specific. In meta-analysis, we typically assume effects are shared (or allow for heterogeneity) while residuals are study-specific. In cross-ancestry fine-mapping, effects may be shared but LD patterns (a type of confounder) differ by ancestry. In multi-tissue QTL analysis, confounders may be shared across tissues belonging to the same biological sample donor, while effects vary by cell or tissue types even within the same donor.
2320

24-
Fine-mapping belongs here because LD is simply a particular type of confounding, where correlated variants make it hard to identify causal ones. The challenge is high-dimensional (many correlated variants) and requires variable selection because we don't know which effects are real. Annotation priors (as in PolyFun) are generative model details that help distinguish confounders from true signals, not a separate concept.
21+
Fine-mapping is discussed here because LD is simply a particular type of confounding, where correlated variants make it hard to identify causal ones. The challenge is high-dimensional (many correlated variants) and requires variable selection because we don't know which effects are real. Annotation priors for fine-mapping are generative model details that help distinguish confounders from true signals, not a separate concept.
2522

2623
Note that colocalization asks whether two traits share a causal variant at a locus. This is a mapping question (Theme 1), not a causal inference question (Theme 3). Colocalization results are biologically suggestive of shared mechanism, but the statistical model makes no causal assumptions about one trait affecting another.
2724

2825
| Scientific Question | Core Concepts | Methods/Tools |
2926
|---------------------|---------------|---------------|
3027
| Which variants are likely causal given LD? | Fine-mapping, credible sets, variable selection, functional priors | SuSiE, FINEMAP, PolyFun |
31-
| How do we combine evidence across studies? | Effect sharing and heterogeneity, meta-analysis as special case of multivariate modeling | METAL, mashr, METASOFT |
32-
| Do two traits share causal variants? | Colocalization, shared genetic architecture | coloc, ColocBoost, CAFEH |
33-
| How do we leverage LD diversity across populations? | Cross-ancestry fine-mapping, ancestry-specific LD | SuSiEx, MESuSiE |
34-
| How do genetic effects vary across contexts? | Multi-trait GWAS, multi-context QTL, effect heterogeneity | mashr, mtCOJO |
28+
| How do we combine evidence across studies? | Effect sharing and heterogeneity, meta-analysis as special case of multivariate modeling | METAL, METASOFT, mtag, mashr|
29+
| Do two traits share causal variants? | Colocalization, shared genetic architecture | coloc, SuSiE-coloc, ColocBoost |
30+
| How do we leverage LD diversity across populations? | Cross-ancestry fine-mapping, ancestry-specific LD | SuSiEx, MESuSiE, MultiSuSiE, SuShiE |
31+
| How do genetic effects vary across contexts? | Multi-trait GWAS, multi-context QTL, effect heterogeneity | mtCOJO, mvSuSiE |
3532

3633
### Theme 2: Prediction with polygenic architecture
3734

@@ -41,27 +38,25 @@ In contrast to theme 1 where fine-mapping asks "which?", here heritability asks
4138

4239
MAGMA fits here as gene-level aggregation: it tests whether variants near a gene collectively associate with a trait, without invoking causal assumptions about gene expression affecting the trait (that would be Theme 3). Genetic correlation between traits also typically belongs here, as we usually refer to genome-wide correlation computed in a polygenic framework.
4340

44-
4541
| Scientific Question | Core Concepts | Methods/Tools |
4642
|---------------------|---------------|---------------|
47-
| How much trait variation is genetic? | Heritability, variance components | LDSC, GREML, GCTA |
48-
| Are genetic effects correlated across traits? | Genetic correlation, pleiotropy | LDSC, Popcorn |
49-
| Which tissues or annotations are enriched? | Heritability partitioning, functional enrichment | S-LDSC, MAGMA |
50-
| Can we predict phenotype from genotype? | Polygenic risk scores, prediction accuracy | LDpred, PRS-CS, PRSice |
43+
| How much trait variation is genetic? | Heritability, variance components | GREML, GCTA, LDSC, HESS, LDAK, HDL |
44+
| Are genetic effects correlated across traits? | Genetic correlation, pleiotropy | bi-LDSC, Popcorn, HESS |
45+
| Which tissues or annotations are enriched? | Heritability partitioning, functional enrichment | S-LDSC |
46+
| Can we predict phenotype from genotype? | Polygenic risk scores, prediction accuracy | PRSice, LDpred, PRS-CS, PRS-CSx |
5147

5248
### Theme 3: Causal chain from molecular phenotype to disease
5349

5450
This theme applies the concepts from Themes 1 and 2 most typically to the relationship between molecular phenotypes and disease, with additional statistical assumptions that enable causal inference. The key distinction is the instrumental variable framework: we use genetic variants as instruments to test whether an exposure (e.g., gene expression) causally affects an outcome (e.g., disease risk).
5551

5652
It is important to clarify that "causal" here refers to the statistical modeling framework, not biological mechanism. MR and TWAS both rely on instrumental variable assumptions (relevance, independence, exclusion restriction), and all TWAS methods can be viewed as two-sample MR with gene expression as the exposure. The differences are practical (expression prediction, correlated instruments) rather than conceptual. This unification helps tracking what each method assumes and where it might fail, particularly through horizontal pleiotropy. Colocalization, by contrast, asks whether GWAS and QTL share a causal variant but makes no statistical claim about expression causing disease.
5753

58-
5954
| Scientific Question | Core Concepts | Methods/Tools |
6055
|---------------------|---------------|---------------|
61-
| Does gene expression causally affect disease? | TWAS as MR, instrumental variables, predicted expression | PrediXcan, FUSION, TWAS-BLUP |
56+
| Does gene expression causally affect disease? | TWAS as MR, instrumental variables, predicted expression | PrediXcan, FUSION, MultiXcan, mr.mash, CoMM, cTWAS |
6257
| Does exposure X cause outcome Y? | MR assumptions, horizontal pleiotropy, instrument selection | TwoSampleMR, MR-Egger, MR-PRESSO, MRAID |
63-
| Can we distinguish causality from pleiotropy? | Horizontal pleiotropy testing, robust MR | PMR-Egger, MR-PRESSO |
64-
| How do we integrate QTL and GWAS evidence for causality? | SMR, multi-omics MR | SMR, moloc |
58+
| Can we distinguish causality from pleiotropy? | Horizontal pleiotropy testing, robust MR | PMR-Egger, CAUSE |
59+
| How do we integrate QTL and GWAS evidence for causality? | multi-omics MR | SMR, ... |
6560

6661
### Theme 4: Generative models for molecular phenotypes
6762

@@ -71,11 +66,11 @@ This is the Lego analogy in action: we know the biology of RNA-seq count data or
7166

7267
| Scientific Question | Core Concepts | Methods/Tools |
7368
|---------------------|---------------|---------------|
74-
| How do we model splicing variation? | Junction usage, Dirichlet-Multinomial, intron clusters | Leafcutter, sQTLseekeR |
75-
| How do we model methylation? | Beta-distributed outcomes, spatial correlation | Specific mQTL pipelines |
76-
| How do we model protein abundance? | pQTL mapping, measurement noise, missing data | Various pQTL methods |
69+
| How do we model splicing variation? | Junction usage, Dirichlet-Multinomial, intron clusters | Leafcutter, sQTLseekeR, ISSAC |
70+
| How do we model methylation? | Beta-distributed outcomes, spatial correlation | smash, fSuSiE |
71+
| How do we model protein abundance? | pQTL mapping, measurement noise, missing data | ... |
7772
| How do we leverage allele-specific information? | ASE, haplotype-aware models, conditional independence | RASQUAL, mixQTL, WASP |
78-
| How do we handle single-cell QTL? | Cell type composition, pseudobulk, mixed effects | CellRegMap, pseudobulk approaches |
73+
| How do we handle single-cell QTL? | Cell type composition, pseudobulk, mixed effects | ... |
7974

8075
### Theme 5: Scalability and computational approximations
8176

@@ -88,7 +83,6 @@ Note: Basic linear models, mixed models for relatedness, and population structur
8883
| Scientific Question | Core Concepts | Methods/Tools |
8984
|---------------------|---------------|---------------|
9085
| How do we run GWAS on biobank-scale data? | Scalable mixed models, sparse GRM, approximations | BOLT-LMM, SAIGE, REGENIE, fastGWA |
91-
| How do we trade model fidelity for speed? | Gaussian approximations, preprocessing strategies | mixQTL vs. RASQUAL, WASP preprocessing |
9286
| How do we work with summary statistics? | LD reference panels, avoiding individual-level data | Summary-stat-based methods throughout |
9387

9488
---

0 commit comments

Comments
 (0)