homework 3
bios25328
homework
A. Complete the following assessments
- Lecture 5 assessment quiz (10 points)
- Lecture 6 assessment quiz (10 points)
B. Reproduce figures and analysis in lectures 5 and 6 (80 points)
- Download HapMap3 chromosome 22 data (5pt)
- You can find the full HapMap 3 genotype data with other useful information here
- Download Growth Data (5pt) here
- if you want background information on this trait you can read this paper)
Calculate PCs using plink (10pt)
Plot the first two principal components of the genotype matrix, color by population (10pt)
Run GWAS of growth with and without adjusting for PCs (20pt)
- show qqplot and manhattan plot for each (10pt)
Create HapMap Trios Relatedness Matrix (10pt)
generate a tileplot to visualize the population and relatedness patterns here (10pt)
Links
- You can borrow code from the lecture and the links below
- slides
The following code will directly download the bed/bim/fam files
wget -O hapmap3_ch22.bed https://uchicago.box.com/shared/static/uu5fbx135qgp37spnrrsxrk4acuibkwh.bed
wget -O hapmap3_ch22.bim https://uchicago.box.com/shared/static/eh0thcbeo5sb1ywufrowtm3uqqgad0b2.bim
wget -O hapmap3_ch22.fam https://uchicago.box.com/shared/static/7py9smo190ucl6jrdwe0de8wjdc6rrwq.fam
How to download plink
wget https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20220305.zip
##Use this link if you are on Rstudio Cloud otherwise go to the website
##https://zzz.bwh.harvard.edu/plink/download.shtml
unzip plink_linux_x86_64_20220305.zip
mikdir bin
mv plink bin
C. Finish running the Marees GWAS tutorial
- Finish lab 3 and answer the following questions.
Using the output from the tutorial or using the commands you learned from it, answer the following questions. Show the command you used to create the result.
- How many individuals are in the genotype file you downloaded? (5 pts)
- Explain the contents of
.fam
,.bim
,.bed
files (5 pts) - Write the captions for the figures generated by the commands in 1_Main_script_QC_GWAS.txt and 3_Main_script_association_GWAS (5 pts per figure caption)
- Explain what you accomplished with the tutorial and explain the results/figures you obtained. (20 pts)