Tutorial notebook
Work through the Fine Mapping and Colocalization Lab (04_finemapping_colocalization.Rmd). Download the R Markdown file.
The lab uses GWAS summary statistics, linkage disequilibrium (LD), and gene-expression association data to explore candidate causal variants and shared association signals.
Setup
- Launch RStudio through NIH HPC OnDemand. See the Session 1 RStudio setup instructions.
-
Open the Terminal tab in RStudio. The tutorial repository contains materials for all sessions, so you only need one copy.
If you cloned the repository before, go to that existing folder and run
git pullto get the latest materials:cd /data/$USER/Stats_Gen/statgen_workshop_tutorial git pullReplace the
cdpath with your existing repository location if you cloned it elsewhere. Rungit pullfrom that folder before future sessions too.If this is your first time cloning the repository, run:
cd /data/$USER/Stats_Gen git clone https://github.com/DCEG-workshops/statgen_workshop_tutorial.git - In RStudio, choose File > Open File, browse to your
statgen_workshop_tutorialfolder, and opensrc/04_finemapping_colocalization.Rmd. - Choose Session > Set Working Directory > To Source File Location. Changing directories in the Terminal does not change R’s working directory.
- Install any missing packages listed in the notebook:
susieR,coloc,knitr, andrmarkdown. - Run the setup chunks, then work through the analysis chunks in order. The notebook reads shared inputs from the directory below and saves results in
/vf/users/<your-username>/Stats_Gen/workshop4.
/data/DCEG_shared/statgen_workshop_2026/data/workshop4
Lab activities
- Fine-mapping with SuSiE: Examine GWAS summary statistics and LD at FGFR2, run SuSiE, and interpret posterior inclusion probabilities and 95% credible sets.
- Colocalization with coloc: Compare GWAS and gene-expression signals in two tissues and interpret evidence for distinct versus shared causal variants. Discuss why colocalization does not establish mediation through gene expression.
- Optional extensions: Explore multiple signals at TERT and assess sensitivity to colocalization priors.
See the Session 4 reading materials for background on fine-mapping and colocalization.