Difference between revisions of "Tutorials"

From Statistical Genetics Courses

Jump to: navigation, search
(REGENIE)
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Tutorials for Courses==
 
==Tutorials for Courses==
* [[Tutorials#FastLMM_&_GCTA|FastLMM & GCTA]] | [[Media:fastlmm_gcta_exercise.pdf|exercise[PDF]]] [PDF and [https://hub.docker.com/r/statisticalgenetics/fastlmm-gcta docker image]
+
* [[Tutorials#FastLMM_&_GCTA|FastLMM & GCTA]] 
* [[Tutorials#GWAS:_Data_Quality_Control|GWAS: QC]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/plink.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/fastlmm-gcta docker image]
+
* [[Tutorials#Mendelian Randomization|Mendelian Randomization]]
* [[Tutorials#GWAS:_Association_Analysis_Controlling_for_Population_Substructure|GWAS: Controlling for Population Substructure]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/plink.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/plink/tags docker image]
+
* [[Tutorials#Pleiotropy|Pleiotropy]]
* Mendelian Randomization | docker image and exercise
+
* [[Tutorials#PLINK_GWAS:_Data_Quality_Control_and Association_Analysis_Controlling_for_Population_Substructure|PLINK GWAS: QC and Controlling for Population Substructure]]
* <s>[[Tutorials#Epistasis_.28PLINK_and_CASSI.29 | Interaction analysis using PLINK and CASSI]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/epistasis.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/epistasis/tags docker image]</s>
+
* [[Tutorials#Power_Analysis|Power Analysis]]
* <s>[[Tutorials#Linkage.2FFastLinkage|LINKAGE]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/mlink.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/mlink/tags docker image]</s>
+
* [[Tutorials#REGENIE|REGENIE]]
* <s>[[Tutorials#Population_Genetics|Population Genetics]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/popgen.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/popgen/tags docker image]</s>
+
* [[Tutorials#Regression_and_Intro_to_PLINK_and_R|Regression and Intro to PLINK and R]]
* [[Tutorials#Pleiotropy|Pleiotropy]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/pleiotropy.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/pleiotropy/tags docker image]
+
* [[Tutorials#Pencil_and_Paper_Exercise|Pencil and Paper Exercise]]
* <s>[[Tutorials#Polygenic_risk_prediction_.28NPS_method.29|Polygenic risk prediction using non-parametric shrinkage]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/nps.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/nps/tags docker image]</s>
+
* <s>[[Tutorials#PSEQ|PLINK/SEQ (PSEQ)]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/pseq.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/pseq/tags docker image]</s>
+
* [[Tutorials#R_and_PLINK|R and PLINK exercise]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/plink-r-nothnagel.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/plink-r-nothnagel/tags docker image]
+
* [[Tutorials#Regression|Regression]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/regression.dockerfile dockefile] and [https://hub.docker.com/r/statisticalgenetics/regression/tags docker image]
+
* <s>[[Tutorials#RV-TDT|RV-TDT]]</s>
+
* <s>[[Tutorials#SEQLinkage|SEQLinkage]]</s>
+
* <s>[[Tutorials#SEQSpark|SEQSpark]]</s>
+
* <s>[[Tutorials#SLINK|SLINK]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/slink.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/slink/tags docker image]</s>
+
* <s>[[Tutorials#Variant_Association_Tools|Variant Association Tools]] | [https://github.com/statgenetics/statgen-courses/blob/master/docker/vat.dockerfile dockerfile] and [https://hub.docker.com/r/statisticalgenetics/vat/tags docker image]</s>
+
  
 
==Running Tutorials on Your Computer==
 
==Running Tutorials on Your Computer==
Line 22: Line 13:
  
 
===General instructions===
 
===General instructions===
* [https://github.com/statgenetics/statgen-courses/wiki/How-to-launch-course-tutorials#alternative-to-cloud-server-use-your-own-computer Instructions to install Docker Desktop and running the course material on your computer]<br /><br />
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Statistical_Genetics_Exercise_Instructions.pdf Instructions to install Docker Desktop and running the course material on your computer]
  
 
===Tutorial specific instructions===
 
===Tutorial specific instructions===
Line 30: Line 21:
  
 
==FastLMM & GCTA==
 
==FastLMM & GCTA==
* [[Media:fastlmm_gcta_exercise.pdf|FastLMM & GCTA exercise]] [https://github.com/statgenetics/statgen-courses/blob/master/handout/GCTA.pdf <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/FastLMM_GCTA.pdf FastLMM & GCTA Exercise [PDF]]
* [https://hub.docker.com/r/statisticalgenetics/fastlmm-gcta FastLMM & GCTA docker image]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/FastLMM_GCTA_Outputs.pdf FastLMM & GCTA Output [PDF]]
 +
* [https://hub.docker.com/r/statisticalgenetics/fastlmm-gcta FastLMM & GCTA Docker Image]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 41: Line 33:
  
 
==Mendelian Randomization==
 
==Mendelian Randomization==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/GCTA.pdf Mendelian Randomization exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Mendelian_Randomization.pdf Mendelian Randomization Exercise [PDF]]
* Mendelian Randomization docker image
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Mendelian_Randomization_Outputs.pdf// Mendelian Randomization Output [PDF]]
 +
* [https://hub.docker.com/r/statisticalgenetics/mendelian-randomization Mendelian Randomization Docker Image]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Mendelian_Randomization_Questions.pdf Mendelian Randomization Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Mendelian_Randomization_Answers.pdf Mendelian Randomization Answers [PDF]]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 49: Line 44:
 
To run the exercise from the downloaded docker image,
 
To run the exercise from the downloaded docker image,
  
<pre>docker run --rm -p 8888:8888 statisticalgenetics/mendelian-randomization<br /><br /></pre>
+
<pre>docker run --rm -p 8888:8888 statisticalgenetics/mendelian-randomization</pre>
 +
 
 
==Pleiotropy==
 
==Pleiotropy==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy.pdf Pleiotropy Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Pleiotropy.pdf Pleiotropy Exercise [PDF]]
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy_answers.pdf Pleiotropy docker image]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Pleiotropy_Outputs.pdf Pleiotropy Output [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy_answers.pdf Pleiotropy Docker Image]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Pleiotropy_Questions.pdf Pleiotropy Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Pleiotropy_Answers.pdf Pleiotropy Answers [PDF]]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 60: Line 59:
  
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/pleiotropy</pre>
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/pleiotropy</pre>
<pre> </pre>
+
 
==PLINK GWAS: Data Quality Control and Association Analysis Controlling for Population Substructure==
+
==PLINK GWAS: Data Quality Control and Association Analysis Controlling for Population Substructure==
 
These exercises run using a shared docker image, however the exercises are split into two separate notebooks.
 
These exercises run using a shared docker image, however the exercises are split into two separate notebooks.
  
* PLINK GWAS: Data QC [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_data_QC.pdf Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_Data_QC.pdf PLINK GWAS: Data QC Exercise [PDF]]
* PLINK GWAS: Population Substructure [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_data_QC.pdf Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_Data_QC_Outputs.pdf PLINK GWAS: Data QC Output [PDF]]
* PLINK GWAS docker image
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_Data_QC_Questions.pdf PLINK GWAS: Data QC Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_Data_QC_Answers.pdf PLINK GWAS: Data QC Answers [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_GWAS_Substructure.pdf PLINK GWAS: Population Substructure Exercise [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_GWAS_Substructure_Outputs.pdf PLINK GWAS: Population Substructure Output [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_GWAS_Substructure_Questions.pdf PLINK GWAS: Population Substructure Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/PLINK_GWAS_Substructure_Answers.pdf PLINK GWAS: Population Substructure Answers [PDF]]
 +
* [https://hub.docker.com/r/statisticalgenetics/plink-gwas PLINK GWAS Docker Image]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 73: Line 78:
 
To run the exercise from the downloaded docker image,
 
To run the exercise from the downloaded docker image,
  
<pre>docker run --rm -p 8888:8888 statisticalgenetics/plink-gwas<br /><br /></pre>
+
<pre>docker run --rm -p 8888:8888 statisticalgenetics/plink-gwas</pre>
 +
 
 +
==Power Analysis==
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Power_Calculations_Questions.pdf Power Analysis Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Power_Calculations_Answers.pdf Power Analysis Answers [PDF]]
 +
 
 
==REGENIE==
 
==REGENIE==
* Regenie [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy.pdf Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regenie.pdf Regenie Exercise [PDF]]
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy_answers.pdf Regenie docker image]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regenie_Outputs.pdf Regenie Output [PDF]]
 +
* [https://hub.docker.com/r/statisticalgenetics/regenie Regenie Docker Image]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regenie_Questions.pdf Regenie Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regenie_Answers.pdf Regenie Answers [PDF]]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 84: Line 97:
  
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/regenie</pre>
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/regenie</pre>
 
  
 
==Regression and Intro to PLINK and R==
 
==Regression and Intro to PLINK and R==
 
These exercises run using a shared docker image, however the exercises are split into two separate notebooks.
 
These exercises run using a shared docker image, however the exercises are split into two separate notebooks.
  
* Regression [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_data_QC.pdf Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regression.pdf Regression Exercise [PDF]]
* Intro to PLINK and R [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_data_QC.pdf Exercise <nowiki>[PDF]</nowiki>]
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regression_Outputs.pdf Regression Output [PDF]]
* Regression and Intro to PLINK & R docker image
+
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regression_Questions.pdf Regression Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Regression_Answers.pdf Regression Answers [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Intro_Plink_R.pdf Intro to PLINK & R Exercise [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Intro_Plink_R_Outputs.pdf Intro to PLINK & R Output [PDF]]
 +
* [https://hub.docker.com/r/statisticalgenetics/regression-plink-r Regression and Intro to PLINK & R Docker Image]
  
 
To pull and download the docker image from the Docker Hub repository,
 
To pull and download the docker image from the Docker Hub repository,
Line 99: Line 115:
  
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/regression-plink-r</pre>
 
<pre>docker run --rm -p 8888:8888 statisticalgenetics/regression-plink-r</pre>
 +
 +
==Pencil and Paper Exercise==
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Population_Genetics_Questions.pdf Population Genetics Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Population_Genetics_Answers.pdf Population Genetics Answers [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Linkage_Disequilibrium_Questions.pdf Linkage Disequilibrium Questions [PDF]]
 +
* [https://github.com/statgenetics/statgen-courses/blob/master/handouts_2026/Linkage_Disequilibrium_Answers.pdf Linkage Disequilibrium Answers [PDF]]

Revision as of 14:58, 10 September 2026

Tutorials for Courses

Running Tutorials on Your Computer

We adopt docker to run our course material, and we have created various docker repositories with freely available Docker images for users to readily run our exercises on their own computers using Docker Desktop. These docker images are for multi-platform use (Mac, Windows, or Linux). More information regarding instructions to install Docker Desktop and to run the course material on your computer is detailed in the documentation below. 

General instructions

Tutorial specific instructions

Please refer to the previous section for instructions on the installation of Docker Desktop and basic usages. 

Material and instructions for specific exercise are listed in each section below. They provide links to pdf versions of the exercises and a minimal set of commands to use for downloading the docker images and running an exercise. 

FastLMM & GCTA

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/fastlmm-gcta

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/fastlmm-gcta

Mendelian Randomization

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/mendelian-randomization

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/mendelian-randomization

Pleiotropy

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/pleiotropy

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/pleiotropy

PLINK GWAS: Data Quality Control and Association Analysis Controlling for Population Substructure

These exercises run using a shared docker image, however the exercises are split into two separate notebooks.

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/plink-gwas

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/plink-gwas

Power Analysis

REGENIE

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/regenie

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/regenie

Regression and Intro to PLINK and R

These exercises run using a shared docker image, however the exercises are split into two separate notebooks.

To pull and download the docker image from the Docker Hub repository,

docker pull statisticalgenetics/regression-plink-r

To run the exercise from the downloaded docker image,

docker run --rm -p 8888:8888 statisticalgenetics/regression-plink-r

Pencil and Paper Exercise