Summer Institute in Statistical Genetics
Module 5: Bayesian Statistics for Genetics
Instructors: Ken Rice and Steve Qin

This page, updated throughout the course, will feature slides from our sessions, and examples for you to try.

Prior to the module, please install up-to-date versions of R and RStudio on the laptop you will use during the summer institute. Both are free.

Other software that will be useful, but only used in parts of the module:
Slides and exercises

Script files will posted following each session; these contain our R code for the exercises. To make them work on your computer, remember to modify file names and locations appropriately. Also note that many different 'correct' solutions are possible.

The module has 10 sessions, each of 90 minutes. The standard format for a session is approximately:

  • 50 minutes of lecture material (presented live, also recorded for later reference)
  • 25 minutes of code demonstrations and exercises for you to try. We strongly recommend working with other students
  • 15 minute discussion of exercises, where the instructors will present possible solutions and answer questions (also recorded)


Slides and code used in-class
Monday, June 3rd
Time Topic Lecture Exercises/Discussion
8:30am-10:00am 0/1. Introductions, motivation for Bayes Slides [.pdf] Slides [.pdf] Exercises, Key [.pdf]
10:30am-12:00pm 2. Binomial sampling, part 1 Slides [.pdf] Demo and exercises [.Rmd], [.pdf], Key [.pdf]
1:00pm-3:00pm 3. Binomial sampling, part 2 Slides [.pdf] Demo and exercises [.Rmd] [.pdf], Key [.R]
3:30pm-5:00pm 4. Multinomial Samples & INLA Slides [.pdf], INLA example [.R] Demo and exercises [.Rmd] [.pdf], Key [.Rmd] [.pdf]
Tuesday, June 4th
Time Topic Lecture Exercises/Discussion
8:30am-10:00am 5. Linear models Slides [.pdf] Exercises Script from demo [.R], Key [.pdf] [.docx]
10:30am-12:00pm 6. Clustering Slides [.pdf] No exercises for this session
1:30pm-3:00pm 7. Meta-analysis Slides [.pdf] Exercises Script file [.R], Key [.R]
3:30pm-5:00pm 8. Hierarchical models Slides [.pdf] No exercises for this session
Wednesday, June 5th
Time Topic Lecture Exercises/Discussion
8:30am-10:00am 9. Testing and Multiple Testing Slides [.pdf], prostmat.csv, prostz.txt Demo [.Rmd] (no exercises for this session),
10:30pm-12:00pm 10. Software examples Slides [.pdf] See demo resources below

Resources for Session 10: most of the examples run the HWE example - each example is self-contained

Datasets
  • ASAgene.txt: Data for Session 2 and 3
  • diagen_bma: Data and posterior simulations for Session 6 - load into an R session with load()
  • yX_FTO: Copy of the FTO data, for Session 6 - load into an R session with load()

Other resources

Some recommended books;