Summer Institute in Statistical Genetics
Module 20: Advanced R Programming for Bioinformatics
Instructors: Thomas Lumley and Ken Rice
This page will feature slides from our sessions, exercises for you to complete, and their solutions. Prior to the module, please install an up-to-date version of R on the laptop you will use during the summer institute. R is available from this site.
It may also be helpful to install the base Bioconductor packages; to download and install these, enter the following;
After doing this major download - once! - to download new Bioconductor packages (for example the hexbin package) use the following commands;
(For sessions 7/8) Resources for builing R packages under windows are available for download here. Make sure you get the version for your (current) version of R. Once you have installed them, your first command entered at the command line should be e.g.
path C:\Program Files\R\R-2.11.1\bin;%PATH%
...which adds the directory containing R to your path. If you don't know the directory containing R, right-click on the R shortcut icon
Slides and exercises
Script files are posted following each session; these will contain our R code for the exercises. Many exercises will be open-ended - and have many different solutions; the code posted here illustrates possible approaches.
Session 3, Object Systems (No exercises for this session)
Session 7, Embedding C code (R script for the convolve example, including some Command Line commmands convolve.c and R script for the convolve example using .Call convolve2.c- no exercises for this session)
Datasets and other files for exercises
- more to follow
Send mail to: see Thomas or Ken in class