Difference between revisions of "Tutorials"
From Statistical Genetics Courses
Serveradmin (Talk | contribs) |
Serveradmin (Talk | contribs) (→Tutorials for Courses) |
||
| Line 1: | Line 1: | ||
==Tutorials for Courses== | ==Tutorials for Courses== | ||
| − | * [[Tutorials#FastLMM_&_GCTA|FastLMM & GCTA]] | | + | * [[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#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#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#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#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] | ||
Revision as of 18:25, 17 August 2026
Contents
- 1 Tutorials for Courses
- 2 Running Tutorials on Your Computer
- 3 FastLMM & GCTA
- 4 Fine-mapping (SuSiE method)
- 5 GCTA
- 6 Gemini
- 7 Genehunter
- 8 GWAS: Data Quality Control
- 9 GWAS: Association Analysis Controlling for Population Substructure
- 10 Homozygosity Mapper
- 11 IGV
- 12 Linkage/FastLinkage
- 13 LD clumping
- 14 MR-JTI for TWAS
- 15 Pleiotropy
- 16 Polygenic risk prediction (NPS method)
- 17 Polygenic risk prediction (LDpred2 method)
- 18 Population Genetics
- 19 PSEQ
- 20 R and PLINK
- 21 REGENIE
- 22 Regression
- 23 RV-TDT
- 24 SEQLinkage
- 25 SEQSpark
- 26 SLINK
- 27 SUPERLINK
- 28 Variant Association Tools
Tutorials for Courses
- FastLMM & GCTA | exercise[PDF] [PDF and docker image
- GWAS: QC | dockerfile and docker image
- GWAS: Controlling for Population Substructure | dockerfile and docker image
- Mendelian Randomization | docker image and exercise
-
Interaction analysis using PLINK and CASSI | dockerfile and docker image -
LINKAGE | dockerfile and docker image -
Population Genetics | dockefile and docker image - Pleiotropy | dockefile and docker image
-
Polygenic risk prediction using non-parametric shrinkage | dockefile and docker image -
PLINK/SEQ (PSEQ) | dockefile and docker image - R and PLINK exercise | dockefile and docker image
- Regression | dockefile and docker image
-
RV-TDT -
SEQLinkage -
SEQSpark -
SLINK | dockerfile and docker image -
Variant Association Tools | dockerfile and docker image
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
Preparing Your Computer
Running Exercises
Tutorial specific instructions
We use a script "statgen-setup" to start the docker based environments for these tutorials. Please refer to the previous section for instructions on the installation of this script.
Material and instructions for specific exercise are listed in each section below (only those using statgen-setup command are relevant to our docker based tutorials). They provide links to materials and a minimal set of commands to use for launching and running an exercise. Command "statgen-setup login" will allow you to start and login to a Linux command line environment (regardless of your current computational environment) to perform all analysis in command shells. This works for all the tutorials on this page. Additionally, some tutorials support command "statgen-setup launch" which will start a JupyterLab server to perform the analysis.
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
Fine-mapping (SuSiE method)
- susieR Exercise [DOCX]
- susieR Exercise Answers [DOCX]
- susieR Exercise [Ipython notebook]
- susieR Exercise Answers [Ipython notebook]
To run the exercise from docker image provided,
statgen-setup launch --tutorial finemap
GCTA
To run the exercise from docker image provided,
statgen-setup login --tutorial fastlmm-gcta
Gemini
To run the exercise from docker image provided,
statgen-setup login --tutorial gemini
Genehunter
To install from packages, follow the configuration steps above and run the following command.
sudo apt-get install genehunter-tutorial
The exercise's files will then be installed in the folder /home/shared/genehunter. You can run from there or copy the files into your user's home directory and proceed with the exercise.
GWAS: Data Quality Control
To run the exercise via JupyterLab from docker image provided,
statgen-setup launch --tutorial plink
Alternatively, you can opt to run the exercise via command terminal from docker image provided,
statgen-setup login --tutorial plink
GWAS: Association Analysis Controlling for Population Substructure
To run the exercise via JupyterLab from docker image provided,
statgen-setup launch --tutorial plink
Alternatively, you can opt to run the exercise via command terminal from docker image provided,
statgen-setup login --tutorial plink
Homozygosity Mapper
IGV
Linkage/FastLinkage
To run the exercise from docker image provided,
statgen-setup login --tutorial mlink
LD clumping
To run the exercise from docker image provided,
statgen-setup launch --tutorial clumping
MR-JTI for TWAS
To run the exercise from docker image provided,
statgen-setup launch --tutorial twas
Pleiotropy
To run the exercise from docker image provided,
statgen-setup login --tutorial pleiotropy
Polygenic risk prediction (NPS method)
To run the exercise from docker image provided,
statgen-setup login --tutorial nps
Polygenic risk prediction (LDpred2 method)
To run the exercise from docker image provided,
statgen-setup launch --tutorial ldpred2
Then follow prompts on the terminal output to open up the JupyterLab server in your web browser. If it is the first time you start this server, please open a command terminal inside JupyterLab, and type
get-data
to load the data-set to the JupyterLab workspace.
Population Genetics
To run the exercise from docker image provided,
statgen-setup login --tutorial popgen
PSEQ
To run the exercise from docker image provided,
statgen-setup launch --tutorial pseq
Notice that since PSEQ exercise does not involve generating and visualizing plots, it is also fine to use a command terminal, instead of the JupyterLab server, to run this exercise and reproduce exactly what was described in the tutorial. To do so,
statgen-setup login --tutorial pseq
R and PLINK
To run the exercise from docker image provided,
statgen-setup launch --tutorial plink-r-nothnagel
REGENIE
To run the exercise from docker image provided,
statgen-setup launch --tutorial regenie
Then follow prompts on the terminal output to open up the JupyterLab server in your web browser. If it is the first time you start this server, please open a command terminal inside JupyterLab, and type
get-data
to load the data-set to the JupyterLab workspace.
Regression
To run the exercise from docker image provided,
statgen-setup login --tutorial regression
RV-TDT
Installing Packages
To install from packages, follow the configuration steps above and run the following command.
sudo apt-get install rvtdt-tutorial
The exercise's files will then be installed in the folder /home/shared/rvtdt. You can run from there or copy the files into your user's home directory and proceed with the exercise.
SEQLinkage
To install from packages, follow the configuration steps above and run the following command.
sudo apt-get install seqlinkage-tutorial
The exercise's files will then be installed in the folder /home/shared/seqlinkage. You can run from there or copy the files into your user's home directory and proceed with the exercise.
SEQSpark
Installing Packages
To install from packages, follow the configuration steps above and run the following command.
sudo apt-get install seqspark-tutorial
The exercise's files will then be installed in the folder /home/shared/seqspark. You can run from there or copy the files into your user's home directory and proceed with the exercise.In order for the commands to work correctly, you don't need to reboot, but you should log out and log back in to make sure that the computer's environment is correctly configured.
SLINK
To run the exercise from docker image provided,
statgen-setup login --tutorial slink
SUPERLINK
Variant Association Tools
To run the exercise from docker image provided,
statgen-setup launch --tutorial vat
Then follow the prompts on the terminal output to open up the JupyterLab server in your web browser. You should find the exercise notebook in the side panel, and you can click to open it.