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: https://www.maizegenetics.net/tassel (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:

References

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. https://doi.org/10.1093/bioinformatics/btm308.

R Core Team. 2020. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.

RStudio Team. 2020. RStudio: Integrated Development Environment for R. Boston, MA: RStudio, PBC. http://www.rstudio.com/.