Teaching · Practical course
GWAS practical course
From a genotyping array export to an interpreted Manhattan plot, one numbered step at a time. Every quality check explains why it is done, what it can reveal and what to do about it. No coding experience is needed, and each step also gives the reasoning, PLINK 2 options and references a researcher would expect. You work in R and PLINK 2 on your own computer.

- modules on the main path
- 8
- numbered steps
- 64
- simulated samples to clean
- 2,016
- samples in the final association scan
- 1,811
What you will learn
- Read the files that come out of a genotyping array and convert them to PLINK 2 format.
- Check alleles, strand and genome build before any analysis.
- Find and remove problem samples and variants, and say why each check matters.
- Detect population structure with a reference panel and principal components.
- Run a genome-wide association scan with logistic regression.
- Read QQ and Manhattan plots, and report what you found.
Who it is for
- Students of biology, biotechnology, medicine or computer science.
- No programming experience is needed. Statistics beyond the mean and standard deviation are explained in the course.
- The written text is enough on its own: you can complete every step without the spoken lesson.
- Students across University of Pisa courses, and anyone studying on their own.
- PhD students and researchers who want a reproducible reference pipeline, with the statistical reasoning, PLINK 2 options and primary literature behind each decision.
All data are simulated. The exercises cannot establish a finding about a real disease.
Before you start
What you need
A Windows, macOS or Linux computer, a writable folder and three free programs. Module 0 guides you through each installation. You never need to change your system language.
R
Runs every course command.
Official download page for R (opens in a new tab)RStudio
Console, editor and file browser around R.
Official download page for RStudio (opens in a new tab)PLINK 2
Processes the genotype files. R starts it for you.
Official download page for PLINK 2 (opens in a new tab)
Tested PLINK 2 version: PLINK v2.0.0-b.1.4 (7 Nov 2026). Download the latest version; the setup check prints yours and warns, without stopping you, if it differs.
Course data: an encrypted archive checked with a SHA-256 checksum. You request the password with your University of Pisa email address on the data access page; it is sent by email and never shown on this site.
The website and the repository
This website is the complete guided path: you can follow every step without using Git. The GitHub repository (opens in a new tab) holds the R notebooks, the scripts that run the whole path, the version history and the issue tracker. Open it if you want to inspect the code, rerun everything at once or suggest a change.
Course map
Eight modules, one path
Follow the modules in order. Each one starts from the files the previous module created.
- 8 steps, about 90 minutes.
Module 0: Prepare your computer.
Install R, RStudio and PLINK 2, download the course package and run the setup check.
Open module 0 - 11 steps, about 90 minutes.
Module 1: From DNA to array data.
How a genotyping array measures DNA, and which problems are born in the laboratory.
Open module 1 - 8 steps, about 60 minutes.
Module 2: Files and formats.
Convert the export to PLINK 2 format and check alleles, strand and genome build.
Checkpoint at 2.8
Open module 2 - 8 steps, about 70 minutes.
Module 3: Sample quality control.
Find problem samples: call rate, sex, heterozygosity, relatives and batch effects.
Checkpoint at 3.8
Open module 3 - 6 steps, about 45 minutes.
Module 4: Variant quality control.
Filter variants by call rate, missingness, allele frequency and Hardy-Weinberg equilibrium.
Open module 4 - 7 steps, about 60 minutes.
Module 5: Population structure.
Project the study onto a 1000 Genomes reference and choose the principal components.
Open module 5 - 8 steps, about 60 minutes.
Module 6: Association.
Fit the additive logistic model and run the genome-wide association scan.
Open module 6 - 8 steps, about 75 minutes.
Module 7: Plots and reporting.
QQ and Manhattan plots, thresholds, clumping, regional plots and reporting.
Open module 7
Coming later
- A10 stepsModule A: Genotype imputationPrepare the target files, read the imputation quality and test the imputed dosages around locus L4.
- BNot yet available
Module B: Mixed models and REGENIE
Mixed models for related samples, with precomputed REGENIE outputs.
- +Not yet available
Post-GWAS analysis
What to do with the associated loci after the scan.
For lecturers and colleagues
The course is open: you can link to any module or step, or teach the whole path. Each module starts from the files the previous one created, so one module fits one laboratory session, and the checkpoints at 2.8 and 3.8 let a class restart together.
The data access page accepts University of Pisa addresses. If you teach elsewhere, write to me with your course and institution and I will send you the password to share with your students. All data are simulated.
To report a problem or propose a change, use the “Report a problem” link on every page or open an issue on GitHub (opens in a new tab).
Every step has the same shape
Once you know one step, you know them all. Results and help stay folded until you need them.
- What we do
- Why
- You need
- Command
- Expected result
- If something goes wrong
- Quick check
- Files created
Some steps also have Under the hood & literature, folded until you open it, with the methods and references behind the step.