Changes

From Statistical Genetics Courses

Jump to: navigation, search

Tutorials

1,786 bytes removed, 16:45, 9 November 2021
/* Fine-mapping (SuSiE method) */
Starting Fall 2019 we adopt [https://www.docker.com/ docker] to run our course material . We have created various [https://hub.docker.com/u/statisticalgenetics docker repositories] with source material freely available from [https://github.com/statgenetics/statgen-courses github] for users to readily setup and reproduce our tutorials on their own computers. These docker images can also be used as production tool to run relevant software on your computer (Mac, Linux or Windows) or even a high performance computing cluster (if properly configured) for your own data analysis.
 ===General instructions===
* [https://github.com/statgenetics/statgen-courses/wiki/How-to-launch-course-tutorials#alternative-to-cloud-server-use-your-own-computer Instructions to setup course tutorial environment on your computer]
* [https://github.com/statgenetics/statgen-courses/wiki/How-to-launch-course-tutorials#option-1-launch-exercise-in-jupyterlab Instructions to run course tutorial through JupyterLab]
* [https://github.com/statgenetics/statgen-courses/wiki/How-to-launch-course-tutorials#aoptionoption-2-launch-from-command-shell Instructions to run course tutorial through command line terminal]
===Tutorial specific instructions===
We use a script [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup "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.
===Tutorial specific instructions===
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.
* [http://gmc.mdc-berlin.de/alohomora/ Software Link]
==AnnotationAnnovar complex traits==* [https://github.com/statgenetics/statgen-courses/blob/master/handout/FunctionalAnnotation.docx pdf Functional Annotation Exercise <nowiki>[DOCXPDF]</nowiki>]
* [[Commands in Annotation Exercise|Exercise Commands]]
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions]. ==Annovar MEndelianMendelian traits==
* [http://statgen.us/files/tutorials/FunctionalAnnotation_Annovar_final.pdf Exercise <nowiki>[PDF]</nowiki>]
* [https://statgen.research.bcm.eduus/files/2017/09/commands/annovar-functional_annotation.txt Commands Part I - Functional Annotation]* [https://statgen.research.bcm.eduus/files/2017/09/commands/annovar-variant_filtering.txt Commands Part II - Variant Filtering]
==Cochran Armitage Trend Test==
<pre>statgen-setup login --tutorial epistasis
</pre>
 
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
 
</pre>
The "==Fine-mapping (SuSiE method)==* [https://github.com/statgenetics/statgen-setup" script is available courses/blob/master/handout/finemapping.docx susieR Exercise <nowiki>[DOCX]</nowiki>]* [https://github.com/statgenetics/statgen-courses/blob/master/srchandout/finemapping_answers.docx susieR Exercise Answers <nowiki>[DOCX]</nowiki>]* [https://github.com/statgenetics/statgen-setup herecourses/blob/master/notebooks/finemapping.ipynb susieR Exercise <nowiki>[Ipython notebook]</nowiki>] and can be installed following * [https://github.com/statgenetics/statgen-courses/blob/master/READMEnotebooks/finemapping_answers.md#prepareipynb susieR Exercise Answers <nowiki>[Ipython notebook]</nowiki>]  To run the exercise from docker image provided, <pre>statgen-yoursetup launch -computer-to-manage-the-tutorials these instructions].tutorial finemap</pre>
==GCTA==
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==Gemini==
<pre>statgen-setup login --tutorial gemini
</pre>
 
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
 
==GWAS: Data Quality Control==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_data_QC.docx pdf Exercise <nowiki>[PDF]</nowiki>]
* [[GWAS Data QC Exercise|Exercise Commands]]
<pre>statgen-setup login --tutorial plink
</pre>
 
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
 
==GWAS: Association Analysis Controlling for Population Substructure==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/PLINK_Substructure.docx pdf Exercise <nowiki>[PDF]</nowiki>]
* [[GWAS_Controlling_for_Population_Substructure|Exercise Commands]]
<pre>statgen-setup login --tutorial plink
</pre>
 
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
 
* [http://statgen.us/files/igv_exercise.zip Exercise files (VCF and BAM)]
To run the exercise from docker image provided,
 
<pre>statgen-setup login --tutorial igv
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==Linkage/FastLinkage==
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==Pleiotropy==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy.docx pdf Pleiotropy Exercise <nowiki>[DOCXPDF]</nowiki>]* [https://github.com/statgenetics/statgen-courses/blob/master/handout/Pleiotropy_answers.docx pdf Pleiotropy Answers to Questions <nowiki>[DOCXPDF]</nowiki>]
To run the exercise from docker image provided,
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==Polygenic risk prediction (NPS method)==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/NPS.docx pdf PRS NPS Exercise <nowiki>[DOCX]</nowiki>]
To run the exercise from docker image provided,
</pre>
The "statgen-setup" script is available ==Polygenic risk prediction (LDpred2 method)==* [https://github.com/statgenetics/statgen-courses/blob/master/srchandout/statgen-setup hereldpred2_example.pdf PRS LDpred2 Exercise <nowiki>[PDF] and can be installed following </nowiki>]* [https://github.com/statgeneticscumc/statgen-coursesbioworkflows/blob/master/READMEldpred/ldpred2_example.md#prepareipynb PRS LDpred2 Exercise <nowiki>[Ipython Notebook]</nowiki>]  To run the exercise from docker image provided, <pre>statgen-yoursetup launch -computer-tutorial ldpred2</pre> Then follow prompts on the terminal output toopen 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 <pre>get-manage-data</pre> to load thedata-tutorials these instructions]set to the JupyterLab workspace
<!--
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==PSEQ==
* [https://github.com/statgenetics/statgen-courses/blob/master/handout/PSEQ.doc pdf PSEQ Exercise <nowiki>[DOCXPDF]</nowiki>]* [[https://github.com/statgenetics/statgen-courses/blob/master/notebooks/PSEQ.ipynb PSEQ Commands in Exercise|Exercise Commands<nowiki>[Ipython Notebook]</nowiki>]
To run the exercise from docker image provided,
 
<pre>statgen-setup launch --tutorial pseq
</pre>
 
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,
<pre>statgen-setup login --tutorial pseq
</pre>
The "statgen-setup" script is available ==REGENIE==* [https://github.com/statgenetics/statgen-courses/blob/master/srchandout/statgen-setup hereregenie_example.pdf REGENIE Exercise <nowiki>[PDF] and can be installed following </nowiki>]* [https://github.com/statgenetics/statgen-courses/blob/master/READMEnotebooks/regenie_example.md#prepareipynb REGENIE Exercise <nowiki>[Ipython Notebook]</nowiki>]  To run the exercise from docker image provided, <pre>statgen-yoursetup launch -computer-tutorial regenie</pre> Then follow prompts on the terminal output toopen 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 <pre>get-manage-data</pre> to load thedata-tutorials these instructions]set to the JupyterLab workspace.  
==Regression==
</pre>
The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].
==RV-TDT==
To run the exercise from docker image provided,
<pre>statgen-setup login --tutorial slink</pre> The "statgen-setup" script is available [https://github.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] and can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-to-manage-the-tutorials these instructions].  
==SUPERLINK==
==Variant Association Tools==
* [https://statgenetics.github.iocom/statgenetics/statgen-courses/notebooksblob/master/handout/VAT.html docx VAT Exercise <nowiki>[HTMLDOCX]</nowiki>]* [[https://github.com/statgenetics/statgen-courses/blob/master/notebooks/VAT.ipynb VAT Commands in Exercise|Exercise Commands<nowiki>[Ipython notebook]</nowiki>]
To run the exercise from docker image provided,
<pre>statgen-setup login launch --tutorial vat
</pre>
The "statgen-setup" script is available [https://githubThen follow the prompts on the terminal output to open up the JupyterLab server in your web browser.com/statgenetics/statgen-courses/blob/master/src/statgen-setup here] You should find the exercise notebook in the side panel, and you can be installed following [https://github.com/statgenetics/statgen-courses/blob/master/README.md#prepare-your-computer-click to-manage-the-tutorials these instructions]open it.