14th Summer Institute in Statistical Genetics, Seattle 2009
Module 3: Computing for Statistical Genetics
Instructors: Thomas Lumley and Ken Rice

Slides and exercises

Script files are posted following each session; these will 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 slides for these sessions contain minor changes to the printed version
** This session covers different material to the printed version

Session 1, Introductions, reading in data (exercises) (R script file)

Session 2; Learning to Draw (exercises) (R script file)

Session 3; Data Manipulation (exercises) (R script file)

Session 4; Model Fitting (exercises) (R script file)

Session 5*; Permutation Tests (exercises) (R script file)

Session 6; Writing Loops (exercises) (R script file)

Session 7**; Handling Large Datasets (exercises) (R script file)

Session 8*; Bioconductor #1 (exercises) (R script file)

Special Exercise: This is a more in-depth programming problem, for you to try on Tuesday night; we'll discuss it in the final session (PowerPoint) (R script file)

Session 9; Bioconductor #2 (exercises) (R script file)

Session 10; Special Exercise review (see above), interfacing R to other software

Bonus Tracks! In the printed notes, there is a session on haplotypes. Here are some exercises, and a script file with one way to program them. You may also find this documentation useful.


Datasets

- in alphabetical order.

Before trying to read data into your R session, we recommend looking at it first, in a text editor. Is the data comma- or tab-delimited? Does it have a 'header' row containing variable names?

AMDchrom1.Rdata -- see session 8
annt.txt
bpdata.csv
data.vsn.csv
example-pheno.txt  
example-pheno.csv 
example-snp.txt
foursnps.csv
foursnps.txt
genepi.txt
justsnps.txt
niehs.csv
psa.txt
salary.dat
sampleinfo.csv
sisg.nc -- see session 7
swirl.zip -- see session 8


Other resources

Some recommended books;