Chapter 2 Prerequisites

To get started, navigate to the S3 shared Bucket and download the /Tutorials folder.

These exercises assume R (R Core Team 2020) and R studio (RStudio Team 2020) are already installed. If you have not done so, a site which gives quick and easy to follow instructions for installing R and R studio can be found here

The R packages below are required to run all analysis in this workshop. In addition to R packages, TASSEL is another software tool used. More details about downloading TASSEL can be found on the developers site: (Bradbury et al. 2007). We will only use TASSEL for a filtering step so it is not absolutely necessary to complete the workshop.

If any of the packages fail to install through CRAN, you can go to the CRAN package web page and download the package source and attempt to install from source using the command below. Where ‘path_to_file’ represents the full path and file name of downloaded package.

Additionally, many packages are available through both CRAN and Bioconductor. If CRAN options fail, you can try to install packages using Bioconductor using the same syntax as shown in the commands above for the PCAtools package.

Throughout the exercises, we will be changing directories in R to access files needed. Doing this differs depending on the operating system you use. The code below shows how you would do this on a Linux/Mac machine and a Windows machine. The exercises were put together on a machine running Ubuntu, therefore you may need to change the syntax according to the operating system you are using:


Bradbury, Peter J., Zhiwu Zhang, Dallas E. Kroon, Terry M. Casstevens, Yogesh Ramdoss, and Edward S. Buckler. 2007. “TASSEL: software for association mapping of complex traits in diverse samples.” Bioinformatics 23 (19): 2633–5.

R Core Team. 2020. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing.

RStudio Team. 2020. RStudio: Integrated Development Environment for R. Boston, MA: RStudio, PBC.