<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22126/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WikiSysop</id>
	<title>22126 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22126/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WikiSysop"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php/Special:Contributions/WikiSysop"/>
	<updated>2026-04-24T10:32:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2019&amp;diff=80</id>
		<title>Program 2019</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2019&amp;diff=80"/>
		<updated>2024-03-19T16:10:44Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&amp;#039;&amp;#039;&amp;#039;  Lectures and exercises will take place at the Section for Bioinformatics at the Technical University of Denmark, &amp;#039;&amp;#039;&amp;#039;Building 208, Room 062&amp;#039;&amp;#039;&amp;#039; in Lyngby ([https://www.google.com/maps/place/DTU+bygning+208%2F+DTU+Building+208/@55.7863894,12.520095,357m/data=!3m1!1e3!4m5!3m4!1s0x46524e62f280d429:0x1bbb0474519984b5!8m2!3d55.787537!4d12.5182208 map]).  The courses has two main parts, the first half is lectures and exerc...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Lectures and exercises will take place at the Section for Bioinformatics at the Technical University of Denmark, &#039;&#039;&#039;Building 208, Room 062&#039;&#039;&#039; in Lyngby ([https://www.google.com/maps/place/DTU+bygning+208%2F+DTU+Building+208/@55.7863894,12.520095,357m/data=!3m1!1e3!4m5!3m4!1s0x46524e62f280d429:0x1bbb0474519984b5!8m2!3d55.787537!4d12.5182208 map]).&lt;br /&gt;
&lt;br /&gt;
The courses has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on Thursday 27th of June.&lt;br /&gt;
&lt;br /&gt;
This term we will be using Piazza for class discussion. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza [https://piazza.com/danish_technical_university/summer2019/1 here]&lt;br /&gt;
&lt;br /&gt;
=== Course Program - June 2019 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, June 6&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&#039;&#039;Introduction - Next Generation Sequencing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.30  &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to course &amp;amp; Pre-test&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/introduction_to_course.pdf Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/pre-test_2019.pdf Pre-test])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.30-10.00&lt;br /&gt;
&amp;lt;dd&amp;gt;Introduction to NGS &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Introduction_to_NGS.pdf Lecture slides]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-10.45&lt;br /&gt;
&amp;lt;dd&amp;gt;2nd and 3rd generation NGS Technologies &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Introduction_to_NGS_technology.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.45-11.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk group formation and group work &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Tech_Talks.pdf Lecture slides])&lt;br /&gt;
([https://docs.google.com/spreadsheets/d/1q8wUa-Imiig6H6TloSSjdTuCiCvU7lAmvf972VWl0vs/edit#gid=0 Student Groups]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.30&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Logging on to our Computerome cloud&lt;br /&gt;
([[Logging on to Cloud system]])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.30-14.15 &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixIntroduction.ppt Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.15-14.30&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.30-15.30 &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixIntroduction.ppt Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;15.30-16.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;First look at data&lt;br /&gt;
([[First look exercise]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, June 7&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Data pre-processing &amp;amp; Genomic Epidemiology&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-10.45&lt;br /&gt;
&amp;lt;DD&amp;gt;Data basics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Data_Basics.pdf Lecture slides])&lt;br /&gt;
([[Data basics exercise]])&lt;br /&gt;
([[Data basics solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.45-11.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Data pre-processing&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Data_preprocessing.pdf Lecture slides])&lt;br /&gt;
([[Data Preprocess exercise]])&lt;br /&gt;
([[Data Preprocess solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-14.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Genomic Epidemiology&lt;br /&gt;
([[Genomic epidemiology exercise]])&lt;br /&gt;
([[Genomic epidemiology solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-16.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;Case story: Genomic Epidemiology&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Genomic_epidemiology_NGScourse_Pimlapas_June2018.pdf Lecture])&lt;br /&gt;
&amp;lt;DD&amp;gt;Pimlapas Leekitecharoenphon (Shinny)&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, June 10&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Whit Monday - No teaching!&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;B&amp;gt;Tuesday, June 11&amp;lt;/B&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Alignment &amp;amp; Genotyping&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.45 &lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Alignment.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.45-10.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Alignment &lt;br /&gt;
([[Alignment exercise]])&lt;br /&gt;
([[Alignment solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.25&lt;br /&gt;
&amp;lt;DD&amp;gt;Functional Human Variation &lt;br /&gt;
&amp;lt;DD&amp;gt;Jose Izarzugaza (Txema) ([http://teaching.healthtech.dtu.dk/material/22126/Intro_to_variation.pdf Lecture slides])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.25-14.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment postprocessing &amp;amp; variant calling&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/post_alignment_variantcalling.pdf Lecture slides])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-14.15&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.15-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Postprocessing &amp;amp; variant calling&lt;br /&gt;
([[Postprocess exercise]]) &lt;br /&gt;
([[Postprocess solution]])&lt;br /&gt;
([[SNP calling exercise]])&lt;br /&gt;
([[SNP calling solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, June 12&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;de novo assembly &amp;amp; Metagenomics&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.45  &lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: de novo assembly&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/de_novo_assembly_course.pdf Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/debruijn_handout.pdf Handout]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.45-10.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: de novo assembly&lt;br /&gt;
([[denovo exercise]])&lt;br /&gt;
([[denovo solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.45 &lt;br /&gt;
&amp;lt;DD&amp;gt;Metagenomics &amp;amp; Binning&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Metagenomics_assembly.pdf Lecture slides])&lt;br /&gt;
&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Jakob Nissen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-16.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Metagenomic de novo assembly&lt;br /&gt;
([[Metagenomic assembly exercise]])&lt;br /&gt;
([[Metagenomic assembly solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, June 13&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Quantitative Metagenomics and Test&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.45&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Quantitative Metagenomics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/quantitative_metagenomics.pdf Lecture slides])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.45-10.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Quantitative Metagenomics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomics Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomicsSolution Solution]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.45&lt;br /&gt;
&amp;lt;DD&amp;gt;Recap Test&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Recap_test_2019.pdf Test])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.45-14.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-16.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Time to work on this weeks exercises&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, June 14&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;RNA-seq and Cancer-seq&#039;&#039;&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.45&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: RNAseq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/NGS_RNA-seq_2019.pdf Lecture slides])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Fransesca Bertolini&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.45-10.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: RNAseq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/RNAseq_exercise_2019_new.docx Exercise]) &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/RNAseq_answers_2019_new.txt Solution]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertoloni, Gisle Vestergaard, Katrine Højholt, Jakob Nissen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.45  &lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Cancer-seq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/CancerGenomics_Izarzugaza.pdf Lecture slides]) &lt;br /&gt;
&amp;lt;DD&amp;gt;Jose Izarzugaza (Txema)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cancer-seq&lt;br /&gt;
([https://github.com/aroneklund/DTU-27626-cancer Exercise])&lt;br /&gt;
&amp;lt;DD&amp;gt;Jose Izarzugaza (Txema), Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, June 17&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Ancient DNA &amp;amp; Tech talks&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-10.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;Ancient DNA&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/dtu_adna.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Ancient DNA&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/adna_practical.txt Exercise])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora, Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-16.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk work &amp;amp; [http://teaching.healthtech.dtu.dk/material/22126/TechTalks.tar Presentations]&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, June 18&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;P&amp;gt;&#039;&#039;Project work&#039;&#039;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-9.45  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Projects.pdf Lecture slides] [http://teaching.healthtech.dtu.dk/material/22126/posters.tar.gz Examples from previous courses])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.45-10.45  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.45-11.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-16.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Prepare presentations for tomorrow&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, June 19&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work &amp;amp; Project Presentations&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-12.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-14.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;Project Presentations&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, June 20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-15.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, June 21&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-15.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Jose Izarzugaza (Txema), Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, June 24&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-15.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, June 25&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9.00-16.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-15.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, June 26&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project Work &amp;amp; Poster Printing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Print your poster, it is possible to print in DTU library for 16-30kr.&lt;br /&gt;
&amp;lt;DD&amp;gt;[http://teaching.healthtech.dtu.dk/material/22126/Posters.pdf Poster guide &amp;amp; requirements]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-12.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Q&amp;amp;A: Practical information about the [http://teaching.healthtech.dtu.dk/material/22126/exam.pdf Exam]&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Jakob Nissen, Katrine Højholt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;B&amp;gt;Thursday, June 27&amp;lt;/B&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Poster session - in the hall in front of the Section for Bioinformatics (building 208)&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10.00-14.00  &lt;br /&gt;
&amp;lt;DD&amp;gt;Poster session part (&#039;&#039;&#039;exam&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;lt;DT&amp;gt;12.00-13.00 &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.00-13.45  &lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: ChIP-seq&lt;br /&gt;
(&amp;lt;a href=&amp;quot;http://www.cbs.dtu.dk/courses/27626/Lectures/Chipseq.pdf&amp;quot; 	target= blank&amp;gt;Lecture slides&amp;lt;/A&amp;gt;)&lt;br /&gt;
&amp;lt;DD&amp;gt;Federico De Masi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;13.45-14.00&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;14.00-16.00&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: ChIP-seq&lt;br /&gt;
(&amp;lt;a href=&amp;quot;http://www.cbs.dtu.dk/courses/27626/Exercises/ChIP_exercise.pdf&amp;quot; 	target= blank&amp;gt;Exercise&amp;lt;/A&amp;gt;)&lt;br /&gt;
&amp;lt;DD&amp;gt;Federico De Masi, Gisle Vestergaard, Jane Rasmussen&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Metagenomic_assembly_solution&amp;diff=79</id>
		<title>Metagenomic assembly solution</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Metagenomic_assembly_solution&amp;diff=79"/>
		<updated>2024-03-19T16:09:45Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;Q1. We cant really find the bell shaped distributions in our samples - except for in MH0032 where there are two very small bell shaped coverage distributions.  Q2. This is because we have many organisms with relative low abundance. This makes it very hard to distinguish them using coverage information.  Q3. It will probably perform much like SOAPdenovo.  Q4. There arent really any major differences in the coverage distributions between the assemblers, the metagenome asse...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Q1. We cant really find the bell shaped distributions in our samples - except for in MH0032 where there are two very small bell shaped coverage distributions.&lt;br /&gt;
&lt;br /&gt;
Q2. This is because we have many organisms with relative low abundance. This makes it very hard to distinguish them using coverage information.&lt;br /&gt;
&lt;br /&gt;
Q3. It will probably perform much like SOAPdenovo.&lt;br /&gt;
&lt;br /&gt;
Q4. There arent really any major differences in the coverage distributions between the assemblers, the metagenome assemblers are having as many problems as the standard assembler. The coverage distribution tells us that by far the most contigs have fairly low coverage in the assembly and this is also what we expect. &lt;br /&gt;
&lt;br /&gt;
Q5. There arent really any major differences between the assemblies from MetaVelvet and Soapdenovo. However the Megahit assembly actually seems to be as long as the other assemblies, while having a larger mean scaffold size and a longer N50, meaning that it was able to assemble the metagenome into longer pieces.&lt;br /&gt;
&lt;br /&gt;
Q6. MH0032: 84606 ; MH0047: around 70,000. 2-4 times of human genes.&lt;br /&gt;
&lt;br /&gt;
Q7. We only count it once because they are from the same DNA fragment - ie. it was only present once.&lt;br /&gt;
&lt;br /&gt;
Q8. If each pair map to a different gene then we count it as one hit to each gene, because we have seen them both once (our DNA fragment just happened to be spanning both).&lt;br /&gt;
&lt;br /&gt;
Q9. There are both genes in common and genes specific for each sample. Most of the genes have very low abundance (the blue field near 0) - this is also what we expected from the k-mer distributions (Q1).&lt;br /&gt;
&lt;br /&gt;
Q10. Many of the species have very few genes, so we could probably not really trust all of them. We need to have a better reference genome set that covers more of the genomes in our samples (human gut). We could blast vs. human gut species instead.&lt;br /&gt;
&lt;br /&gt;
Q11.Yes there are!&lt;br /&gt;
&lt;br /&gt;
Q12. We can see that several Prevotella species are very abundant in the MH0032 individual compared to MH0047. Probably the MH0032 individual has the Prevotella enterotype.&lt;br /&gt;
&lt;br /&gt;
Q13. 36 bins were identified. You can think of the bins as a clustering of the contig into what we believe are genomes. Importantly there will be errors and list will not be complete.&lt;br /&gt;
&lt;br /&gt;
Q14. The length of the bins vary from 200k to 3.5Mb, why do you think this is?&lt;br /&gt;
&lt;br /&gt;
Q15. We have both very nice bins (in the top) with high completeness and low contamination and bins that are less complete with higher contamination. The bins without marker genes could be incomplete bins or perhaps something that is not well known?&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Metagenomic_assembly_exercise&amp;diff=78</id>
		<title>Metagenomic assembly exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Metagenomic_assembly_exercise&amp;diff=78"/>
		<updated>2024-03-19T16:09:05Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  &amp;lt;p&amp;gt;In this exercise we will try &amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; assemble a metagenomic dataset of Illumina paired end reads from a stool sample. The data is part of the MetaHit project and was published [http://www.nature.com/nature/journal/v464/n7285/full/nature08821.html here]. These are just two samples of 396, in the next exercise (tomorrow) you will analyze data from 124 samples. Today, you will try to: &amp;lt;OL&amp;gt; 	&amp;lt;LI&amp;gt;Analyze k-mer distributions 	&amp;lt;LI&amp;gt;Assemble using SOA...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;In this exercise we will try &amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; assemble a metagenomic dataset of Illumina paired end reads from a stool sample. The data is part of the MetaHit project and was published [http://www.nature.com/nature/journal/v464/n7285/full/nature08821.html here]. These are just two samples of 396, in the next exercise (tomorrow) you will analyze data from 124 samples. Today, you will try to:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;Analyze k-mer distributions&lt;br /&gt;
	&amp;lt;LI&amp;gt;Assemble using SOAPdenovo and MetaVelvet (well, it is already done)&lt;br /&gt;
   &amp;lt;LI&amp;gt;Analyze output from metagenomic assemblies&lt;br /&gt;
   &amp;lt;LI&amp;gt;Gene prediction and clustering on metagenomic data&lt;br /&gt;
	&amp;lt;LI&amp;gt;Create a gene abundance matrix&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;&amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; assembly of metagenomic data&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Analyze k-mer distributions&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Assembly of metagenomic data is much harder than assembly of single organism datasets. Here we will use SOAPdenovo as we did in the de novo assembly exercise and MetaVelvet. Let us first look at the k-mer coverage of our data, we already counted the kmers for you (else you could use jellyfish as we did for the V. cholerae exercise) and lets plot it:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir meta&lt;br /&gt;
cd meta&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/kmer_counts/MH0047.histo .&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/kmer_counts/MH0032.histo .&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
pdf(file=&amp;quot;kmerFreq.pdf&amp;quot;, width=12, height=12)&lt;br /&gt;
par(mfrow=c(2,1))&lt;br /&gt;
d = read.table(&amp;quot;MH0047.histo&amp;quot;)&lt;br /&gt;
barplot(d[,2], main=&amp;quot;MH0047 - Kmer Frequencies&amp;quot;, xlab=&amp;quot;K-mer coverage&amp;quot;, xlim=c(1,400), ylim=c(0,1e6))&lt;br /&gt;
&lt;br /&gt;
d = read.table(&amp;quot;MH0032.histo&amp;quot;)&lt;br /&gt;
barplot(d[,2], main=&amp;quot;MH0032 - Kmer Frequencies&amp;quot;, xlab=&amp;quot;K-mer coverage&amp;quot;, xlim=c(1,400), ylim=c(0,1e6))&lt;br /&gt;
dev.off()&lt;br /&gt;
q()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open the plot by downloading and viewing or using acroread.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
evince kmerFreq.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q1. Can you identify the peak(s) in the Gaussian (bell-shaped) distributions in the two plots?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You should see that compared to the &amp;lt;i&amp;gt;V. cholera&amp;lt;/i&amp;gt; sample that we used in the &amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; exercise we havent got the same nice peak. Actually the x-axis in the plots goes from 1-400 so there seem to be something with quite high coverage in the MH0032 sample, however by far most of the sequences can not be separated from each other in terms of different abundance.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q2. Can you think of why the coverage distributions looks like this with many sequences with &amp;quot;lower&amp;quot; coverage?&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q3. Given that MetaVelvet works by dividing the de bruijn graph using coverage peaks do you think it will perform better or worse compared to SOAPdenovo?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;&amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; assembly&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Unfortunately because the assemblies takes 30-45 mins and uses 10-25Gb of RAM each you will not run the assemblies in the exercise, but you can see the code that I used to run it here [http://teaching.healthtech.dtu.dk/22126/index.php/Denovo_code code] if you need to assemble some genomes for the projects.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Instead copy the contigs and scaffolds to your folder and filter for minimum 100 bp:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/assemblies/MH0047.soap.scafSeq MH0047.soap.fa&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/assemblies/MH0047.metavelvet.contigs.fa MH0047.velvet.fa&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/assemblies/MH0047.megahit.contigs.fa MH0047.megahit.fa&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/assemblies/MH0047.spades.fa MH0047.spades.fa&lt;br /&gt;
&lt;br /&gt;
fastx_filterfasta.py --i MH0047.soap.fa --min 100&lt;br /&gt;
fastx_filterfasta.py --i MH0047.velvet.fa --min 100&lt;br /&gt;
fastx_filterfasta.py --i MH0047.megahit.fa --min 100&lt;br /&gt;
fastx_filterfasta.py --i MH0047.spades.fa --min 100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Ok now lets calculate coverage of the MetaVelvet and SOAPdenovo assemblies and plot them (the Megahit assembly does not have that information ready available so we will skip it).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fastx_soapcov.py --i MH0047.soap.fa.filtered_100.fa &amp;gt; MH0047.soap.cov&lt;br /&gt;
fastx_velvetcov.py --i MH0047.velvet.fa.filtered_100.fa &amp;gt; MH0047.velvet.cov&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
library(plotrix)&lt;br /&gt;
par(mfrow=c(1,2))&lt;br /&gt;
dat=read.table(&amp;quot;MH0047.soap.cov&amp;quot;, sep=&amp;quot;\t&amp;quot;)&lt;br /&gt;
weighted.hist(w=dat[,2], x=dat[,1], breaks=seq(0,100, 1), main=&amp;quot;SOAPdenovo - Weighted coverage&amp;quot;, xlab=&amp;quot;Contig coverage&amp;quot;)&lt;br /&gt;
dat=read.table(&amp;quot;MH0047.velvet.cov&amp;quot;, sep=&amp;quot;\t&amp;quot;)&lt;br /&gt;
weighted.hist(w=dat[,2], x=dat[,1], breaks=seq(0,100, 1), main=&amp;quot;MetaVelvet - Weighted coverage&amp;quot;, xlab=&amp;quot;Contig coverage&amp;quot;)&lt;br /&gt;
dev.print(&amp;quot;MH0047.coverage.pdf&amp;quot;, device=pdf)&lt;br /&gt;
q()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open the plot by downloading and viewing or using acroread.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
evince MH0047.coverage.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q4. Are there any differences between the two assemblies and what can you tell about the assembly from the coverage distributions?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Finally lets look at the stats for the three assemblies. We can either use paste to compare the files (paste file1 file2 file3 file4) but it becomes cumbersome when there are more than two files. Instead we will use R to create a table (assembly.stats.tab) and plot some of the key stats (assembly.stats.pdf).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
assemblathon_stats.pl -csv MH0047.soap.fa.filtered_100.fa &amp;gt; MH0047.soap.fa.filtered_100.asm&lt;br /&gt;
assemblathon_stats.pl -csv MH0047.velvet.fa.filtered_100.fa &amp;gt; MH0047.velvet.fa.filtered_100.asm&lt;br /&gt;
assemblathon_stats.pl -csv MH0047.megahit.fa.filtered_100.fa &amp;gt; MH0047.megahit.fa.filtered_100.asm&lt;br /&gt;
assemblathon_stats.pl -csv MH0047.spades.fa.filtered_100.fa &amp;gt; MH0047.spades.fa.filtered_100.asm&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
soap=read.csv(&amp;quot;MH0047.soap.fa.filtered_100.csv&amp;quot;)&lt;br /&gt;
velvet=read.csv(&amp;quot;MH0047.velvet.fa.filtered_100.csv&amp;quot;)&lt;br /&gt;
megahit=read.csv(&amp;quot;MH0047.megahit.fa.filtered_100.csv&amp;quot;)&lt;br /&gt;
spades=read.csv(&amp;quot;MH0047.spades.fa.filtered_100.csv&amp;quot;)&lt;br /&gt;
df = t(rbind(soap, velvet, megahit, spades)[,-1])&lt;br /&gt;
options(scipen=999)&lt;br /&gt;
colnames(df) = c(&amp;quot;Soap&amp;quot;, &amp;quot;Velvet&amp;quot;, &amp;quot;Megahit&amp;quot;, &amp;quot;Spades&amp;quot;)&lt;br /&gt;
write.table(df, &amp;quot;assembly.stats.tab&amp;quot;, quote=FALSE, sep=&amp;quot;\t&amp;quot;)&lt;br /&gt;
par(mfrow=c(2,2))&lt;br /&gt;
barplot(df[1,], main=rownames(df)[1], ylab=&amp;quot;Count&amp;quot;)&lt;br /&gt;
barplot(df[2,],  main=rownames(df)[2], ylab=&amp;quot;Base pairs&amp;quot;)&lt;br /&gt;
barplot(df[16,],  main=rownames(df)[16], ylab=&amp;quot;Base pairs&amp;quot;)&lt;br /&gt;
barplot(df[18,],  main=rownames(df)[18], ylab=&amp;quot;Base pairs&amp;quot;)&lt;br /&gt;
dev.print(file=&amp;quot;assembly.stats.pdf&amp;quot;, device=pdf)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q5. Are there any large differences in the stats of the four assemblies?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Gene predictions and clustering&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets try to predict genes, we do this using [https://github.com/hyattpd/Prodigal Prodigal]. It is together with [http://exon.gatech.edu/meta_gmhmmp.cgi MetaGeneMark] one of the best and fastest prokaryotic gene finders available. We are using it in the metagenomic setting by setting &amp;quot;-p meta&amp;quot; and outputting the predictions as dna and as gff-format. Lets use the Spades assembly and for the sake of time lets also only use the contigs with a size &amp;gt;500bp (normally you could use down to 100bp). NB: The gene prediction takes 3-4 minutes each and we are running each in the background (the &amp;quot;&amp;amp;&amp;quot;) - wait for the commands to finish. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/assemblies/MH0032.spades.fa MH0032.spades.fa&lt;br /&gt;
fastx_filterfasta.py --i MH0032.spades.fa --min 500&lt;br /&gt;
fastx_filterfasta.py --i MH0047.spades.fa --min 500&lt;br /&gt;
&lt;br /&gt;
prodigal -p meta -f gff -d MH0047.prodigal.fna -i MH0047.spades.fa.filtered_500.fa -o MH0047.prodigal.gff &amp;amp;&lt;br /&gt;
prodigal -p meta -f gff -d MH0032.prodigal.fna -i MH0032.spades.fa.filtered_500.fa -o MH0032.prodigal.gff &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets look at how many genes were predicted?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep &amp;quot;&amp;gt;&amp;quot; -c MH00*.prodigal.fna&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q6. How many genes are there in the samples - consider how many genes humans have (22k)?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To be able to create a count matrix of the gene abundances we must create a common set of genes of the all the samples we want to compare (in our case only two). To do this we can use [http://weizhong-lab.ucsd.edu/cd-hit/ cd-hit] which will cluster the genes based on sequence similarity and select a representative gene from each cluster that we will then use. First we combine the two gene sets, rename the genes so that names are unique and then cluster. We use a sequence identity threshold of 95% and say that the alignment must cover 90% of the sequence as shown below. However the clustering takes 15 min so you can copy the file I made to here:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# code for making it yourself&lt;br /&gt;
cat MH0047.prodigal.fna MH0032.prodigal.fna | rename_genes.sh humangut &amp;gt; combined.prodigal.fna&lt;br /&gt;
cd-hit-est -i combined.prodigal.fna -o combined.prodigal.cdhit.fna -c 0.95 -n 8 -l 100 -aS 0.9 -d 0 -B 0 -T 2 -M 10000&lt;br /&gt;
&lt;br /&gt;
# code to copy&lt;br /&gt;
cp /home/27626/exercises/metagenomics/combined.prodigal.cdhit.fna .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Create gene abundance matrix&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Ok now that we have our common set of genes we can determine the abundance of each gene in our sample - we do that by mapping the reads from our samples to the common gene set. This we will do using bwa, but for this exercise, we will only use a subset of 0.5 mill reads from each of the libraries (&amp;lt;b&amp;gt;NB: this is only 1% of the total amount of reads&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bwa index combined.prodigal.cdhit.fna&lt;br /&gt;
&lt;br /&gt;
ln -s /home/27626/exercises/metagenomics/sub/* .&lt;br /&gt;
&lt;br /&gt;
bwa mem -t 2 -M combined.prodigal.cdhit.fna MH0032_081224.1.fq.gz MH0032_081224.2.fq.gz | samtools view -Sb - &amp;gt; MH0032_081224.bam&lt;br /&gt;
bwa mem -t 2 -M combined.prodigal.cdhit.fna MH0032_091021.1.fq.gz MH0032_091021.2.fq.gz | samtools view -Sb - &amp;gt; MH0032_091021.bam&lt;br /&gt;
&lt;br /&gt;
bwa mem -t 2 -M combined.prodigal.cdhit.fna MH0047_081223.1.fq.gz MH0047_081223.2.fq.gz | samtools view -Sb - &amp;gt; MH0047_081223.bam&lt;br /&gt;
bwa mem -t 2 -M combined.prodigal.cdhit.fna MH0047_090201.1.fq.gz MH0047_090201.2.fq.gz | samtools view -Sb - &amp;gt; MH0047_090201.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now that we have mapped the reads back to the gene set we can start counting. However before we start we need to consider what to do with paired end reads where both pairs map to the same gene.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q7. If both pairs map to the same gene we only count it as one hit - can you think of why?&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q8. What should we do if each pair map to different genes?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We filter pairs mapping to the same gene using the read_count_bam.pl script below and then only takes reads that are mapped with a mapping quality better than 30 (-q30 below). After that we sort the bam-files:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools view -h MH0032_081224.bam | read_count_bam.pl | samtools view -Su -q30 - | samtools sort -O BAM -o MH0032_081224.sort.bam -&lt;br /&gt;
samtools view -h MH0032_091021.bam | read_count_bam.pl | samtools view -Su -q30 - | samtools sort -O BAM -o MH0032_091021.sort.bam - &lt;br /&gt;
samtools view -h MH0047_081223.bam | read_count_bam.pl | samtools view -Su -q30 - | samtools sort -O BAM -o MH0047_081223.sort.bam -&lt;br /&gt;
samtools view -h MH0047_090201.bam | read_count_bam.pl | samtools view -Su -q30 - | samtools sort -O BAM -o MH0047_090201.sort.bam -&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now lets merge them to sample-bams and index them:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools merge MH0032.sort.bam MH0032_081224.sort.bam MH0032_091021.sort.bam&lt;br /&gt;
samtools merge MH0047.sort.bam MH0047_081223.sort.bam MH0047_090201.sort.bam&lt;br /&gt;
samtools index MH0032.sort.bam&lt;br /&gt;
samtools index MH0047.sort.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now it is very easy to do the counting using samtools idxstats. It will output three columns: gene-name, gene-length, no. mapped_reads, no. unmapped_reads. Try it out:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools idxstats MH0032.sort.bam | less&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets create a count matrix then. First we create a header line using &amp;quot;echo&amp;quot;, then we get all of the gene-names, then the counts and finally we combined it one file:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo -e &amp;quot;Gene\tMH0032\tMH0047&amp;quot; &amp;gt; header&lt;br /&gt;
samtools idxstats MH0032.sort.bam | grep -v &amp;quot;*&amp;quot; | cut -f1 &amp;gt; gene_names&lt;br /&gt;
samtools idxstats MH0032.sort.bam | grep -v &amp;quot;*&amp;quot; | cut -f3 &amp;gt; counts1&lt;br /&gt;
samtools idxstats MH0047.sort.bam | grep -v &amp;quot;*&amp;quot; | cut -f3 &amp;gt; counts2&lt;br /&gt;
paste gene_names counts1 counts2 | cat header - &amp;gt; count_matrix.sub.tab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Take a look at the count matrix using less. Also lets try to load it into R and look at the count distribution between the samples:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less count_matrix.sub.tab&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
d = read.table(&amp;quot;count_matrix.sub.tab&amp;quot;, sep=&amp;quot;\t&amp;quot;, header=TRUE, as.is=TRUE)&lt;br /&gt;
library(ggplot2)&lt;br /&gt;
p = ggplot(d, aes(x=MH0032, y=MH0047)) + stat_binhex(bins=50) + scale_fill_continuous(low=&amp;quot;grey50&amp;quot;, high=&amp;quot;blue&amp;quot;)&lt;br /&gt;
p + geom_abline(slope=1, col=&amp;quot;white&amp;quot;) + labs(title=&amp;quot;Sub count matrix&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;count.sub.hex.pdf&amp;quot;)&lt;br /&gt;
quit(&amp;quot;no&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You see that the counts per gene are quite low, but we actually previous course years used this data. But lets instead try to use a version of the count-matrix that I created using the full data. By now you have probably realised that metagenomics is &amp;lt;b&amp;gt;lots of data&amp;lt;/b&amp;gt; and we are only using two samples with not that many reads - our [http://www.nature.com/nature/journal/v464/n7285/full/nature08821.html paper] has 396 samples in total! We will copy it to here and plot the same plot of counts as before. Last we open both in evince.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /home/27626/exercises/metagenomics/full_countmatrix/count_matrix.tab .&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
d = read.table(&amp;quot;count_matrix.tab&amp;quot;, sep=&amp;quot;\t&amp;quot;, header=TRUE, as.is=TRUE)&lt;br /&gt;
library(ggplot2)&lt;br /&gt;
p = ggplot(d, aes(x=MH0032, y=MH0047)) + stat_binhex(bins=50) + scale_fill_continuous(low=&amp;quot;grey50&amp;quot;, high=&amp;quot;blue&amp;quot;)&lt;br /&gt;
p + geom_abline(slope=1, col=&amp;quot;white&amp;quot;) + labs(title=&amp;quot;Full count matrix&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;count.hex.pdf&amp;quot;)&lt;br /&gt;
quit(&amp;quot;no&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
evince count.*hex.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q9. How does the overlap between the samples look like, are there genes in common and/or genes specific for each samples?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Annotation of the count matrix&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now that we have our count matrix we can annotate the genes according to species or function. Lets try to annotate them according to species.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To do that we need to blast all of the genes towards a database of organisms that we expect to be present - in our case lets blast vs. all fully sequenced bacteria at NCBI (&amp;gt;11000 bacterial chromosomes and plasmids) and 373 bacterial genomes from the human gut that we have published. The blast of our ~140k genes against this database takes 10 mins using 5 cores so you will not run this (if you really want to you can) - instead you can use the file I made. If you were to run the blast yourself the command is this:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# copy this file to your folder, it is the blast output #&lt;br /&gt;
cp /home/27626/exercises/metagenomics/combined.prodigal.cdhit.m8 .&lt;br /&gt;
&lt;br /&gt;
# command to blast genes vs. bacteria - do not run it in the exercise (unless you really want to) #&lt;br /&gt;
# the -num_threads tells blast how many cores to use, eg. here we use 5 of the 28 cores on the machine #&lt;br /&gt;
# -max_target_seqs tells blast to only output the five best hits instead of the best 500 hits! #&lt;br /&gt;
blastn -query combined.prodigal.cdhit.fna -db /home/27626/exercises/metagenomics/blastdb/Bacteria_MGS.20160531 -evalue 1e-2 -outfmt 6 \&lt;br /&gt;
   -max_target_seqs 5 -num_threads 5 -out combined.prodigal.cdhit.m8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Take a look at the blast-report (&amp;lt;b&amp;gt;combined.prodigal.cdhit.m8&amp;lt;/b&amp;gt;), the output is in blast-tabular format (also known as m8) - the fields are: query name, subject name, percent identity, aligned length, no. mismatches, no. gaps, query start, query end, subject start, subject end, e-value, bitscore. You should see that there often are several hits pr. gene (query). We will select only the best hit and require that it has &amp;gt;80% identity over 100bp before we will annotate the gene to a species. This is achieved using this perl-oneliner:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
perl -ane &#039;BEGIN{$prev=&amp;quot;&amp;quot;}; if ($F[0] eq $prev) { next } else { if ($F[2] &amp;gt; 80 &amp;amp; $F[3] &amp;gt; 100) { print $_}; $prev = $F[0];}&#039; \&lt;br /&gt;
combined.prodigal.cdhit.m8 &amp;gt; combined.prodigal.cdhit.best.accepted.m8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now lets just take the columns 1 and 2 because these has the information of which gene is annotated to which organism and copy an annotation file to here. Take a look at the &amp;lt;b&amp;gt;Bacteria_MGS.20160531.tab&amp;lt;/b&amp;gt; file (after you copied it to here - see below), you can see that it contains information on each sequence in the blast database and the phylogenetic information of that sequence (eg. phylum, genus, species etc). This is what we will use to figure out which gene comes from which species.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cut -f1,2 combined.prodigal.cdhit.best.accepted.m8 &amp;gt; combined.prodigal.ann&lt;br /&gt;
cp /home/27626/exercises/metagenomics/blastdb/Bacteria_MGS.20160531.tab .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we have:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
	&amp;lt;LI&amp;gt;Count matrix with genes (count.matrix.tab)&lt;br /&gt;
	&amp;lt;LI&amp;gt;Annotation of genes to species-ids (combined.prodigal.ann)&lt;br /&gt;
	&amp;lt;LI&amp;gt;Annotation of species-ids to species names (Bacteria_MGS.20160531.tab)&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
This we will use to create an abundance measure of the species in our sample using an R-script. For each species we determine the abundance of it as the sum of all genes annotated to that particular species:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R --vanilla count_matrix.tab combined.prodigal.ann Bacteria_MGS.20160531.tab species_matrix.tab &amp;lt; /home/27626/bin/create_species_matrix_sum.R&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;p&amp;gt;The script outputs the species matrix and a plot of how many genes that was annotated to each species - try to take a look at the species matrix and at the plot&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less species_matrix.tab&lt;br /&gt;
&lt;br /&gt;
evince genes_pr_species.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q10. When looking at the plot, were there many species for which we could identify most genes? Can you think of how to improve this?&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets plot the species-abundance versus each other in our two samples.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R&lt;br /&gt;
library(ggplot2)&lt;br /&gt;
d = read.table(&amp;quot;species_matrix.tab&amp;quot;, header=TRUE, sep=&amp;quot;\t&amp;quot;)&lt;br /&gt;
p = ggplot(d, aes(x=MH0032, y=MH0047)) + stat_binhex(bins=50) + scale_fill_continuous(name=&amp;quot;No. species&amp;quot;, low=&amp;quot;grey50&amp;quot;, high=&amp;quot;blue&amp;quot;)&lt;br /&gt;
p + geom_abline(slope=1, col=&amp;quot;white&amp;quot;) + labs(title=&amp;quot;Species counts&amp;quot;, x=&amp;quot;Abundance in MH0032&amp;quot;, y=&amp;quot;Abundance in MH0047&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;species.count.hex.pdf&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q11. Are there some species with differential abundance between the two samples?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let us try to plot the species with the most differences in the abundance:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R&lt;br /&gt;
sm=read.table(&amp;quot;species_matrix.tab&amp;quot;, sep=&amp;quot;\t&amp;quot;, header=TRUE, as.is=TRUE)&lt;br /&gt;
sm$diff = sm[,1]-sm[,2]&lt;br /&gt;
min_diff = sm[order(abs(sm$diff)),][1:20,]&lt;br /&gt;
max_diff = sm[rev(order(abs(sm$diff))),][1:20,]&lt;br /&gt;
# plot differences&lt;br /&gt;
par(mar=c(9.5,4.1,4.1,2.1))	# change bottom margin to 9 cm&lt;br /&gt;
barplot(as.matrix(t(max_diff[,1:2])), beside=TRUE, las=2, cex.names=0.75, col=c(&amp;quot;grey20&amp;quot;, &amp;quot;grey80&amp;quot;), ylab=&amp;quot;Species abundance&amp;quot;, main=&amp;quot;Species with most difference&amp;quot;)&lt;br /&gt;
legend(&amp;quot;topright&amp;quot;, legend=c(&amp;quot;MH0032&amp;quot;, &amp;quot;MH0047&amp;quot;), bty=&amp;quot;n&amp;quot;, fill=c(&amp;quot;grey20&amp;quot;, &amp;quot;grey80&amp;quot;))&lt;br /&gt;
dev.print(file=&amp;quot;species.differences.pdf&amp;quot;, device=pdf)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q12. Which genus seems to have the highest number of different species with most difference in abundance?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This is actually a very important genus in the human gut, one of the key drivers in determining which enterotype one is associated with - you can read more [http://www.nature.com/nature/journal/v473/n7346/full/nature09944.html here]. In the exercise on Quantitative metagenomics will try to analyze a species matrix of data from 120 individuals.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Binning using metabat (optional)&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets try to do unsupervised binning of the contigs using [https://bitbucket.org/berkeleylab/metabat Metabat]. To do that we will combine our contigs and cluster them using metabat so that if we have the same contig assembled twice we only write it once (this is quite tricky actually and if you have many samples you might want to do a co-assembly). First lets cat them together and do the run the clustering, then map the reads to the assembly (as above). &amp;lt;b&amp;gt;NB: I commented out (&amp;quot;#&amp;quot;) all commands as you should not run them now - it takes a long time to run.&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ln -s /home/27626/exercises/metagenomics/MH0032/concat/MH0032.1.fq.gz .&lt;br /&gt;
# ln -s /home/27626/exercises/metagenomics/MH0032/concat/MH0032.2.fq.gz .&lt;br /&gt;
# ln -s /home/27626/exercises/metagenomics/MH0047/concat/MH0047.1.fq.gz .&lt;br /&gt;
# ln -s /home/27626/exercises/metagenomics/MH0047/concat/MH0047.2.fq.gz .&lt;br /&gt;
# cat MH0032.spades.fa MH0047.spades.fa | rename_contigs.sh humangut &amp;gt; both.spades.fa&lt;br /&gt;
# cd-hit-est -i both.spades.fa -o both.spades.cdhit.fna -c 0.95 -n 8 -l 100 -aS 0.9 -d 0 -B 0 -T 8 -M 30000&lt;br /&gt;
# bwa index both.spades.cdhit.fna&lt;br /&gt;
# bwa mem -t 10 both.spades.cdhit.fna MH0032.1.fq.gz MH0032.2.fq.gz | samtools view -Sb - &amp;gt; MH0032.bam&lt;br /&gt;
# bwa mem -t 10 both.spades.cdhit.fna MH0047.1.fq.gz MH0047.2.fq.gz | samtools view -Sb - &amp;gt; MH0047.bam&lt;br /&gt;
# samtools sort -O BAM -o MH0032.metabat.sort.bam MH0032.bam&lt;br /&gt;
# samtools sort -O BAM -o MH0047.metabat.sort.bam MH0047.bam&lt;br /&gt;
# samtools index MH0032.metabat.sort.bam&lt;br /&gt;
# samtools index MH0047.metabat.sort.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Ok so instead of running all that yourself you can link the files from me and start directly with the metabat command.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ln -s /home/27626/exercises/metagenomics/metabat_on_spades/MH*.metabat.sort.bam .&lt;br /&gt;
ln -s /home/27626/exercises/metagenomics/metabat_on_spades/MH*.metabat.sort.bam.bai .&lt;br /&gt;
ln -s /home/27626/exercises/metagenomics/metabat_on_spades/both.spades.cdhit.fna .&lt;br /&gt;
runMetaBat.sh both.spades.cdhit.fna MH0032.metabat.sort.bam MH0047.metabat.sort.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Take a look a the output-folder, here you should see the bins it identified. These are the &amp;quot;genomes&amp;quot; that it has learnt from the data using tetra-nucleotide-frequency content - if there are more than 10 samples it is also using co-abundance.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q13. How many bins was identified? &amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Try to look at the length of the bins:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fastx_sumofsequence.py -f fasta both.spades.cdhit.fna.metabat-bins/*.fa | sort -k2 -n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Q14. How many bases are there in the bins? Do you think they are all complete?&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets try to investigate the bins - this can be done by blasting the contigs in each bin and analyzing the output or alternative using [https://github.com/Ecogenomics/CheckM CheckM]. We will try to use checkM which is an automated pipeline that uses single marker genes to assess how complete each bin is and if they are potentially contaminated.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
checkm lineage_wf both.spades.cdhit.fna.metabat-bins checkm -x fa -t 2 -f checkm.output&lt;br /&gt;
# cp /home/27626/exercises/metagenomics/checkm.output .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If checkm is taking a long time to run you can copy my file (the last line above) by removing the hash-sign. Now lets take a look at the &amp;quot;checkm.output&amp;quot; file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q15. Does it look like our bins are good or bad (or both?). You may notice some bins without any marker genes, does this mean they are not real?&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q16. Which next steps could one do?&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Additional analyses that can be done&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We can investigate the abundance of different functional characteristics. This can be achieved by eg. blasting all of our genes to different databases such as ncbi-nt, kegg, eggnog etc.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Congratulations you finished the exercise!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;H2&amp;gt; EXTRA COMMANDS FOR THE PROJECT &amp;lt;/H2&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Using linclust instead of cd-hit&amp;lt;/H3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;cd-hit for clustering of genes can be a bit slow. Instead you can run linclust which is &amp;lt;i&amp;gt;much&amp;lt;/i&amp;gt; faster. The output is the combined.prodigal.linclust.fna file.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load mmseqs2/release_6-f5a1c&lt;br /&gt;
mmseqs createdb combined.prodigal.cdhit.fna combined&lt;br /&gt;
mkdir tmp&lt;br /&gt;
mmseqs linclust combined combined_cluster tmp -c 0.9 --min-seq-id 0.95  --threads 8&lt;br /&gt;
mmseqs result2repseq combined combined_cluster combined_clu_rep&lt;br /&gt;
mmseqs result2flat combined combined combined_clu_rep combined.prodigal.linclust.fna --use-fasta-header &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Preparing metabat&lt;br /&gt;
&lt;br /&gt;
cd /home/27626/exercises/metagenomics/metabat_on_spades&lt;br /&gt;
cat ../assemblies/MH0032.spades.fa ../assemblies/MH0047.spades.fa | /home/27626/bin/rename_contigs.sh humangut &amp;gt; both.spades.fa&lt;br /&gt;
cd-hit-est -i both.spades.fa -o both.spades.cdhit.fna -c 0.95 -n 8 -l 100 -aS 0.9 -d 0 -B 0 -T 24 -M 10000&lt;br /&gt;
&lt;br /&gt;
ln -s both.spades.fa both.spades.cdhit.fna&lt;br /&gt;
bwa index both.spades.cdhit.fna&lt;br /&gt;
bwa mem -t 20 both.spades.cdhit.fna ../MH0032/concat/MH0032.1.fq.gz ../MH0032/concat/MH0032.2.fq.gz | samtools view -Sb -&amp;gt; MH0032.bam&lt;br /&gt;
bwa mem -t 20 both.spades.cdhit.fna ../MH0047/concat/MH0047.1.fq.gz ../MH0047/concat/MH0047.2.fq.gz | samtools view -Sb -&amp;gt; MH0047.bam&lt;br /&gt;
both.spades.cdhit.fna.metabat-bins&lt;br /&gt;
checkm lineage_wf both.spades.cdhit.fna.metabat-bins checkm -x fa -t 2 -f checkm.output&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2020&amp;diff=77</id>
		<title>Program 2020</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2020&amp;diff=77"/>
		<updated>2024-03-19T16:07:17Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;#039;&amp;#039;&amp;#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&amp;#039;&amp;#039;&amp;#039;  Lectures and exercises will take place at the Section for Bioinformatics at the Technical University of Denmark, &amp;#039;&amp;#039;&amp;#039;Building 210, Room H162&amp;#039;&amp;#039;&amp;#039; in Lyngby ([https://goo.gl/maps/hyifvFrZ5cPLroCv8 map]).  The courses has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on Friday 24th of January.  This term we will be using Piazza for class discussion. The...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Lectures and exercises will take place at the Section for Bioinformatics at the Technical University of Denmark, &#039;&#039;&#039;Building 210, Room H162&#039;&#039;&#039; in Lyngby ([https://goo.gl/maps/hyifvFrZ5cPLroCv8 map]).&lt;br /&gt;
&lt;br /&gt;
The courses has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on Friday 24th of January.&lt;br /&gt;
&lt;br /&gt;
This term we will be using Piazza for class discussion. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza [https://piazza.com/danish_technical_university/summer2019/1 here]&lt;br /&gt;
&lt;br /&gt;
=== Course Program - January 2020 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 6&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Introduction - Next Generation Sequencing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am  &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to course &amp;amp; Pre-test&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/1_Introduction_to_course_GR.pdf Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/1_pre-test_2020.pdf Pre-test])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&lt;br /&gt;
&amp;lt;dd&amp;gt;Introduction to NGS &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/1_Introduction_to_NGS_GR.pdf Lecture slides]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:45am&lt;br /&gt;
&amp;lt;dd&amp;gt;2nd and 3rd generation NGS Technologies &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/1_Introduction_to_NGS_technology_GR_2.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk group formation and group work &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/1_Tech_Talks_GR.pdf Lecture slides])&lt;br /&gt;
([https://docs.google.com/spreadsheets/d/1awQ_-KiYC7r3IZXevJSCJ-gDMD8BNye4VOq98zy3z3U/edit?usp=sharing Student Groups]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:30pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Logging on to our Computerome cloud&lt;br /&gt;
([[Logging on to Cloud system]])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Bernadette Kofoed Christiansen, Nanna Møller Barnkob &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:30pm-2:15pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixIntroduction.ppt Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Bernadette Kofoed Christiansen, Nanna Møller Barnkob &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-3:30pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixIntroduction.ppt Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Bernadette Kofoed Christiansen, Nanna Møller Barnkob&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;3:30pm-4:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;First look at data&lt;br /&gt;
([[First look exercise]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Bernadette Kofoed Christiansen, Nanna Møller Barnkob&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tueday, January 7&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Data pre-processing &amp;amp; Genomic Epidemiology&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:45am&lt;br /&gt;
&amp;lt;DD&amp;gt;Data basics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Data_Basics.pdf Lecture slides])&lt;br /&gt;
([[Data basics exercise]])&lt;br /&gt;
([[Data basics solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Bernadette Kofoed Christiansen, Freja Dahl Hede&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Data pre-processing&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Data_preprocessing.pdf Lecture slides])&lt;br /&gt;
([[Data Preprocess exercise]])&lt;br /&gt;
([[Data Preprocess solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Bernadette Kofoed Christiansen, Freja Dahl Hede&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:15pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/2_Alignment_GR.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Alignment &lt;br /&gt;
([[Alignment exercise]])&lt;br /&gt;
([[Alignment solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Bernadette Kofoed Christiansen, Freja Dahl Hede&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 8&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Alignment &amp;amp; Genotyping&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&lt;br /&gt;
&amp;lt;DD&amp;gt;Functional Human Variation &lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi Laspiur, ([http://teaching.healthtech.dtu.dk/material/22126/2020/Intro_to_variation.pdf Lecture slides])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment postprocessing &amp;amp; variant calling&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/3_post_alignment_variantcalling_GR.pdf Lecture slides])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:15am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-12:00pm  &lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Postprocessing &amp;amp; variant calling&lt;br /&gt;
([[Postprocess exercise]]) &lt;br /&gt;
([[Postprocess solution]])&lt;br /&gt;
([[SNP calling exercise]])&lt;br /&gt;
([[SNP calling solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, TBA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:15pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Ancient DNA&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/3_ancientDNA2020.pdf Lecture slides])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Ancient DNA&lt;br /&gt;
([[Ancient DNA exercise]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, TBA&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 9&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;de novo assembly &amp;amp; Metagenomics&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am  &lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: de novo assembly&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/de_novo_assembly_course.pdf Lecture slides])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/debruijn_handout.pdf Handout]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: de novo assembly&lt;br /&gt;
([[denovo exercise]])&lt;br /&gt;
([[denovo solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Nanna Møller Barnkob&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Metagenomics &amp;amp; Binning&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Metagenomics_assembly.pdf Lecture slides])&lt;br /&gt;
&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Metagenomic de novo assembly&lt;br /&gt;
([[Metagenomic assembly exercise]])&lt;br /&gt;
([[Metagenomic assembly solution]]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, January 10&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Quantitative Metagenomics and Test&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Quantitative Metagenomics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/quantitative_metagenomics.pdf Lecture slides])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Quantitative Metagenomics&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomics Exercise])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomicsSolution Solution]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Recap Test&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/Recap_test_2019.pdf Test])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Line Egerod Lund &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Time to work on this week&#039;s exercises&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Line Egerod Lund &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 13&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;RNA-seq and Cancer-seq&#039;&#039;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: RNAseq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/RNA-seq%2013-01-2020.pdf Lecture slides])&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertolini&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: RNAseq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/RNAseq_excercise_2020.docx Exercise]) &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/RNAseq_answers_2020.txt Solution]) &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertoloni, Nanna Møller Barnkob,  Bernadette Kofoed Christiansen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm  &lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Cancer-seq&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/CancerGenomics_Izarzugaza.pdf Lecture slides]) &lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi Laspiur, Nanna Møller Barnkob,  Bernadette Kofoed Christiansen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cancer-seq&lt;br /&gt;
([https://github.com/nannabarnkob/dtu-cancer/blob/master/cancer_seq_exercise.md])&lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi Laspiur, Nanna Møller Barnkob,  Bernadette Kofoed Christiansen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 14&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:55am&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Genomic Epidemiology&lt;br /&gt;
([[Genomic epidemiology exercise]])&lt;br /&gt;
([[Genomic epidemiology solution]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&lt;br /&gt;
&amp;lt;DT&amp;gt;9:55am-10:10am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&amp;lt;DT&amp;gt;10:10am-12:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Case story: Genomic Epidemiology&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/Genomic_epidemiology_NGScourse_Jan2020.pdf Lecture])&lt;br /&gt;
&amp;lt;DD&amp;gt;Pimlapas Leekitecharoenphon (Shinny)&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk work &amp;amp; [http://teaching.healthtech.dtu.dk/material/22126/TechTalks.tar Presentations]&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Line Egerod Lund&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 15&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;P&amp;gt;&#039;&#039;Project work&#039;&#039;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/22126/2020/9_Projects_GR.pdf Lecture slides] [http://teaching.healthtech.dtu.dk/material/22126/posters.tar.gz Examples from previous courses])&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Line Egerod Lund&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:45am  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation, please write group names in the [https://docs.google.com/document/d/1MUkqNE9GSzTupR3ro4EQEybF5UR1TKQ4Dw5usi22tz4/edit?usp=sharing document]&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Line Egerod Lund&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Line Egerod Lund&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-4:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Prepare presentations for tomorrow&lt;br /&gt;
How to get to Gabriel/Shyam/Gisle office: first go to 202, go to the 3rd floor and go to building 204 via the skyway. We are in 252/251 &lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thurday, January 16&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work &amp;amp; Project Presentations&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-12:00pm  &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &lt;br /&gt;
&amp;lt;DD&amp;gt;Project Presentations&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, January 17&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tueday, January 21&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 22&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&lt;br /&gt;
&amp;lt;DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thurday, January 23&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project Work &amp;amp; Poster Printing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Print your poster, it is possible to print in DTU library for 16-30kr.&lt;br /&gt;
&amp;lt;DD&amp;gt;[http://teaching.healthtech.dtu.dk/material/22126/Posters.pdf Poster guide &amp;amp; requirements]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&lt;br /&gt;
&amp;lt;DD&amp;gt;Q&amp;amp;A: Practical information about the [http://teaching.healthtech.dtu.dk/material/22126/exam.pdf Exam]&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, TBA&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;B&amp;gt;Friday, January 24&amp;lt;/B&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Poster session - in the hall of TBA&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-2:00pm  &lt;br /&gt;
&amp;lt;DD&amp;gt;Poster session part (&#039;&#039;&#039;exam&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&amp;lt;HR&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2021&amp;diff=76</id>
		<title>Program 2021</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2021&amp;diff=76"/>
		<updated>2024-03-19T16:06:46Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;!--- &amp;#039;&amp;#039;&amp;#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&amp;#039;&amp;#039;&amp;#039; --&amp;gt;   Lectures and exercises will take place on Discord (https://discord.gg/JxV3pHyHgV). Please register with your full name. Will use Discord for online classes and collaboration with your project partners.  The course has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on Friday 22th of January.  This term, we will be using Piazza for class dis...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;!---&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&#039;&#039;&#039;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lectures and exercises will take place on Discord (https://discord.gg/JxV3pHyHgV). Please register with your full name. Will use Discord for online classes and collaboration with your project partners.&lt;br /&gt;
&lt;br /&gt;
The course has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on Friday 22th of January.&lt;br /&gt;
&lt;br /&gt;
This term, we will be using Piazza for class discussion. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza [https://piazza.com/class/kjernxm6wre7ck here]&lt;br /&gt;
&lt;br /&gt;
=== Course Program - January 2021 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 4&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Introduction - Next Generation Sequencing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to course &amp;amp; Pre-test&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/11_Introduction_to_course_GR.pdf Lecture slides])&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/1_pre-test_2021.pdf Pre-test])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;Introduction to NGS &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/12_Introduction_to_NGS_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;2nd and 3rd generation NGS Technologies &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/13_Introduction_to_NGS_technology_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk group formation and group work &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/14_Tech_Talks_GR.pdf Lecture slides])&lt;br /&gt;
([https://docs.google.com/spreadsheets/d/1Ul_sb43hdxCkenJM9rEPzudyXVWtZVxwIZrxgan9Z_g/edit?usp=sharing Student Groups 2021]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Logging on to our Computerome cloud ([[Logging on to Cloud system]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett,Trine Zachariasen, Gabriel Renaud,  &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:30pm-2:15pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]]) &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-3:30pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX (continued)&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;3:30pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;First look at data&lt;br /&gt;
([[First look exercise]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tueday, January 5&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Data pre-processing &amp;amp; Alignment&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data basics ([https://teaching.healthtech.dtu.dk/material/22126/2021/2_Data_Basics_SG.pdf Lecture slides]) ([[Data basics exercise]]) ([[Data basics exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data pre-processing ([https://teaching.healthtech.dtu.dk/material/22126/2021/2_Data_preprocessing_SG.pdf Lecture slides]) ([[Data Preprocess exercise]]) ([[Data Preprocess exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:15pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment ([https://teaching.healthtech.dtu.dk/material/22126/2021/23_Alignment_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Alignment ([[Alignment exercise]]) ([[Alignment exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 6&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Alignment &amp;amp; Genotyping&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Functional Human Variation&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, ([https://teaching.healthtech.dtu.dk/material/22126/2021/FunctionalHumanVariation_SG.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment postprocessing &amp;amp; variant calling ([https://teaching.healthtech.dtu.dk/material/22126/2021/41_post_alignment_variantcalling_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:15am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Postprocessing &amp;amp; variant calling ([[Postprocess exercise]])  ([[Postprocess_exercise_answers]]) ([[SNP calling exercise]]) ([[SNP_calling_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: de novo assembly ([https://teaching.healthtech.dtu.dk/material/22126/2021/4_de_novo_assembly_course_SG.pdf Lecture slides])([http://teaching.healthtech.dtu.dk/material/22126/debruijn_handout.pdf Handout (TODO)]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: de novo assembly ([[denovo exercise]]) ([[denovo solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 7&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Metagenomics&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Metagenomics &amp;amp; Binning ([https://teaching.healthtech.dtu.dk/material/22126/2021/Metagenomics_binning.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Kaiju: Taxonomic classification ([[Kaiju exercise]]) ([[Kaiju solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Quantitative Metagenomics ([https://teaching.healthtech.dtu.dk/material/22126/2021/Quantitative_metagenomics.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Quantitative Metagenomics ([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomics Exercise]) ([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomicsSolution Solution]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, January 8&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Cell-free DNA and recap test&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Cell-free DNA ([https://teaching.healthtech.dtu.dk/material/22126/2021/cfDNA_lecture_2020_SB.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Søren Besenbacher&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cell free DNA ([[cfDNA exercise]])([[CfDNA_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Søren Besenbacher, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Recap Test ([https://teaching.healthtech.dtu.dk/material/22126/2021/test_2021.pdf Test 2021])([https://teaching.healthtech.dtu.dk/material/22126/2021/test_2021_withA.pdf answers])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Time to work on this week&#039;s exercises&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 11&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;RNA-seq and Cancer-seq&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: RNAseq ([https://teaching.healthtech.dtu.dk/material/22126/2021/RNA-seq%2011-01-2021.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertolini&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: RNAseq ([[Rnaseq_exercise]])  ([[Rnaseq_exercise_answers]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertoloni, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Cancer-seq ([https://teaching.healthtech.dtu.dk/material/22126/2021/CancerGenomics_Izarzugaza%20copy.pdf Lecture slides]) &amp;lt;/DD&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cancer-seq ([[Cancerseq_exercise]]) ([[Cancerseq_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 12&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genomic Epidemiology and tech talk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:55am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Genomic Epidemiology ([[Genomic epidemiology exercise]]) ([[Genomic epidemiology solution]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:55am-10:10am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:10am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Case story: Genomic Epidemiology ([https://teaching.healthtech.dtu.dk/material/22126/2021/Genomic_epidemiology_NGScourse_Jan2021.pdf Lecture])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Pimlapas Leekitecharoenphon (Shinny)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;TechTalks Presentations&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 13&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Ancient DNA &amp;amp; Project work&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Ancient DNA ([https://teaching.healthtech.dtu.dk/material/22126/2021/dtu_adna_2021.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:15am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Ancient DNA ([[Ancient DNA exercise]]) ([[Ancient_DNA_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation ([https://teaching.healthtech.dtu.dk/material/22126/2021/82_Projects_GR.pdf Lecture slides] [http://teaching.healthtech.dtu.dk/material/22126/posters.tar.gz Examples from previous courses]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-4:00pm &amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation, prepare your presentation for tomorrow. please write group names in the [https://docs.google.com/document/d/1xVCMb6wQdqsX4Q5_d-X5FlxeeWcKxP_ilxqd5RmSBSg/edit?usp=sharing document for 2021]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 14&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project presentation&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Prepare presentations for this afternoon&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Please go to Discord for help, we will be available.&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project Presentations (what you will do) /Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 15&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Monday, January 18&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 19&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 21&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project Work &amp;amp; Poster Printing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Produce a PDF of your poster, presentation will online this year.&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;[http://teaching.healthtech.dtu.dk/material/22126/Posters.pdf Poster guide &amp;amp; requirements]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Q&amp;amp;A: Practical information about the [http://teaching.healthtech.dtu.dk/material/22126/exam.pdf Exam]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 22&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Poster session - Online&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Poster session part (&#039;&#039;&#039;exam&#039;&#039;&#039;)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise_answers&amp;diff=75</id>
		<title>CfDNA exercise answers</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise_answers&amp;diff=75"/>
		<updated>2024-03-19T16:05:43Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q1&amp;#039;&amp;#039;&amp;#039;  Using:  &amp;lt;pre&amp;gt; samtools stat /data/shared/exercises/cfdna/patient_1.bam &amp;gt; patient1.stat samtools stat /data/shared/exercises/cfdna/patient_2.bam &amp;gt; patient2.stat  plot-bamstats -p patient1 patient1.stat plot-bamstats -p patient2 patient2.stat  firefox patient1.stat firefox patient2.stat  &amp;lt;/pre&amp;gt;  Both peak at 168bp however patient 1) clearly has the greatest variance and has an overabundance of short DNA fragments compared to patient 2.  &amp;#039;&amp;#039;&amp;#039;Q2&amp;#039;&amp;#039;&amp;#039;  We first run: &amp;lt;p...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools stat /data/shared/exercises/cfdna/patient_1.bam &amp;gt; patient1.stat&lt;br /&gt;
samtools stat /data/shared/exercises/cfdna/patient_2.bam &amp;gt; patient2.stat&lt;br /&gt;
&lt;br /&gt;
plot-bamstats -p patient1 patient1.stat&lt;br /&gt;
plot-bamstats -p patient2 patient2.stat&lt;br /&gt;
&lt;br /&gt;
firefox patient1.stat&lt;br /&gt;
firefox patient2.stat&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both peak at 168bp however patient 1) clearly has the greatest variance and has an overabundance of short DNA fragments compared to patient 2.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We first run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
readCounter --window 100000 -c 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 /data/shared/exercises/cfdna/patient_1.bam &amp;gt; patient_1.wig &lt;br /&gt;
readCounter --window 100000 -c 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 /data/shared/exercises/cfdna/patient_2.bam &amp;gt; patient_2.wig &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to get the fragment counts per 100kb window. Then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep -v fixed patient_1.wig  |wc -l &lt;br /&gt;
28823&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Running:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/data/shared/exercises/cfdna/plotCNV.R patient_1.wig &lt;br /&gt;
/data/shared/exercises/cfdna/plotCNV.R patient_2.wig &lt;br /&gt;
evince patient_1_CNV.pdf&lt;br /&gt;
evince patient_2_CNV.pdf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly shows that patient number one has a lot of alterations in terms of copy number.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Based on the plots for the fragment size distribution and copy number variations, patient 1 had lung squamous cell carcinoma and patient 2 was a healthy control.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise&amp;diff=74</id>
		<title>CfDNA exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise&amp;diff=74"/>
		<updated>2024-03-19T16:05:10Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  First: &amp;lt;OL&amp;gt; &amp;lt;LI&amp;gt;Navigate to your home directory: &amp;lt;LI&amp;gt;Create a directory called &amp;quot;cfdna&amp;quot;  &amp;lt;LI&amp;gt;Navigate to the directory you just created. &amp;lt;/OL&amp;gt;   Blood was drawn from 2 patients. One of those is a healthy patient, the other one has lung squamous cell carcinoma.  It was previously [https://www.cell.com/fulltext/S0092-8674(15)01569-X reported] that tumors can leave a signature in the blood plasma via cell-free DNA, namely:  # The distribution of fragment l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to your home directory:&lt;br /&gt;
&amp;lt;LI&amp;gt;Create a directory called &amp;quot;cfdna&amp;quot; &lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to the directory you just created.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Blood was drawn from 2 patients. One of those is a healthy patient, the other one has lung squamous cell carcinoma.&lt;br /&gt;
&lt;br /&gt;
It was previously [https://www.cell.com/fulltext/S0092-8674(15)01569-X reported] that tumors can leave a signature in the blood plasma via cell-free DNA, namely:&lt;br /&gt;
&lt;br /&gt;
# The distribution of fragment length will have higher variance especially with very short fragments.&lt;br /&gt;
# Tumor cfDNA (or ctDNA) tend to have higher than normal [https://en.wikipedia.org/wiki/Copy_number_variation copy number variations (CNVs)]. Please also note that in the context of cancer, when these CNVs are caused by the tumor, they are sometimes called copy number alterations (CNAs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your goal is to determine which patient is which.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Insert size distribution&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To speed up things, the data has already been trimmed and aligned:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/data/shared/exercises/cfdna/patient_1.bam&lt;br /&gt;
/data/shared/exercises/cfdna/patient_2.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now have to determine which one has the greatest variance in terms of DNA fragment length. Use the commands that you have learned in the alignment exercises and plot the insert size distribution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Which would you say has the greatest variance in terms of DNA fragment length?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt; Copy number variations&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will use a program called [https://bioconductor.org/packages/release/bioc/html/HMMcopy.html HMMcopy] to infer CNVs. This method relies on the number of DNA fragments that align in a very specific window size (ex: how many fragments align every 100,000bp of the genome).&lt;br /&gt;
&lt;br /&gt;
The following program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
readCounter&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Is a very simple utility the compute the number of fragments aligning in a series of genomic windows. Type it without any arguments to see the options. Use the following option: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-c 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies the order of the chromosomes. For now, we will only care about chromosomes 1 to 22. Count the number of fragments that align in windows of 100000 basepairs for both patients. For each bam file, redirect the output to a file then you get to choose the name but use the file extension &amp;quot;.wig&amp;quot; please as the output will be in [https://genome.ucsc.edu/goldenPath/help/wiggle.html wiggle track format (WIG)].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Inspect the format and determine how many genomic windows do you have in total? &lt;br /&gt;
&lt;br /&gt;
We will done use the following custom R script to call copy number variations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/data/shared/exercises/cfdna/plotCNV.R [INPUT WIG]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The input is the wig file that you have previously generated. The script produce three files:&lt;br /&gt;
&lt;br /&gt;
# [INPUT]_bias.pdf  which shows you the fragment count as a function of [https://academic.oup.com/nar/article/40/10/e72/2411059 GC bias]&lt;br /&gt;
# [INPUT]_correction.pdf which shows you the fragment count once having corrected for GC bias&lt;br /&gt;
# [INPUT]_CNV.pdf shows you the annotated copy number variations.&lt;br /&gt;
&lt;br /&gt;
For now, the script only produces a plot for chromosome 6. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Which sample do you believe has a lot of copy number variations?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Based on your answers to question 1 and 3, which patient has cancer?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please find answers [[CfDNA_exercise_answers|here]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Congratulations you finished the exercise!&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Logging_on_to_Cloud_system&amp;diff=73</id>
		<title>Logging on to Cloud system</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Logging_on_to_Cloud_system&amp;diff=73"/>
		<updated>2024-03-19T16:04:25Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;HR&amp;gt;  &amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  In this exercise, we will prepare our computers to log on to our very own cloud system on Computerome. This is done via a Virtual Private Network (VPN).  &amp;lt;HR&amp;gt;  &amp;lt;H3&amp;gt;Student accounts&amp;lt;/H3&amp;gt;  &amp;lt;p&amp;gt;To be able to perform the exercises and project you will need an account to log in to the cloud computers. Open the [https://docs.google.com/spreadsheets/d/1TAj59JQurp6ene6kOlrug9mRJSHpdsIS8U6KKvkcLN0/edit?usp=sharing google doc], find student id and determin...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this exercise, we will prepare our computers to log on to our very own cloud system on Computerome. This is done via a Virtual Private Network (VPN).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Student accounts&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To be able to perform the exercises and project you will need an account to log in to the cloud computers. Open the&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/1TAj59JQurp6ene6kOlrug9mRJSHpdsIS8U6KKvkcLN0/edit?usp=sharing google doc], find student id and determine which server you need to use. This will be your server that you must use for the rest of the course.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;User ID/username&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your cloud &amp;lt;b&amp;gt;username&amp;lt;/b&amp;gt; or &#039;&#039;&#039;user ID&#039;&#039;&#039; is one entered in the &#039;&#039;&#039;username&#039;&#039;&#039; column (ex: s123456).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;IP address&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are the IP addresses:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;server&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;IP&#039;&#039;&#039;    &lt;br /&gt;
|-&lt;br /&gt;
| server1&lt;br /&gt;
| 192.168.63.58&lt;br /&gt;
|-&lt;br /&gt;
| server2&lt;br /&gt;
| 192.168.63.59&lt;br /&gt;
|-&lt;br /&gt;
| server3&lt;br /&gt;
| 192.168.63.62&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;Password&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The password is initially the &#039;&#039;&#039;same&#039;&#039;&#039; as the DTU one. &amp;lt;b&amp;gt; Remember: If you lose the password we can not help you! Check with DTU.&amp;lt;/b&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;H4&amp;gt;2 factor authentication&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for a 2-factor authentication code. If you have not set it up with AIT, go to: https://account.activedirectory.windowsazure.com/proofup.aspx?proofup=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Setting up your own computer/laptop&amp;lt;/H2&amp;gt;&lt;br /&gt;
Make sure you are connected to the internet.&amp;lt;br&amp;gt;&lt;br /&gt;
Video: [https://video.dtu.dk/media/22126-1-VPNCloud/0_xvdqq6v6 How to download and install VPN. How to connect to the Metagenomic cloud servers].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Windows computer&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;VPN client&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, install an OpenVPN client. Download the necessary configuration file for our course cloud servers [https://teaching.healthtech.dtu.dk/material/22126/pfSense_DTU-UDP4-1195-metagenomic-02-config.ovpn here] and the VPN client program [https://openvpn.net/community-downloads/ here]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;Terminal&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Secondly, install MobaXterm. Download [https://mobaxterm.mobatek.net/download.html here]&lt;br /&gt;
Once installed you must create an &#039;&#039;&#039;ssh session&#039;&#039;&#039; in Mobaxterm and log on to your cloud server (Look at the Google docs depending on user ID and use the IP above). &#039;&#039;&#039;If you cannot seem to access the servers, you might need to run the OpenVPN client as administrator&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Mac computer&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;VPN client&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download Tunnelblick (the stable version):&lt;br /&gt;
https://tunnelblick.net/downloads.html&lt;br /&gt;
&lt;br /&gt;
Direct download link:&lt;br /&gt;
https://tunnelblick.net/release/Tunnelblick_3.7.9a_build_5321.dmg&lt;br /&gt;
&lt;br /&gt;
Download the configuration file: [https://teaching.healthtech.dtu.dk/material/22126/pfSense_DTU-UDP4-1195-metagenomic-02-config.ovpn here]&lt;br /&gt;
&lt;br /&gt;
Put the file in a directory of your own choice&lt;br /&gt;
&lt;br /&gt;
Right-click on the file. &lt;br /&gt;
Choose &amp;quot;open with&amp;quot; --&amp;gt; &amp;quot;TunnelBlick&amp;quot; &lt;br /&gt;
Or&lt;br /&gt;
Choose &amp;quot;open with&amp;quot; --&amp;gt; &amp;quot;Other..&amp;quot; &lt;br /&gt;
Chosse &amp;quot;Enable: All Apllications&amp;quot;&lt;br /&gt;
Click on &amp;quot;TunnelBlick&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Click on the TunnelBlick sign in the top bar of your computer (the same bar that shows your WiFi/Battery/Clock)&lt;br /&gt;
Choose &amp;quot;Connect Cloud_590&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now you should have acces to the Cloud.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;Terminal&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open your terminal. It is located in: /Applications/Utilities. Or search for &amp;quot;Terminal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Depending on the server you will be using (see the google sheet), write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -XC [USER ID]@[ID ADDRESS]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
replace the [USER ID] with the username you have been assigned to and [ID ADDRESS] is the IP of your server (see above).&lt;br /&gt;
&lt;br /&gt;
Enter the password..&lt;br /&gt;
&amp;lt;p&amp;gt;Open the &amp;quot;XQuartz&amp;quot; and &amp;quot;Terminal&amp;quot; in the &amp;quot;Applications/Utilities&amp;quot; folder. You can close the window that the XQuartz program opens, but leave the program running in the background. If you dont have XQuartz installed you can install&lt;br /&gt;
it from [https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg here].&lt;br /&gt;
In the terminal write the command below and enter your password when asked for it. Depending on what you have installed you may have to install &amp;quot;Developer Tools&amp;quot; from Apple. You can also install the program &amp;quot;iTerm2&amp;quot; which is a very neat terminal.&amp;lt;br&amp;gt; &lt;br /&gt;
Log on to your cloud server using ssh and your cloud username (studXXX) and password (see above).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Ubuntu/Linux&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;VPN client&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu, use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install openvpn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for other releases, please see the following: [https://openvpn.net/vpn-software-packages/ VPN Software Repository &amp;amp; Packages]. The config file is [https://teaching.healthtech.dtu.dk/material/22126/pfSense_DTU-UDP4-1195-metagenomic-02-config.ovpn here]. Then write:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo openvpn pfSense_DTU-UDP4-1195-metagenomic-02-config.ovpn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H4&amp;gt;Terminal&amp;lt;/H4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open your terminal and ssh using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -XC [USER ID]@[ID ADDRESS]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2022&amp;diff=72</id>
		<title>Program 2022</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2022&amp;diff=72"/>
		<updated>2024-03-19T16:03:30Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;#039;&amp;#039;&amp;#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&amp;#039;&amp;#039;&amp;#039;   Lectures and exercises will take place on Discord (https://discord.gg/FBb2edFW). Please register with your full name. Will use Discord for online classes and collaboration with your project partners.  The course has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on &amp;#039;&amp;#039;&amp;#039;Friday 21st of January&amp;#039;&amp;#039;&amp;#039;.  &amp;lt;!-- This term, we will be using Piazza for class disc...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lectures and exercises will take place on Discord (https://discord.gg/FBb2edFW). Please register with your full name. Will use Discord for online classes and collaboration with your project partners.&lt;br /&gt;
&lt;br /&gt;
The course has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on &#039;&#039;&#039;Friday 21st of January&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This term, we will be using Piazza for class discussion. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza [https://piazza.com/class/kjernxm6wre7ck here]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Course Program - January 2022 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 3&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Introduction - Next Generation Sequencing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to course &amp;amp; Pre-test&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2022/11_Introduction_to_course_GR.pdf Lecture slides])&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2021/1_pre-test_2021.pdf Pre-test])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;Introduction to NGS &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2022/12_Introduction_to_NGS_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;2nd and 3rd generation NGS Technologies &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2022/13_Introduction_to_NGS_technology_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk group formation and group work &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2022/14_Tech_Talks_GR.pdf Lecture slides])&lt;br /&gt;
([https://docs.google.com/spreadsheets/d/1yY6HH10z_OTOTHQUiZehCUrya4u-N2xyUWSeM-EE__o/edit?usp=sharing Student Groups 2022]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Logging on to our Computerome cloud ([[Logging on to Cloud system]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett,Josh Rubin, Nicola Vogel, Gabriel Renaud,  &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:30pm-2:15pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]]) &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-3:30pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX (continued)&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;3:30pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;First look at data&lt;br /&gt;
([[First look exercise]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tueday, January 4&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Data pre-processing &amp;amp; Alignment&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data basics ([https://teaching.healthtech.dtu.dk/material/22126/2021/2_Data_Basics_SG.pdf Lecture slides]) ([[Data basics exercise]]) ([[Data basics exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data pre-processing ([https://teaching.healthtech.dtu.dk/material/22126/2021/2_Data_preprocessing_SG.pdf Lecture slides]) ([[Data Preprocess exercise]]) ([[Data Preprocess exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:15pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment ([https://teaching.healthtech.dtu.dk/material/22126/2022/23_Alignment_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-2:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Brief reminder on probabilities and Bayesian theory ([https://teaching.healthtech.dtu.dk/material/22126/2022/24_Bayesian_reminder_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:45pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Alignment ([[Alignment exercise]]) ([[Alignment exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 5&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Alignment &amp;amp; Genotyping&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Functional Human Variation&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, ([https://teaching.healthtech.dtu.dk/material/22126/2021/FunctionalHumanVariation_SG.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:15am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment postprocessing &amp;amp; variant calling ([https://teaching.healthtech.dtu.dk/material/22126/2022/41_post_alignment_variantcalling_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-10:30am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:30am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Postprocessing &amp;amp; variant calling ([[Postprocess exercise]])  ([[Postprocess_exercise_answers]]) ([[SNP calling exercise]]) ([[SNP_calling_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: de novo assembly ([https://teaching.healthtech.dtu.dk/material/22126/2021/4_de_novo_assembly_course_SG.pdf Lecture slides])([http://teaching.healthtech.dtu.dk/material/22126/debruijn_handout.pdf Handout (TODO)]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: de novo assembly ([[denovo exercise]]) ([[denovo solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 6&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Metagenomics&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Metagenomics &amp;amp; Binning ([https://teaching.healthtech.dtu.dk/material/22126/2022/Metagenomics_binning.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Kaiju: Taxonomic classification ([[Kaiju exercise]]) ([[Kaiju solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard,Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Quantitative Metagenomics ([https://teaching.healthtech.dtu.dk/material/22126/2022/Quantitative_metagenomics_2.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Quantitative Metagenomics ([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomics Exercise]) ([http://teaching.healthtech.dtu.dk/22126/index.php/QuantitativeMetagenomicsSolution Solution]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gisle Vestergaard, Trine Zachariasen&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, January 7&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Cell-free DNA and recap test&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Cell-free DNA ([https://teaching.healthtech.dtu.dk/material/22126/2021/cfDNA_lecture_2020_SB.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Søren Besenbacher&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cell free DNA ([[cfDNA exercise]])([[CfDNA_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Søren Besenbacher, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Recap Test ([https://teaching.healthtech.dtu.dk/material/22126/2021/test_2021.pdf Test 2021])([https://teaching.healthtech.dtu.dk/material/22126/2021/test_2021_withA.pdf answers])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Time to work on this week&#039;s exercises&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 10&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;RNA-seq and Cancer-seq&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: RNAseq ([https://teaching.healthtech.dtu.dk/material/22126/2022/RNA-seq_10-01-2022.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertolini&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: RNAseq ([[Rnaseq_exercise]])  ([[Rnaseq_exercise_answers]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Francesca Bertoloni, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Cancer-seq ([https://teaching.healthtech.dtu.dk/material/22126/2021/CancerGenomics_Izarzugaza%20copy.pdf Lecture slides]) &amp;lt;/DD&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Elena Papaleo &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cancer-seq ([[Cancerseq_exercise]]) ([[Cancerseq_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 11&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genomic Epidemiology and tech talk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:55am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Genomic Epidemiology ([[Genomic epidemiology exercise]]) ([[Genomic epidemiology solution]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shyam Gopalakrishnan&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:55am-10:10am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:10am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Case story: Genomic Epidemiology ([https://teaching.healthtech.dtu.dk/material/22126/2021/Genomic_epidemiology_NGScourse_Jan2021.pdf Lecture])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Pimlapas Leekitecharoenphon (Shinny)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;TechTalks Presentations&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 12&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Ancient DNA &amp;amp; Project work&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Ancient DNA ([https://teaching.healthtech.dtu.dk/material/22126/2021/dtu_adna_2021.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:15am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Ancient DNA ([[Ancient DNA exercise]]) ([[Ancient_DNA_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation ([https://teaching.healthtech.dtu.dk/material/22126/2021/82_Projects_GR.pdf Lecture slides] [http://teaching.healthtech.dtu.dk/material/22126/2022/posters.tar.gz Examples from previous courses]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-4:00pm &amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation, prepare your presentation for tomorrow. please write group names in the [https://docs.google.com/document/d/11OudbQ1DGY9GwCoFXtU29rAZmhlBokmPify5b0uOb5Q/edit?usp=sharing document for 2022]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 13&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project presentation&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Prepare presentations for this afternoon&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Please go to Discord for help, we will be available.&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project Presentations (what you will do) /Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 14&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Monday, January 17&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 18&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 19&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project Work &amp;amp; Poster Printing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Produce a PDF of your poster, presentation will online this year.&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;[http://teaching.healthtech.dtu.dk/material/22126/Posters.pdf Poster guide &amp;amp; requirements]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Q&amp;amp;A: Practical information about the [http://teaching.healthtech.dtu.dk/material/22126/exam.pdf Exam]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Shyam Gopalakrishnan, Josh Rubin, Nicola Vogel&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 21&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Poster session - Online&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Poster session part (&#039;&#039;&#039;exam&#039;&#039;&#039;)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2023&amp;diff=71</id>
		<title>Program 2023</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Program_2023&amp;diff=71"/>
		<updated>2024-03-19T16:02:53Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&amp;#039;&amp;#039;&amp;#039;    Lectures will be in person in building [https://goo.gl/maps/k4wYkMjTJ2HLHuyN8 303A] in auditorium 45. Offline discussions will take place on Discord (https://discord.gg/4yVB6vMG2n). Please register with your &amp;#039;&amp;#039;&amp;#039;full name&amp;#039;&amp;#039;&amp;#039;. Will use Discord for online classes and collaboration with your project partners.  &amp;lt;!--  Lectures and exercises will take place on Discord (https://discord.gg/FBb2edFW). Please register with...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;REMEMBER TO BRING A LAPTOP COMPUTER FOR EXERCISES&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lectures will be in person in building [https://goo.gl/maps/k4wYkMjTJ2HLHuyN8 303A] in auditorium 45. Offline discussions will take place on Discord (https://discord.gg/4yVB6vMG2n). Please register with your &#039;&#039;&#039;full name&#039;&#039;&#039;. Will use Discord for online classes and collaboration with your project partners.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
Lectures and exercises will take place on Discord (https://discord.gg/FBb2edFW). Please register with your full name. Will use Discord for online classes and collaboration with your project partners.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The course has two main parts, the first half is lectures and exercises and the last half is project work ending with the exam on &#039;&#039;&#039;Friday 20th of January 2023&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This term, we will be using Piazza for class discussion. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza [https://piazza.com/class/kjernxm6wre7ck here]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Course Program - January 2023 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 2&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Introduction - Next Generation Sequencing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to course &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2023/11_Introduction_to_course_GR.pdf Lecture slides])&lt;br /&gt;
&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;Introduction to NGS &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2023/12_Introduction_to_NGS_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-10:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;2nd and 3rd generation NGS Technologies &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2023/13_Introduction_to_NGS_technology_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk group formation and group work &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/material/22126/2023/14_Tech_Talks_GR.pdf Lecture slides])&lt;br /&gt;
([https://docs.google.com/spreadsheets/d/1-Add0-Zw1JvUaoPYMmHuxlkPxnF49jSffFZ6L2ajL4I/edit?usp=sharing Student Groups 2023]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Logging on to our pupil servers ([[Logging on to pupil system]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Nicola Vogel, Louis Kraft, Gabriel Renaud  &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:30pm-2:15pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]]) &lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Nicola Vogel, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-3:30pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Introduction to UNIX (continued)&lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Video lectures to watch from &amp;quot;Unix intro..&amp;quot; to &amp;quot;Touching upon...&amp;quot;]) &lt;br /&gt;
([https://teaching.healthtech.dtu.dk/36610/index.php/UNIX Exercises] possible answers [[Unix_answers|here]])&lt;br /&gt;
([http://teaching.healthtech.dtu.dk/material/36610/UnixInstructions36610.pdf Unix Notes])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Nicola Vogel, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;3:30pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;First look at data&lt;br /&gt;
([[First look exercise]])&lt;br /&gt;
&amp;lt;DD&amp;gt;Peter Wad Sackett, Nicola Vogel, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tueday, January 3&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Data pre-processing &amp;amp; Alignment&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-10:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data basics ([https://teaching.healthtech.dtu.dk/material/22126/2023/21_Data_Basics_GR.pdf Lecture slides]) ([[Data basics exercise]]) ([[Data basics exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Nicola Vogel, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:45am-11:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;11:00am-12:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Data pre-processing ([https://teaching.healthtech.dtu.dk/material/22126/2023/22_Data_Preprocessing_GR.pdf Lecture slides]) ([[Data Preprocess exercise]]) ([[Data Preprocess exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:15pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment ([https://teaching.healthtech.dtu.dk/material/22126/2023/23_Alignment_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-2:30pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:30pm-2:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Brief reminder on probabilities and Bayesian theory ([https://teaching.healthtech.dtu.dk/material/22126/2023/24_Bayesian_reminder_GR.pdf Lecture slides]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:45pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Alignment ([[Alignment exercise]]) ([[Alignment exercise answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Nicola Vogel, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 4&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Alignment &amp;amp; Genotyping&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:30am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Functional Human Variation&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, ([https://teaching.healthtech.dtu.dk/material/22126/2023/41_Functional_Human_Variation_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:30am-10:15am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Alignment postprocessing &amp;amp; variant calling ([https://teaching.healthtech.dtu.dk/material/22126/2023/42_post_alignment_variantcalling_GR.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:15am-10:30am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:30am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Postprocessing &amp;amp; variant calling ([[Postprocess exercise]])  ([[Postprocess_exercise_answers]]) ([[SNP calling exercise]]) ([[SNP_calling_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: de novo assembly ([https://teaching.healthtech.dtu.dk/material/22126/2023/43_de_novo_assembly_course_GR.pdf Lecture slides])([http://teaching.healthtech.dtu.dk/material/22126/debruijn_handout.pdf Handout]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: de novo assembly ([[denovo exercise]]) ([[denovo solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 5&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Metagenomics&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Metagenomics &amp;amp; Binning ([https://teaching.healthtech.dtu.dk/material/22126/2023/Metagenomics_binning.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Asker Brejnrod&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Kaiju: Taxonomic classification ([[Kaiju exercise]]) ([[Kaiju solution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Asker Brejnrod,Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Quantitative Metagenomics ([https://teaching.healthtech.dtu.dk/material/22126/2023/Quantitative_metagenomics.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Asker Brejnrod&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Quantitative Metagenomics ([[QuantitativeMetagenomics]]) ([[QuantitativeMetagenomicsSolution]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Asker Brejnrod, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Friday, January 6&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Long read tech and recap test&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Long read sequencing ([https://teaching.healthtech.dtu.dk/material/22126/2021/cfDNA_lecture_2020_SB.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shilpa Garg&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Long read technology ([[longread exercise]])([[longread_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Shilpa Garg, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Recap Test ([https://teaching.healthtech.dtu.dk/material/22126/2023/test_2023.pdf Test 2023])([https://teaching.healthtech.dtu.dk/material/22126/2023/test_2023_withA.pdf answers])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Time to work on this week&#039;s exercises&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Monday, January 9&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;RNA-seq and Ancient DNA&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: RNAseq ([https://teaching.healthtech.dtu.dk/material/22126/2023/ngs_transcriptomics_kvs_2023_without_solutions_v2.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Kristoffer Vitting-Seerup&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:45am-10:00am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: RNAseq ([shorturl.at/nzBPQ Rnaseq_exercise])  ([[Rnaseq_exercise_answers]]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Kristoffer Vitting-Seerup, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Ancient DNA ([https://teaching.healthtech.dtu.dk/material/22126/2021/dtu_adna_2021.pdf Lecture slides])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-2:15pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:15pm-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Ancient DNA ([[Ancient DNA exercise]]) ([[Ancient_DNA_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Martin Sikora, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 10&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Genomic Epidemiology and tech talk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:55am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Genomic Epidemiology ([[Genomic epidemiology exercise]]) ([[Genomic epidemiology solution]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:55am-10:10am&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:10am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Case story: Genomic Epidemiology ([https://teaching.healthtech.dtu.dk/material/22126/2023/Genomic_epidemiology_NGScourse_Jan2023.pdf Lecture])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Pimlapas Leekitecharoenphon (Shinny)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Tech talk work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;TechTalks Presentations&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 11&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;CancerSeq &amp;amp; Project work&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-9:45am  &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Lecture: Cancer-seq ([https://teaching.healthtech.dtu.dk/material/22126/2023/Cancer_Genomics_EP_2023_2.pdf Lecture slides]) &amp;lt;/DD&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Elena Papaleo &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Exercise: Cancer-seq ([[Cancerseq_exercise]]) ([[Cancerseq_exercise_answers]])&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Adrian Otamendi, Josh Rubin, Louis Kraft &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039; &amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-1:45pm &amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation ([https://teaching.healthtech.dtu.dk/material/22126/2023/82_Projects_GR.pdf Lecture slides] [http://teaching.healthtech.dtu.dk/material/22126/2023/posters.tar.gz Examples from previous courses]) &amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:45pm-4:00pm &amp;lt;/DT&amp;gt;  &lt;br /&gt;
&amp;lt;DD&amp;gt;Projects &amp;amp; Group formation, prepare an outline for tomorrow. please write group names in the [https://docs.google.com/document/d/1Flu6t3RRm44ExyGli6X_yOqoaK1_02yWZiOWeIPlgSc/edit?usp=sharing document for 2023]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 12&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project presentation&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-12:00pm&amp;lt;/DT&amp;gt; &lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Prepare your project outline for this afternoon&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;lt;DD&amp;gt;Please go to Discord for help, we will be available.&amp;lt;/DD&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;12:00pm-1:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;&#039;&#039;Lunch Break&#039;&#039;&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-2:00pm &amp;lt;DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project outlines (what you will do) /Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;2:00pm-4:00pm &amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 13&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Monday, January 16&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tuesday, January 17&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wednesday, January 18&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project work&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;1:00pm-3:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday, January 19&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Project Work &amp;amp; Poster Printing&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DD&amp;gt;Please print your poster.&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;[http://teaching.healthtech.dtu.dk/material/22126/Posters.pdf Poster guide &amp;amp; requirements]&amp;lt;/DD&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DT&amp;gt;10:00am-12:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Q&amp;amp;A: Practical information about the exam&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Project work/Office hours&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Gabriel Renaud, Josh Rubin, Louis Kraft&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Friday, January 20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&#039;&#039;Poster session&#039;&#039;&lt;br /&gt;
&amp;lt;DL&amp;gt;&lt;br /&gt;
&amp;lt;DT&amp;gt;9:00am-4:00pm&amp;lt;/DT&amp;gt;&lt;br /&gt;
&amp;lt;DD&amp;gt;Poster session part (&#039;&#039;&#039;exam&#039;&#039;&#039;)&amp;lt;/DD&amp;gt;&lt;br /&gt;
&amp;lt;/DL&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=MediaWiki:Sidebar&amp;diff=70</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=MediaWiki:Sidebar&amp;diff=70"/>
		<updated>2024-03-19T16:01:49Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; * navigation ** https://teaching.healthtech.dtu.dk/|Course List ** https://teaching.healthtech.dtu.dk/22126/|Course 22126 * TOOLBOX&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** https://teaching.healthtech.dtu.dk/|Course List&lt;br /&gt;
** https://teaching.healthtech.dtu.dk/22126/|Course 22126&lt;br /&gt;
* TOOLBOX&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise_answers&amp;diff=69</id>
		<title>Cancerseq exercise answers</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise_answers&amp;diff=69"/>
		<updated>2024-03-19T16:00:13Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q1&amp;#039;&amp;#039;&amp;#039;  We run: &amp;lt;pre&amp;gt; gatk Mutect2  -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa  -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam     -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam        -normal TCRBOA2-N-WEX         -L chr10:3100000-5100000   --germline-resource /home/databases/databases/GRCh38/somatic-hg38_af-only-gnomad.hg38.vcf.gz   -O TCRBOA2.vcf.gz &amp;lt;/pre&amp;gt;  Then either: &amp;lt;pre&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk Mutect2  -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa  -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam     -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam        -normal TCRBOA2-N-WEX         -L chr10:3100000-5100000   --germline-resource /home/databases/databases/GRCh38/somatic-hg38_af-only-gnomad.hg38.vcf.gz   -O TCRBOA2.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then either:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2.vcf.gz|wc -l&lt;br /&gt;
bcftools stats TCRBOA2.vcf.gz&lt;br /&gt;
zgrep -v &amp;quot;^#&amp;quot; TCRBOA2.vcf.gz|wc -l &lt;br /&gt;
zcat TCRBOA2.vcf.gz |grep -v &amp;quot;#&amp;quot;|wc -l &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Will give you 9 variants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
First we run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-T.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-N.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then counting the number of variants in the tumor:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2-T.vcf.gz | wc -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
424&lt;br /&gt;
&lt;br /&gt;
and normal sample:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2-N.vcf.gz | wc -l &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
413&lt;br /&gt;
&lt;br /&gt;
The tumor has more variants which is expected due to a higher amount of somatic variants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk FilterMutectCalls -V TCRBOA2.vcf.gz -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -O TCRBOA2_filtered.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can insect visually:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2_filtered.vcf.gz |less -S&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or to classify filters in a straightforward manner:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 bcftools view -H TCRBOA2_filtered.vcf.gz |cut -f 7   |tr &amp;quot;;&amp;quot; &amp;quot;\n&amp;quot; |sort |uniq -c  |sort&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You get:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      1 slippage&lt;br /&gt;
      2 haplotype&lt;br /&gt;
      2 PASS&lt;br /&gt;
      2 weak_evidence&lt;br /&gt;
      3 clustered_events&lt;br /&gt;
      3 map_qual&lt;br /&gt;
      4 strand_bias&lt;br /&gt;
      6 normal_artifact&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
see some notes on the meaning of these filters [https://www.biorxiv.org/content/biorxiv/early/2019/12/02/861054/DC1/embed/media-1.pdf?download=true here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
Running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -jar /usr/local/bin/SnpSift.jar  annotate /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz TCRBOA2_filtered.vcf.gz  | bgzip -c &amp;gt; TCRBOA2_filtered_anno.vcf.gz&lt;br /&gt;
bcftools view -H -f PASS TCRBOA2_filtered_anno.vcf.gz | less -S&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
should give you:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr10	3165513	rs9423502	G	C	.	PASS	AS_FilterStatus=SITE;AS_SB_TABLE=39,119|0,3;DP=168;ECNT=1;GERMQ=93;MBQ=38,39;MFRL=225,184;MMQ=60,60;MPOS=4;NALOD=1.86;NLOD=21.37;POPAF=1.32;TLOD=6.08;CAF=[0.9454,0.05464];COMMON=1;G5;GNO;HD;KGPROD;KGPhase1;NSM;OTHERKG;PH3;REF;RS=9423502;RSPOS=3207705;S3D;SAO=0;SLO;SSR=0;VC=SNV;VLD;VP=0x050300000a01150517000101;WGT=1;dbSNPBuildID=119	GT:AD:AF:DP:F1R2:F2R1:SB	0/0:79,0:0.014:79:41,0:38,0:19,60,0,0	0/1:79,3:0.054:82:41,2:38,1:20,59,0,3&lt;br /&gt;
chr10	4972935	.	A	T	.	PASS	AS_FilterStatus=SITE;AS_SB_TABLE=8,84|0,4;DP=102;ECNT=1;GERMQ=93;MBQ=36,34;MFRL=302,495;MMQ=50,40;MPOS=20;NALOD=1.58;NLOD=11.08;POPAF=1.62;TLOD=8.82GT:AD:AF:DP:F1R2:F2R1:SB	0/0:37,0:0.026:37:16,0:20,0:1,36,0,0	0/1:55,4:0.083:59:26,2:28,2:7,48,0,4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ID &amp;quot;rs9423502&amp;quot; is a dbSNP ID so the SNP at 3165513 was previously found whereas 4972935 was not.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The SNP can be found here: https://www.ncbi.nlm.nih.gov/snp/?term=rs9423502&lt;br /&gt;
&lt;br /&gt;
Generally, the prevalence of the SNPs is relatively low (2-5%) which indicates that there is a potential role for diving cancer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The variant on chromosome 18 are missense, potentially deleterious and have the COSMIC ID: COSV99493765. In the COSMIC database, it hits the DYM gene and is mostly found mutated in liver and prostate. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Often enough, around 6% in certain cases&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
kidney but the confidence is low as the prediction score is a virtual tie with liver.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise&amp;diff=68</id>
		<title>Cancerseq exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise&amp;diff=68"/>
		<updated>2024-03-19T15:59:51Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adapted from an original exercise by Marcin Krzystanek and Aron Eklund.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to your home directory:&lt;br /&gt;
&amp;lt;LI&amp;gt;Create a directory called &amp;quot;cancerseq&amp;quot; &lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to the directory you just created.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this exercise, we learn the differences between standard genotyping and genotyping for cancer-seq:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
   &amp;lt;LI&amp;gt;Somatic mutation calling &lt;br /&gt;
   &amp;lt;LI&amp;gt;Interpretation of the resulting somatic mutations&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Somatic mutation calling&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; MuTect2 &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We use MuTect2, a somatic mutation caller that identifies both SNV and indels. It produces a VCF-file, although the output of Mutect2 has some information specific for somatic variants. See [https://samtools.github.io/hts-specs/VCFv4.2.pdf here] for specs.&lt;br /&gt;
&lt;br /&gt;
A big difference in cancer-seq variant calling using Mutect2 is that there are no ploidy assumptions. This accommodates tumor data that can have many copy number variants (CNVs).&lt;br /&gt;
&lt;br /&gt;
Mutect2 is computationally intensive so we recommend parallelizing if possible. One way to achieve this is to split processes by chromosomes (calling variants for each chromosome and then merging vcf-files.)&lt;br /&gt;
&lt;br /&gt;
Since we neither have the time nor the capacity to process the entire genome during our exercises, we will call somatic mutations on a small part of chromosome 10, from the 3,100,000th to the 5,100,000th base pair, which is set with the -L option. We have 2 files, one for the normal tissue:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for the tumor one:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reference can be found:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now run Mutech2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk Mutect2 -R [reference] -I [BAM NORMAL SAMPLE]  -I [BAM TUMOR SAMPLE]  -normal [ID of the NORMAL SAMPLE]   -L [REGION]  --germline-resource /home/databases/databases/GRCh38/somatic-hg38_af-only-gnomad.hg38.vcf.gz   -O [OUTPUT VCF]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
please remember that the region is in the following format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[CHR NAME]:[START COORD]-[END COORD]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The option germline resource specifies the frequency of germline mutations in a population. You can call your output TCRBOA2.vcf.gz.&lt;br /&gt;
&lt;br /&gt;
Take a look at the resulting VCF file, try to count the number of raw variants either using bcftools or standard UNIX tools (zgrep or zcat+grep):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
How many variants did you find?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Compare with calling all variants &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Just for comparison, we try to call all variants in the interval for the germline and the tumor sample.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-T.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-N.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Count the variant lines in each with the same command as above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2-T.vcf.gz | wc -l&lt;br /&gt;
bcftools view -H TCRBOA2-N.vcf.gz | wc -l &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
Where do you find the highest number of raw variants? Does that make biological sense? What is the difference between the two numbers and does it match above?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Filtering and annotating variants &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before continuing, we need to filter the raw vcf-output to only get confident variants:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk FilterMutectCalls -V TCRBOA2.vcf.gz -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -O TCRBOA2_filtered.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try to look at the variants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039; What does it look like in the filter column (7th column)? What kind of filters were applied?&lt;br /&gt;
&lt;br /&gt;
To add some extra information to the VCF file, we will also annotate with the dbSNP IDs of known SNP. HaplotypeCaller can do this as it calls variants, but using Mutect2 we need to do it ourselves:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -jar /home/ctools/snpEff/SnpSift.jar  annotate /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz  [INPUT VCF] &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The command above produces output on the STDOUT. The input is the VCF you produced with FilterMutectCalls. Try to produce a file called &amp;quot;TCRBOA2_filtered_anno.vcf.gz&amp;quot;. Remember to use &amp;quot;bgzip -c&amp;quot;. Note that this command may take up to 3 minutes. Now try to filter mutational calls by selecting those with Mutect &amp;quot;PASS&amp;quot; annotation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H -f PASS TCRBOA2_filtered_anno.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should at least see this line (without the header). Don&#039;t forget you can scroll to the sides!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  TCRBOA2-N-WEX   TCRBOA2-T-WEX&lt;br /&gt;
chr10	3165513	rs9423502	G	C	.	PASS	AS_FilterStatus=SITE;AS_SB_TABLE=39,119|0,3;DP=168;ECNT=1;GERMQ=93;MBQ=38,39;MFRL=225,184;MMQ=60,60;MPOS=4;NALOD=1.86;NLOD=21.37;POPAF=1.32;TLOD=6.08;CAF=[0.9454,0.05464];COMMON=1;G5;GNO;HD;KGPROD;KGPhase1;NSM;OTHERKG;PH3;REF;RS=9423502;RSPOS=3207705;S3D;SAO=0;SLO;SSR=0;VC=SNV;VLD;VP=0x050300000a01150517000101;WGT=1;dbSNPBuildID=119	GT:AD:AF:DP:F1R2:F2R1:SB	0/0:79,0:0.014:79:41,0:38,0:19,60,0,0	0/1:79,3:0.054:82:41,2:38,1:20,59,0,3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is a lot of information in the line. A brief explanation of each part of the line above is in the header of the VCF file (pipe into &amp;quot;less -S&amp;quot; to look at it, but it is also difficult to interpret).&lt;br /&gt;
&lt;br /&gt;
Let&#039;s focus on the FORMAT lines. The per sample information kept here is organized by GT:AD:AF:DP:F1R2:F2R1:SB and the values are kept in the two proceeding columns, also separated by colons. The first starting with &#039;&#039;&#039;0/0&#039;&#039;&#039; refers to the normal sample, whereas the column beginning with &#039;&#039;&#039;0/1&#039;&#039;&#039; refers to the tumor. This means that the tumor is heterozygote (REF/ALT) for the mutation which is not seen in the germline sample at all (it is REF/REF).&lt;br /&gt;
&lt;br /&gt;
After genotype (GT) we have allelic depth (AD) which is &amp;quot;79,3&amp;quot; (i.e. 79 reads and 3 reads for the reference and mutant allele respectively) in the tumor and &amp;quot;79,0&amp;quot; in the normal sample. Then comes allelic frequency, which is a fraction of the mutant allele out of all aligned bases in this position and the depth. We will skip the remaining values for F1R2, F2R1 and SB for now.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There should be 2 variants, which one was already found in previous studies (i.e. is documented in dbSNP)?&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;H2&amp;gt; Interpretation of the resulting somatic mutations &amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A list of chromosome coordinates is kind of hard to interpret. Here are some ways to approach the results.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Variant annotation with dbSNP, Variant effect predictor and COSMIC &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the RS identifier from the cancer mutation with a dbSNP ID and look it up at [https://www.ncbi.nlm.nih.gov/snp/ dbSNP].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Find the frequency table tab. Is your mutation common in some populations? What does a high frequency tell you about its role in cancer?&lt;br /&gt;
So far you have processed and analyzed only a small section of chromosome 10.&lt;br /&gt;
&lt;br /&gt;
Now, let us analyze a bigger portion of the genome. Pick your favorite chromosome and find the corresponding VCF file on the server. For example, if you choose chromosome 7, you would use this file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/chr7.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hint: your results will be more interesting if you pick chromosomes: 18!&lt;br /&gt;
&lt;br /&gt;
Filter the VCF to retain only the lines marked as &amp;quot;PASS&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep &amp;quot;PASS&amp;quot; /home/projects/22126_NGS/exercises/cancer_seq/chr7.vcf &amp;gt; chr7_filtered.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the filtered VCF to your own computer using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scp [userID]@pupil1:/path/to/file .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and submit it to the [http://www.ensembl.org/Tools/VEP VEP website] using default settings. When the results become available, look in the &amp;quot;Somatic status&amp;quot; column. Are there any known cancer mutations?&lt;br /&gt;
&lt;br /&gt;
If you find a known cancer mutation, find its COSMIC identifier (COSM######, e.g. COSM4597270) in the &amp;quot;existing variant&amp;quot; column. Search for your COSMIC identifier in the [http://cancer.sanger.ac.uk/cosmic COSMIC database].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In which tissues is this mutation found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;cBioPortal&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to [http://www.cbioportal.org/ cBioPortal], a website that provides tools to analyze several large cancer sequencing datasets. In Quick Select, choose &amp;quot;TCGA PanCancer Atlas studies&amp;quot;. Then press &amp;quot;Query by Gene&amp;quot; and type in the name of the gene that was hit by this mutation. Choose &amp;quot;mutations&amp;quot; as we have not looked at Copy Number Alterations. Press &amp;quot;Submit Query&amp;quot;. Look at the barcharts and play around with the options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
How often is this gene mutated in various cancer types?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Inference of tissue of origin &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, we will do some analysis on a VCF file containing somatic mutations found throughout the entire genome:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2_filtered.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike VEP, TumorTracer requires VCF files to have the header information. Thus, we will filter this VCF file to retain: 1) header lines (which begin with &amp;quot;#&amp;quot;), and 2) data lines with a PASS call.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zgrep -E &amp;quot;^#|PASS&amp;quot; /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2_filtered.vcf.gz &amp;gt; TCRBOA2_filtered_pass.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the VCF file and submit it to the https://services.healthtech.dtu.dk/services/TumorTracer-1.1/ TumorTracer server]. Make sure to specify that this VCF was generated &#039;&#039;&#039;using GRCh38 coordinates&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
What tissue does TumorTracer predict? Is it a confident prediction?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Congratulations you finished the exercise!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Cancerseq_exercise_answers]].&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise&amp;diff=67</id>
		<title>Cancerseq exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Cancerseq_exercise&amp;diff=67"/>
		<updated>2024-03-19T15:58:01Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  Adapted from an original exercise by Marcin Krzystanek and Aron Eklund.   First: &amp;lt;OL&amp;gt; &amp;lt;LI&amp;gt;Navigate to your home directory: &amp;lt;LI&amp;gt;Create a directory called &amp;quot;cancerseq&amp;quot;  &amp;lt;LI&amp;gt;Navigate to the directory you just created. &amp;lt;/OL&amp;gt;  In this exercise, we learn the differences between standard genotyping and genotyping for cancer-seq: &amp;lt;OL&amp;gt;    &amp;lt;LI&amp;gt;Somatic mutation calling     &amp;lt;LI&amp;gt;Interpretation of the resulting somatic mutations &amp;lt;/OL&amp;gt;  &amp;lt;H2&amp;gt;Somatic mutation calling&amp;lt;/...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adapted from an original exercise by Marcin Krzystanek and Aron Eklund.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to your home directory:&lt;br /&gt;
&amp;lt;LI&amp;gt;Create a directory called &amp;quot;cancerseq&amp;quot; &lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to the directory you just created.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this exercise, we learn the differences between standard genotyping and genotyping for cancer-seq:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
   &amp;lt;LI&amp;gt;Somatic mutation calling &lt;br /&gt;
   &amp;lt;LI&amp;gt;Interpretation of the resulting somatic mutations&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Somatic mutation calling&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; MuTect2 &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We use MuTect2, a somatic mutation caller that identifies both SNV and indels. It produces a VCF-file, although the output of Mutect2 has some information specific for somatic variants. See [https://samtools.github.io/hts-specs/VCFv4.2.pdf here] for specs.&lt;br /&gt;
&lt;br /&gt;
A big difference in cancer-seq variant calling using Mutect2 is that there are no ploidy assumptions. This accommodates tumor data that can have many copy number variants (CNVs).&lt;br /&gt;
&lt;br /&gt;
Mutect2 is computationally intensive so we recommend parallelizing if possible. One way to achieve this is to split processes by chromosomes (calling variants for each chromosome and then merging vcf-files.)&lt;br /&gt;
&lt;br /&gt;
Since we neither have the time nor the capacity to process the entire genome during our exercises, we will call somatic mutations on a small part of chromosome 10, from the 3,100,000th to the 5,100,000th base pair, which is set with the -L option. We have 2 files, one for the normal tissue:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for the tumor one:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reference can be found:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now run Mutech2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk Mutect2 -R [reference] -I [BAM NORMAL SAMPLE]  -I [BAM TUMOR SAMPLE]  -normal [ID of the NORMAL SAMPLE]   -L [REGION]  --germline-resource /home/databases/databases/GRCh38/somatic-hg38_af-only-gnomad.hg38.vcf.gz   -O [OUTPUT VCF]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
please remember that the region is in the following format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[CHR NAME]:[START COORD]-[END COORD]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The option germline resource specifies the frequency of germline mutations in a population. You can call your output TCRBOA2.vcf.gz.&lt;br /&gt;
&lt;br /&gt;
Take a look at the resulting VCF file, try to count the number of raw variants either using bcftools or standard UNIX tools (zgrep or zcat+grep):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
How many variants did you find?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Compare with calling all variants &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Just for comparison, we try to call all variants in the interval for the germline and the tumor sample.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-T-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-T.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
gatk HaplotypeCaller -I /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2-N-WEX_recaled.bam -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -L chr10:3100000-5100000 -O TCRBOA2-N.vcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Count the variant lines in each with the same command as above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H TCRBOA2-T.vcf.gz | wc -l&lt;br /&gt;
bcftools view -H TCRBOA2-N.vcf.gz | wc -l &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
Where do you find the highest number of raw variants? Does that make biological sense? What is the difference between the two numbers and does it match above?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Filtering and annotating variants &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before continuing, we need to filter the raw vcf-output to only get confident variants:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk FilterMutectCalls -V TCRBOA2.vcf.gz -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -O TCRBOA2_filtered.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try to look at the variants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039; What does it look like in the filter column (7th column)? What kind of filters were applied?&lt;br /&gt;
&lt;br /&gt;
To add some extra information to the VCF file, we will also annotate with the dbSNP IDs of known SNP. HaplotypeCaller can do this as it calls variants, but using Mutect2 we need to do it ourselves:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -jar /home/ctools/snpEff/SnpSift.jar  annotate /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz  [INPUT VCF] &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The command above produces output on the STDOUT. The input is the VCF you produced with FilterMutectCalls. Try to produce a file called &amp;quot;TCRBOA2_filtered_anno.vcf.gz&amp;quot;. Remember to use &amp;quot;bgzip -c&amp;quot;. Note that this command may take up to 3 minutes. Now try to filter mutational calls by selecting those with Mutect &amp;quot;PASS&amp;quot; annotation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcftools view -H -f PASS TCRBOA2_filtered_anno.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should at least see this line (without the header). Don&#039;t forget you can scroll to the sides!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  TCRBOA2-N-WEX   TCRBOA2-T-WEX&lt;br /&gt;
chr10	3165513	rs9423502	G	C	.	PASS	AS_FilterStatus=SITE;AS_SB_TABLE=39,119|0,3;DP=168;ECNT=1;GERMQ=93;MBQ=38,39;MFRL=225,184;MMQ=60,60;MPOS=4;NALOD=1.86;NLOD=21.37;POPAF=1.32;TLOD=6.08;CAF=[0.9454,0.05464];COMMON=1;G5;GNO;HD;KGPROD;KGPhase1;NSM;OTHERKG;PH3;REF;RS=9423502;RSPOS=3207705;S3D;SAO=0;SLO;SSR=0;VC=SNV;VLD;VP=0x050300000a01150517000101;WGT=1;dbSNPBuildID=119	GT:AD:AF:DP:F1R2:F2R1:SB	0/0:79,0:0.014:79:41,0:38,0:19,60,0,0	0/1:79,3:0.054:82:41,2:38,1:20,59,0,3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is a lot of information in the line. A brief explanation of each part of the line above is in the header of the VCF file (pipe into &amp;quot;less -S&amp;quot; to look at it, but it is also difficult to interpret).&lt;br /&gt;
&lt;br /&gt;
Let&#039;s focus on the FORMAT lines. The per sample information kept here is organized by GT:AD:AF:DP:F1R2:F2R1:SB and the values are kept in the two proceeding columns, also separated by colons. The first starting with &#039;&#039;&#039;0/0&#039;&#039;&#039; refers to the normal sample, whereas the column beginning with &#039;&#039;&#039;0/1&#039;&#039;&#039; refers to the tumor. This means that the tumor is heterozygote (REF/ALT) for the mutation which is not seen in the germline sample at all (it is REF/REF).&lt;br /&gt;
&lt;br /&gt;
After genotype (GT) we have allelic depth (AD) which is &amp;quot;79,3&amp;quot; (i.e. 79 reads and 3 reads for the reference and mutant allele respectively) in the tumor and &amp;quot;79,0&amp;quot; in the normal sample. Then comes allelic frequency, which is a fraction of the mutant allele out of all aligned bases in this position and the depth. We will skip the remaining values for F1R2, F2R1 and SB for now.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There should be 2 variants, which one was already found in previous studies (i.e. is documented in dbSNP)?&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;H2&amp;gt; Interpretation of the resulting somatic mutations &amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A list of chromosome coordinates is kind of hard to interpret. Here are some ways to approach the results.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Variant annotation with dbSNP, Variant effect predictor and COSMIC &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the RS identifier from the cancer mutation with a dbSNP ID and look it up at [https://www.ncbi.nlm.nih.gov/snp/ dbSNP].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Find the frequency table tab. Is your mutation common in some populations? What does a high frequency tell you about its role in cancer?&lt;br /&gt;
So far you have processed and analyzed only a small section of chromosome 10.&lt;br /&gt;
&lt;br /&gt;
Now, let us analyze a bigger portion of the genome. Pick your favorite chromosome and find the corresponding VCF file on the server. For example, if you choose chromosome 7, you would use this file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/chr7.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hint: your results will be more interesting if you pick chromosomes: 18!&lt;br /&gt;
&lt;br /&gt;
Filter the VCF to retain only the lines marked as &amp;quot;PASS&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep &amp;quot;PASS&amp;quot; /home/projects/22126_NGS/exercises/cancer_seq/chr7.vcf &amp;gt; chr7_filtered.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the filtered VCF to your own computer using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scp [userID]@pupil1:/path/to/file .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and submit it to the [http://www.ensembl.org/Tools/VEP VEP website] using default settings. When the results become available, look in the &amp;quot;Somatic status&amp;quot; column. Are there any known cancer mutations?&lt;br /&gt;
&lt;br /&gt;
If you find a known cancer mutation, find its COSMIC identifier (COSM######, e.g. COSM4597270) in the &amp;quot;existing variant&amp;quot; column. Search for your COSMIC identifier in the [http://cancer.sanger.ac.uk/cosmic COSMIC database].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In which tissues is this mutation found?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;cBioPortal&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to [http://www.cbioportal.org/ cBioPortal], a website that provides tools to analyze several large cancer sequencing datasets. In Quick Select, choose &amp;quot;TCGA PanCancer Atlas studies&amp;quot;. Then press &amp;quot;Query by Gene&amp;quot; and type in the name of the gene that was hit by this mutation. Choose &amp;quot;mutations&amp;quot; as we have not looked at Copy Number Alterations. Press &amp;quot;Submit Query&amp;quot;. Look at the barcharts and play around with the options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
How often is this gene mutated in various cancer types?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt; Inference of tissue of origin &amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, we will do some analysis on a VCF file containing somatic mutations found throughout the entire genome:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2_filtered.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike VEP, TumorTracer requires VCF files to have the header information. Thus, we will filter this VCF file to retain: 1) header lines (which begin with &amp;quot;#&amp;quot;), and 2) data lines with a PASS call.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zgrep -E &amp;quot;^#|PASS&amp;quot; /home/projects/22126_NGS/exercises/cancer_seq/TCRBOA2_filtered.vcf.gz &amp;gt; TCRBOA2_filtered_pass.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the VCF file and submit it to the [https://services.healthtech.dtu.dk/service.php?TumorTracer-1.1 TumorTracer server]. Make sure to specify that this VCF was generated &#039;&#039;&#039;using GRCh38 coordinates&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
What tissue does TumorTracer predict? Is it a confident prediction?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Congratulations you finished the exercise!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Cancerseq_exercise_answers here]].&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Genomic_epidemiology_solution&amp;diff=66</id>
		<title>Genomic epidemiology solution</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Genomic_epidemiology_solution&amp;diff=66"/>
		<updated>2024-03-19T15:56:58Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;Q1. We can use the fastx tools to get this information &amp;lt;pre&amp;gt; fastx_readlength.py --i reads_R1.fastq.gz --gz fastx_readlength.py --i reads_R2.fastq.gz --gz &amp;lt;/pre&amp;gt; This should give you the answer.  Reads: 2*1408847 = 2,817,694; Bases: 284587094  Task1 - can be accomplished using a quality control tool like fastqc. &amp;lt;pre&amp;gt; mkdir fastqc fastqc -o fastqc reads_R*.fastq.gz firefox fastqc/reads_R1_fastqc.html fastqc/reads_R2_fastqc.html &amp;amp; &amp;lt;/pre&amp;gt;  Q2. There are no overrepresented...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Q1. We can use the fastx tools to get this information&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fastx_readlength.py --i reads_R1.fastq.gz --gz&lt;br /&gt;
fastx_readlength.py --i reads_R2.fastq.gz --gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should give you the answer. &lt;br /&gt;
Reads: 2*1408847 = 2,817,694; Bases: 284587094&lt;br /&gt;
&lt;br /&gt;
Task1 - can be accomplished using a quality control tool like fastqc.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir fastqc&lt;br /&gt;
fastqc -o fastqc reads_R*.fastq.gz&lt;br /&gt;
firefox fastqc/reads_R1_fastqc.html fastqc/reads_R2_fastqc.html &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Q2. There are no overrepresented sequences, but to ensure that there are no stray adapters at all, we will still perform adapter removal using AdapterRemoval - you can use any other tool to perform this task, e.g. cutadapt, leeHom etc.&lt;br /&gt;
&lt;br /&gt;
Task2 - can be accomplished using AdapterRemoval&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AdapterRemoval --file1 reads_R1.fastq.gz --file2 reads_R2.fastq.gz --adapter1 ATCGGAAGAGCACACGTCTGAACTCCAGTCACATTCCTATCTCGTATGCC    --adapter2 GATCGGAAGAGCACACGTCTGAACTCCAGTCACATGAGCATCTCGTATGC --basename reads --gzip --trimqualities --minquality 20 --minlength 40&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Q3. You can use this command to generate the histogram of the kmer coverages. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -dc reads.pair*.truncated.gz | jellyfish count -t 2 -m 15 -s 1000000000 -o reads_jellyfish -C /dev/fd/0&lt;br /&gt;
jellyfish histo reads_jellyfish &amp;gt; reads.histo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now we can use R to plot it. Start R and use these commands to plot the histogram and save it as a pdf.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dat=read.table(&amp;quot;reads.histo&amp;quot;)&lt;br /&gt;
barplot(dat[,2], xlim=c(0,150), ylim=c(0,5e5), ylab=&amp;quot;No of kmers&amp;quot;, xlab=&amp;quot;Counts of a k-mer&amp;quot;, names.arg=dat[,1], cex.names=0.8)&lt;br /&gt;
dev.print(&amp;quot;reads.histo.pdf&amp;quot;, device=pdf)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can see from the plot that the average k-mer coverage ~ 41; so yes the depth is high enough to do error correction.&lt;br /&gt;
&lt;br /&gt;
Task 3: Use jellyfish and musket - similar to the denovo exercise - to do error correction. &amp;lt;pre&amp;gt;&lt;br /&gt;
jellyfish stats reads_jellyfish&lt;br /&gt;
&lt;br /&gt;
musket -k 15 XYZ -p 1 -omulti reads.cor -inorder reads.pair1.truncated.gz reads.pair2.truncated.gz -zlib 1&lt;br /&gt;
mv reads.cor.0 reads.pair1.cor.truncated.gz&lt;br /&gt;
mv reads.cor.1 reads.pair2.cor.truncated.gz&lt;br /&gt;
&lt;br /&gt;
# If Musket wont run copy the data to your directory:&lt;br /&gt;
# cp /home/projects/22126_NGS/exercises/genomic_epi/reads.pair*.cor.truncated.gz .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Task 4: Make an assembly using SOAPdenovo&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SOAPdenovo-127mer pregraph -s unknown.soap.conf -K 35 -p 2 -o initial&lt;br /&gt;
SOAPdenovo-127mer contig -g initial&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now you should have a file called &amp;quot;initial.contig&amp;quot;, we need to map our reads back to the contigs to identify the insert size, just as we did in the alignment exercise. Lets only map the first 100.000 reads - this should be enough.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat reads.pair1.cor.truncated.gz | head -n 100000 &amp;gt; reads_sample_1.fastq&lt;br /&gt;
zcat reads.pair2.cor.truncated.gz | head -n 100000 &amp;gt; reads_sample_2.fastq&lt;br /&gt;
&lt;br /&gt;
bwa index initial.contig&lt;br /&gt;
bwa mem initial.contig reads_sample_1.fastq reads_sample_2.fastq | samtools view -Sb - &amp;gt; initial.sample.bam&lt;br /&gt;
&lt;br /&gt;
samtools view initial.sample.bam | cut -f9 &amp;gt; initial.insertsizes.txt&lt;br /&gt;
&lt;br /&gt;
R&lt;br /&gt;
a = read.table(&amp;quot;initial.insertsizes.txt&amp;quot;)&lt;br /&gt;
a.v = a[a[,1]&amp;gt;0,1]&lt;br /&gt;
mn = quantile(a.v, seq(0,1,0.05))[4]&lt;br /&gt;
mx = quantile(a.v, seq(0,1,0.05))[18]&lt;br /&gt;
mean(a.v[a.v &amp;gt;= mn &amp;amp; a.v &amp;lt;= mx])       # mean&lt;br /&gt;
sd(a.v[a.v &amp;gt;= mn &amp;amp; a.v &amp;lt;= mx])         # sd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
m = 320.5364&lt;br /&gt;
sd = 7.8&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Update the unknown.soap.conf with the correct insert size and run de novo assembly of the reads using K=65 (this a fairly good K for this data).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SOAPdenovo-127mer all -s unknown.soap.conf -K 65 -p 2 -o asmK65&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q4. Scaffolds: 150, Contigs: 416, Scaffold N50: 376655, Contig N50: 70749&lt;br /&gt;
&lt;br /&gt;
Q5. Yes, ST-313.&lt;br /&gt;
&lt;br /&gt;
Task 5: Alignment to the sequence type reference genome.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bwa index reference.fa&lt;br /&gt;
bwa mem -t 2 -R &amp;quot;@RG\tID:ST313\tSM:ST313\tPL:ILLUMINA&amp;quot; reference.fa reads.pair1.truncated.gz \&lt;br /&gt;
 reads.pair2.truncated.gz | samtools view -Sb - &amp;gt; aln.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Q6. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools view -u -q 30 aln.bam | samtools sort -O BAM -o aln.sort.bam - &lt;br /&gt;
samtools index aln.sort.bam&lt;br /&gt;
&lt;br /&gt;
bedtools genomecov -ibam aln.sort.bam &amp;gt; aln.cov&lt;br /&gt;
R --vanilla aln.cov aln.cov genome &amp;lt; /home/projects/22126_NGS/exercises/genomic_epi/programs/plotcov.R&lt;br /&gt;
evince aln.cov.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Around 99% of the genome is at 10x or better coverage.&lt;br /&gt;
&lt;br /&gt;
Task 6: Remove duplicates, sort the resulting bam and index it. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -Xmx2g -jar /home/ctools/picard_2.23.8/picard.jar MarkDuplicates INPUT=aln.sort.bam OUTPUT=aln.sort.rmdup.bam    ASSUME_SORTED=TRUE METRICS_FILE=/dev/null VALIDATION_STRINGENCY=SILENT REMOVE_DUPLICATES=true&lt;br /&gt;
samtools index aln.sort.rmdup.bam &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Q7. 104517 reads are duplicates&lt;br /&gt;
&lt;br /&gt;
Q8. 62 variants was called, 13 are indels.&lt;br /&gt;
&lt;br /&gt;
Q9. 49 SNPs&lt;br /&gt;
&lt;br /&gt;
Q10. Our strain is the closest to &amp;quot;C&amp;quot;. A Congo 2002 strain of Salmonella Typhimurium ST313.&lt;br /&gt;
&lt;br /&gt;
Q11. Aminoglycoside, Beta-lactam, Sulphonamid and Trimethoprim&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Genomic_epidemiology_exercise&amp;diff=65</id>
		<title>Genomic epidemiology exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Genomic_epidemiology_exercise&amp;diff=65"/>
		<updated>2024-03-19T15:56:21Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;H3&amp;gt;Overview&amp;lt;/H3&amp;gt;  You are a bioinformatician working with epidemiology in Copenhagen. In the last couple of days more and more people have been admitted to the Hospitals in the region with severe bacteremia (bacteria in the bloodstream) and several patients, especially infants and young children, have had fatal outcomes. Luckily the probable causative infectious bacteria has been isolated and sequenced on a desktop sequencer and now it is your job to find out:  &amp;lt;OL&amp;gt; &amp;lt;LI...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H3&amp;gt;Overview&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You are a bioinformatician working with epidemiology in Copenhagen. In the last couple of days more and more people have been admitted to the Hospitals in the region with severe bacteremia (bacteria in the bloodstream) and several patients, especially infants and young children, have had fatal outcomes. Luckily the probable causative infectious bacteria has been isolated and sequenced on a desktop sequencer and now it is your job to find out:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;What is it?&lt;br /&gt;
&amp;lt;LI&amp;gt;Have we seen it before?&lt;br /&gt;
&amp;lt;LI&amp;gt;How can we treat it (is it drug-resistant)?&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Preparation&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make a copy of the data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir genomic_epi&lt;br /&gt;
cd genomic_epi&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/genomic_epi/ref* .&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/genomic_epi/unk* .&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/genomic_epi/data/reads* .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Preprocessing&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lets look at the quality of the number of reads that we have and the quality data. For the fastx_readlength.py command the output is &amp;quot;avg readlength, min length, max length, no. reads and no. bases&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q1. How many reads and bases do we have in total? (Hint: Use tools from previous lectures to figure this out) &amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task1: Run quality control using fastqc to check for quality of data.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q2. Are there any aspects of the data you would want to correct? Would you trim adapters, for example? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task2: Lets trim the data, the sequencing adapters and primers used are (even though there are no overrepresented seqs in R2):&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Adaptor for R1: ATCGGAAGAGCACACGTCTGAACTCCAGTCACATTCCTATCTCGTATGCC&lt;br /&gt;
Adaptor for R2: GATCGGAAGAGCACACGTCTGAACTCCAGTCACATGAGCATCTCGTATGC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Error correction&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Count kmers and let&#039;s plot the kmer distribution - again we count 15-mers because we are looking at a bacterial genome.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q3. Where is the peak at? Do we have enough coverage of the genome to correct the reads (eg. above 15X)? Hint: use jellyfish count and jellyfish histo to generate histogram of kmer depths&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Let&#039;s correct the reads using Musket, here we use the kmer distribution as above to identify &amp;quot;true&amp;quot; and &amp;quot;error&amp;quot; kmers and pass through the reads correcting true reads. First, get the number of distinct k-mers in the dataset and then run musket. Replace &amp;quot;XYZ&amp;quot; in the musket command with the number of distinct k-mers before running it. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task 3: Use error correction command from previous exercises to do the error correction. If musket takes too long or won&#039;t run, use pre-generated files. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;What is it?&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Identify species&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let&#039;s identify the species. Here we can use a program developed by the [http://www.genomicepidemiology.org/ Center for Genomic Epidemiology] to quickly identify species from either reads or an assembly. What it is doing is to use a database of 16S rRNA genes and then map the reads to the database. The reads that map to the 16S rRNA database - enriched 16S rRNA reads - are then used to perform a &#039;&#039;denovo&#039;&#039; assembly returning a full-length 16S rRNA from the sequence. This is then compared with blast to known 16S rRNAs and output is written in ssu.out.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NB: 16S rRNA is not the best method to predict species - it has an accuracy of around 80%, we could use k-mers instead. If you are interested in this you can have a look at this [http://jcm.asm.org/content/52/5/1529.short paper]. You can try a kmer-method [http://cge.cbs.dtu.dk/services/KmerFinder/ here]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
speciesfinder.py reads.pair1.cor.truncated.gz --Mbases 20 --n 2 --tax --sample pathogenic_bacteria&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When it is done open the output file (inside the pathogenic_bacteria folder called ssu.out), the first line is the best match to our assembly in the database. The second column is whether we can trust the prediction or not. &amp;lt;b&amp;gt; Which species do we think it is?&amp;lt;/b&amp;gt; This particular species is known to cause gastroenteritis with more than 90 million cases globally each year, with 155000 deaths. Most human infections are self-limiting, however, 5% of the patients will develop bacteremia - however, our strain seems to be more pathogenic.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;&amp;lt;i&amp;gt;de novo&amp;lt;/i&amp;gt; assembly&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Ok now we know what species it is - but this species is found everywhere on the planet, maybe we should see if we could identify it more precisely within the species. For this we can use MLST (Multi Locus Sequence Typing) which is a method used in clinical epidemiology to type different sub-types of bacterial species. Instead of using just one Locus (=gene) as is done with 16S rRNA, it uses multiple loci to identify the type. Luckily we have a server that can do that for us, but first, we need to assemble the genome.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; let&#039;s start by making a &#039;&#039;denovo&#039;&#039; assembly to identify the insert size for the final assembly. &amp;quot;unknown.soap.conf&amp;quot; is a template configuration file for SOAPdenovo2. Open it with your favorite text editor and insert the correct location of your preprocessed reads&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task 4: Make a denovo assembly using the SOAPdenovo as we did in the denovo exercises.&lt;br /&gt;
This task has many steps - refer back to the denovo exercises for all the details. In the second run of SOAPdenovo, use a k-mer size of 65. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now, let us filter the assembly contigs and scaffolds for minimum length of 100. We can use fastx_filterfasta.py for this. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fastx_filterfasta.py --i asmK65.contig --min 100&lt;br /&gt;
fastx_filterfasta.py --i asmK65.scafSeq --min 100&lt;br /&gt;
assemblathon_stats.pl asmK65.contig.filtered_100.fa &amp;gt; asmK65.contig.stats&lt;br /&gt;
assemblathon_stats.pl asmK65.scafSeq.filtered_100.fa &amp;gt; asmK65.scafSeq.stats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Look in the &amp;lt;i&amp;gt;asmK65.contig.stats&amp;lt;/i&amp;gt; file under the &amp;quot;contigs&amp;quot; section to find the stats for the contigs, also look in the &amp;lt;i&amp;gt;asmK65.scafSeq.stats&amp;lt;/i&amp;gt; file under the &amp;quot;scaffold&amp;quot; section to find the stats&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q4. How many contigs and scaffolds do you get and what is the N50?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;MLST&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have an assembly, let&#039;s see if we can identify a Multilocus sequence type (MLST) for our strain. This works by finding the particuar MLST alleles in our genome and comparing them to a table to see if there is any match with a known sequence type. Here we are going to use the command-line version but we could just as well have used the [http://cge.cbs.dtu.dk/services/MLST/ webserver]. &amp;lt;b&amp;gt;Figure out what to use as the species name (-d option) by running mlst.pl without any inputs and make sure to exchange the assembly.fa with the scaffold sequences from our assembly.&amp;lt;/b&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;
Remember to replace the &#039;&#039;speciesname&#039;&#039; with the appropriate species name from the list you get from mlst.pl: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mlst.pl -d speciesname -i assembly.fa &amp;gt; mlst.res&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
mlst.pl -d senterica -i asmK65.scafSeq.filtered_100.fa &amp;gt; mlst.res&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The run takes around 5 minutes to complete. When it is complete, open the file and look at the output - there is ab=n alignment of our assembly vs. the closest match in the MLST database. You see that for the particular species we are using there are 7 loci, and it is the combination of these that make up the sequence type. Also, we require that there is a 100% match over the entire allele to identify a sequence type.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q5. Do we have 100% matches to a sequence type? If yes, which sequence type (ST-XXX) is our pathogen?&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This particular sequence type is known to be present in sub-Saharan Africa and to have increased mortality in children - in some countries with a higher death toll than malaria. This is a dangerous sequence type. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;SNV based phylogeny&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We can now assume that our pathogen is coming from sub-Saharan Africa, but we do not know where the particular strain is from. To get a higher resolution we can build a phylogeny based on SNPs and compare our strain to other strains. First, let us map the reads to the reference genome of our sequence type.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Alignment and BAM-processing&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task 5: Do an alignment - use the reference.fa as the reference genome, and our paired end reads as input. Use bwa index and bwa mem.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now let us extract all reads with a mapping quality of 30 or better, sort and index the alignments. Then answer the following question. Hint: Use samtools for the first part and use bedtools genomecov and the R script /home/projects/22126_NGS/exercises/genomic_epi/programs/plotcov.R for for calculating the coverage. Use evince to open the pdf.&amp;lt;/p&amp;gt;&lt;br /&gt;
Example command (substiute your filenames for MYBAM and MY_COVERAGE):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bedtools genomecov -ibam MYBAM &amp;gt; MY_COVERAGE&lt;br /&gt;
R --vanilla MY_COVERAGE MY_COVERAGE genome &amp;lt; /home/projects/22126_NGS/exercises/genomic_epi/programs/plotcov.R&lt;br /&gt;
evince MY_COVERAGE.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q6. How much of the genome is covered at minimum 10X? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lets process the alignments - this will be explained in detail in the [https://teaching.healthtech.dtu.dk/material/22126/2021/41_post_alignment_variantcalling_GR.pdf lectures] and exercises for [https://teaching.healthtech.dtu.dk/22126/index.php/Postprocess_exercise alignment] post-processing and [http://teaching.healthtech.dtu.dk/22126/index.php/SNP_calling_exercise variant calling]. We will start with removing duplicates and indexing the de-duped bam file.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Task 6: Remove duplicates from the bam file, sort it and index it. Hint: Use postprocess exercise.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&#039;&#039;&#039;2021 NOTE:&#039;&#039;&#039; I did not have time to revamp these exercises, it uses an old version of GATK which runs indels realignment. We did not cover these as the new version of GATK uses a different algorithm altogether. Sorry for any confusion. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Then we are going to do realignment&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/genomic_epi/programs/GenomeAnalysisTK.jar .&lt;br /&gt;
java -Xmx2g -jar GenomeAnalysisTK.jar    -I aln.sort.rmdup.bam   -R reference.fa    -T RealignerTargetCreator    -o IndelRealigner.intervals&lt;br /&gt;
&lt;br /&gt;
java -Xmx2g -jar GenomeAnalysisTK.jar    -I aln.sort.rmdup.bam    -R reference.fa    -T IndelRealigner    -targetIntervals IndelRealigner.intervals    -o aln.sort.rmdup.realn.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q7. How many reads were removed as duplicates?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;H3&amp;gt;Calling gVCF using HaplotypeCaller&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we are ready to call SNPs. To call variants we will use the Haplotyper in GATK. We will set the &amp;lt;b&amp;gt;ploidy to 1 (because it is a haploid organism) &amp;lt;/b&amp;gt;and this time output it as a gVCF. This means that we will also information on sites that are non-variant (eg. same as reference genome), but write them in a condensed form. We can then use this gVCF to merge with 4 other samples that I have already processed:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools index aln.sort.rmdup.bam&lt;br /&gt;
gatk --java-options &amp;quot;-Xmx10g&amp;quot; HaplotypeCaller -R reference.fa -I aln.sort.rmdup.bam -O var.raw.g.vcf -ERC GVCF &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- java -Xmx2g -jar GenomeAnalysisTK.jar    -R reference.fa    -T HaplotypeCaller    -I aln.sort.rmdup.bam    -o var.raw.g.vcf    --emitRefConfidence GVCF    -ploidy 1 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Take a look at the output file (&amp;lt;b&amp;gt;var.raw.g.vcf&amp;lt;/b&amp;gt;). You will see that it contains many sites that contain &amp;quot;NON_REF&amp;quot; as the variant allele and have &amp;quot;END=position&amp;quot; - these are intervals that are non-variant at a certain threshold (Genotype Quality (GQ)). We can now genotype our sample together with 4 other samples (named C-F, our sample is called ST313) that I have already process and have as gVCFs - you might as well have processed them, but this is to speed up things a bit.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/genomic_epi/gVCF/*.vcf .&lt;br /&gt;
gatk CombineGVCFs -R reference.fa -V var.raw.g.vcf -V C.raw.g.vcf -V D.raw.g.vcf -V E.raw.g.vcf -V F.raw.g.vcf -O merged.g.vcf&lt;br /&gt;
gatk  GenotypeGVCFs -R reference.fa -V merged.g.vcf  -O merged.vcf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- java -jar GenomeAnalysisTK.jar    -T GenotypeGVCFs    -R reference.fa    --variant var.raw.g.vcf    --variant C.raw.g.vcf    --variant D.raw.g.vcf    --variant E.raw.g.vcf    --variant F.raw.g.vcf &lt;br /&gt;
    -o merged.vcf  --&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Again take a look at the output (&amp;lt;b&amp;gt;merged.vcf&amp;lt;/b&amp;gt;). You see this is a normal VCF file, but now we have information from all samples in the 5 last columns. Because we set the -ploidy 1 when we ran HaplotypeCaller the genotype is now written as &amp;quot;0&amp;quot; or &amp;quot;1&amp;quot; and not as eg. &amp;quot;0/1&amp;quot; because we only have chromosome copy.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q8. How many variant calls did get for all of our samples? How many of those were indels (Hint: look at the REF, ALT and QUAL columns)?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we need to filter the SNPs, because we don&#039;t have a catalog of variation we can&#039;t do it using the Soft filtering approach (Variant-Quality-Score-Recalibration). Let us also remove the indel calls and then use the SNPs for the phylogeny:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gzip merged.vcf&lt;br /&gt;
select_snvs.sh merged.vcf.gz merged.snps.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q9. How many SNPs do we have in our final vcf file?&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;H3&amp;gt;Phylogenetic reconstruction&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we have our SNPs for our outbreak strain and for several other strains. Let&#039;s create a phylogenetic tree using [http://www.atgc-montpellier.fr phyml]. Here we extract all SNPs from our samples and convert them into fasta and hereafter phylip alignment that can be input to phyml. We will run 100 bootstraps.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vcf-to-tab &amp;lt; merged.snps.vcf &amp;gt; merged.snps.tab&lt;br /&gt;
vcf_tab_to_fasta_alignment.pl -i merged.snps.tab &amp;gt; merged.snps.fasta&lt;br /&gt;
trimal -in merged.snps.fasta -phylip &amp;gt; merged.snps.phylip&lt;br /&gt;
phyml -i merged.snps.phylip -b 100 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt; Let&#039;s look at the tree in FigTree. Open the program (below) and chose &amp;quot;File&amp;quot;, &amp;quot;Open&amp;quot; and select &amp;quot;merged.snps.phylip_phyml_tree&amp;quot;, write bootstrap in the pop-up menu and re-root on the branch going to &amp;quot;F&amp;quot;. Click &amp;quot;Node Labels&amp;quot; and select &amp;quot;Display-&amp;gt;bootstrap&amp;quot; which will show the bootstrap values on each node in the tree. Try to choose a different layout and see how it looks. You can load annotations by Selecting &amp;quot;File -&amp;gt; Import Annotations&amp;quot;. Then go to &amp;quot;/home/projects/22126_NGS/exercises/genomic_epi/strain.info&amp;quot;, hereafter click &amp;quot;Tip Labels -&amp;gt; Display and then select &amp;quot;info&amp;quot;. You will now see a description of the different strains.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -Xmx512m -jar /home/ctools/FigTree_v1.4.4/lib/figtree.jar &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;p&amp;gt;If you have problems loading the files you can open the tree i made: /home/projects/22126_NGS/exercises/genomic_epi/merged.snps.phylip_phyml_tree.pdf (use evince).&amp;lt;/p&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Q10. Which strain is the closest to ours?&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;What would you use this information for to help track down the source of the outbreak?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&amp;lt;H2&amp;gt;How can we treat it?&amp;lt;/H2&amp;gt;&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now that we have the de novo assembly of our strain, let&#039;s look for resistance genes. If we find any of these then we know what &amp;lt;i&amp;gt;not&amp;lt;/i&amp;gt; to treat patients with. Here we will use another webserver from the CGE project, the [http://cge.cbs.dtu.dk/services/ResFinder/ ResFinder]. Download the assembly to your own computer and upload them to the server. Chose a threshold of 98% and submit the job.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Q11. Are there any resistance genes in our outbreak strain?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The next step would be to investigate the differences between these and similar but non-pathogenic strains to see if we could find the course of the increased virulence, but this will be for another time.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Congratulations you finished the exercise!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Genomic_epidemiology_solution|here]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Pca.png&amp;diff=64</id>
		<title>File:Pca.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Pca.png&amp;diff=64"/>
		<updated>2024-03-19T15:54:57Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Bc_heatmap.png&amp;diff=63</id>
		<title>File:Bc heatmap.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Bc_heatmap.png&amp;diff=63"/>
		<updated>2024-03-19T15:54:19Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Wilcoxon_significant.png&amp;diff=62</id>
		<title>File:Wilcoxon significant.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Wilcoxon_significant.png&amp;diff=62"/>
		<updated>2024-03-19T15:53:59Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Sample_depth.png&amp;diff=61</id>
		<title>File:Sample depth.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Sample_depth.png&amp;diff=61"/>
		<updated>2024-03-19T15:53:35Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=QuantitativeMetagenomicsSolution&amp;diff=60</id>
		<title>QuantitativeMetagenomicsSolution</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=QuantitativeMetagenomicsSolution&amp;diff=60"/>
		<updated>2024-03-19T15:53:03Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q1. How many samples do we have and how many genes?&amp;#039;&amp;#039;&amp;#039;  &amp;lt;pre&amp;gt;&amp;gt; str(Counts)  int [1:251436, 1:401] &amp;lt;/pre&amp;gt; 251436 genes and 401 individuals  &amp;#039;&amp;#039;&amp;#039;Q2. What&amp;#039;s the sample depth range?&amp;#039;&amp;#039;&amp;#039; &amp;lt;pre&amp;gt;&amp;gt; range(sampleDepth) [1]  1533776 41391478 &amp;lt;/pre&amp;gt;  1533776 to 41391478  File:Sample_depth.png  The figure shows the number of samples (persons) on the y-axis containing the displayed number of reads on the x-axis  &amp;#039;&amp;#039;&amp;#039;Q3. How many species are there in total?&amp;#039;&amp;#039;&amp;#039; &amp;lt;pre&amp;gt; str(taxCounts)...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Q1. How many samples do we have and how many genes?&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;gt; str(Counts)&lt;br /&gt;
 int [1:251436, 1:401] &amp;lt;/pre&amp;gt;&lt;br /&gt;
251436 genes and 401 individuals&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2. What&#039;s the sample depth range?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;gt; range(sampleDepth)&lt;br /&gt;
[1]  1533776 41391478 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1533776 to 41391478&lt;br /&gt;
&lt;br /&gt;
[[File:Sample_depth.png]]&lt;br /&gt;
&lt;br /&gt;
The figure shows the number of samples (persons) on the y-axis containing the displayed number of reads on the x-axis&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3. How many species are there in total?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt; str(taxCounts)&lt;br /&gt;
 int [1:120, 1:401] &amp;lt;/pre&amp;gt;&lt;br /&gt;
120 species&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4. What does a high Shannon diversity index mean?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A high Shannon diversity index means that there are many species present with equal abundance. Typical values are generally between 1.5 and 3.5 in most ecological studies, and the index is rarely greater than 4. The Shannon index increases as both the richness and the evenness of the community increase.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5. Which threshold did you choose and why? How many samples did you lose?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A good guestimate is 3e6, where we remove 8 samples.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6. What is the effect on downsizing on the richness&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Lowering the richness&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7. What is the effect on downsizing on diversity (Shannon)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
No effect, the Shannon index is biased more toward evenness than richness. Since richness weighs rare species just the same as abundant species, this implies that the Shannon index gives more significance to common species.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8. Is there any significant difference in abundance of E. coli between the different BMI groups?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
No, the p-value is 0.146&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q9. How many species are significant with an FDR &amp;lt; 0.05?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Wilcoxon_significant.png]]&lt;br /&gt;
&lt;br /&gt;
Only 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q10. Can you see any differences in the abundances - which species have large differences, what are their p-values?&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Yes, there are differences, especially Ruminoccocus torques is significantly different.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q11. What type of bacteria is the most significant one? [try google]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Ruminoccocus torques is a fairly common gastrointestinal bacteria.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q12. Can you see some clusters of samples?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:bc_heatmap.png]]&lt;br /&gt;
&lt;br /&gt;
Yes, a Bray-Curtis dissimilarity of zero indicates high similarity and we do see clusters of blue.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q13. Can you see which species that seems to be driving the differences between the samples?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:pca.png]]&lt;br /&gt;
&lt;br /&gt;
Yes, they are indicated in red vectors.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q14. which are the most significant species? Is there an overlap between these and using the downsizing+wilcoxon test (what you did above)?&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We get much higher significance and the literature suggests actual relevance for obesity.&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Data_Preprocess_exercise_answers|here]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Log_fold_diff_sign.png&amp;diff=59</id>
		<title>File:Log fold diff sign.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Log_fold_diff_sign.png&amp;diff=59"/>
		<updated>2024-03-19T15:52:26Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Bmi_class.png&amp;diff=58</id>
		<title>File:Bmi class.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Bmi_class.png&amp;diff=58"/>
		<updated>2024-03-19T15:52:03Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_species_abundance.png&amp;diff=57</id>
		<title>File:Comparing species abundance.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_species_abundance.png&amp;diff=57"/>
		<updated>2024-03-19T15:51:41Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_shannon.png&amp;diff=56</id>
		<title>File:Comparing shannon.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_shannon.png&amp;diff=56"/>
		<updated>2024-03-19T15:51:12Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_richness.png&amp;diff=55</id>
		<title>File:Comparing richness.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Comparing_richness.png&amp;diff=55"/>
		<updated>2024-03-19T15:50:38Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_shannon.png&amp;diff=54</id>
		<title>File:Downsized shannon.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_shannon.png&amp;diff=54"/>
		<updated>2024-03-19T15:50:17Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_richness.png&amp;diff=53</id>
		<title>File:Downsized richness.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_richness.png&amp;diff=53"/>
		<updated>2024-03-19T15:49:00Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_sampledepth.png&amp;diff=52</id>
		<title>File:Downsized sampledepth.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Downsized_sampledepth.png&amp;diff=52"/>
		<updated>2024-03-19T15:48:31Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_sampledepth.png&amp;diff=51</id>
		<title>File:Raw sampledepth.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_sampledepth.png&amp;diff=51"/>
		<updated>2024-03-19T15:48:11Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_richnessVSshannonZoom.png&amp;diff=50</id>
		<title>File:Raw richnessVSshannonZoom.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_richnessVSshannonZoom.png&amp;diff=50"/>
		<updated>2024-03-19T15:47:46Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_shannon.png&amp;diff=49</id>
		<title>File:Raw shannon.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_shannon.png&amp;diff=49"/>
		<updated>2024-03-19T15:47:13Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_richness.png&amp;diff=48</id>
		<title>File:Raw richness.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Raw_richness.png&amp;diff=48"/>
		<updated>2024-03-19T15:46:53Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=QuantitativeMetagenomics&amp;diff=47</id>
		<title>QuantitativeMetagenomics</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=QuantitativeMetagenomics&amp;diff=47"/>
		<updated>2024-03-19T15:45:53Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;H3&amp;gt;Overview&amp;lt;/H3&amp;gt; If you need to use metagenomics for your final project, we have a more thorough workflow that you will need to use https://teaching.healthtech.dtu.dk/22136/index.php/22136:Course_plan_autumn_2020 here.   Since metagenomics data is often very large, it requires a lot of computational resources and time, we have cheated a little bit and prepared some data for you in advance!  In this exercise we have done the assembly and counting across a cohort of...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;H3&amp;gt;Overview&amp;lt;/H3&amp;gt;&lt;br /&gt;
If you need to use metagenomics for your final project, we have a more thorough workflow that you will need to use [[https://teaching.healthtech.dtu.dk/22136/index.php/22136:Course_plan_autumn_2020 here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since metagenomics data is often very large, it requires a lot of computational resources and time, we have cheated a little bit and prepared some data for you in advance!&lt;br /&gt;
&lt;br /&gt;
In this exercise we have done the assembly and counting across a cohort of hundreds of human fecal&lt;br /&gt;
samples in advance and in addition provide the gene-wise taxonomy and the BMI of the&lt;br /&gt;
human donors.&lt;br /&gt;
From this data we shall estimate the species richness, diversity and look at the effect of&lt;br /&gt;
downsizing. Furthermore we shall see if we can identify any differences between the&lt;br /&gt;
microbiome of lean and obese.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Becoming a pirate&amp;lt;/H3&amp;gt;&lt;br /&gt;
This exercise uses R either locally (install RStudio on your own machine) or on the server by typing &lt;br /&gt;
&amp;lt;pre&amp;gt;R&amp;lt;/pre&amp;gt;&lt;br /&gt;
First, IF you are running RStudio locally you will need to install a package called &amp;quot;vegan&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;install.packages(&amp;quot;vegan&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, let’s load the &amp;quot;vegan&amp;quot; package and thereafter load the read count data from a series of stool samples.&lt;br /&gt;
&amp;lt;pre&amp;gt;library(&amp;quot;vegan&amp;quot;)&lt;br /&gt;
load(url(&amp;quot;http://teaching.healthtech.dtu.dk/material/22126/Counts_NGS.RData&amp;quot;))&lt;br /&gt;
head(Counts)&lt;br /&gt;
str(Counts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Q1. How many samples do we have and how many genes?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The different samples may have been sequenced to different depths. Try to count the reads per sample&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sampleDepth&amp;lt;-(colSums(Counts))&lt;br /&gt;
hist(sampleDepth, breaks=100, ylab=&amp;quot;Number of samples&amp;quot;, xlab=&amp;quot;Number of reads&amp;quot;, main=&amp;quot;Sample depth&amp;quot;)&lt;br /&gt;
range(sampleDepth)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2. Whats the sample depth range?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;H3&amp;gt;Species&amp;lt;/H3&amp;gt;&lt;br /&gt;
Lets get the genes associated to species. Here is the gene-wise species taxonomy&lt;br /&gt;
&amp;lt;pre&amp;gt;load(url(&amp;quot;http://teaching.healthtech.dtu.dk/material/22126//taxonomy_species.RData&amp;quot;))&lt;br /&gt;
head(taxonomy_species)&amp;lt;/pre&amp;gt;&lt;br /&gt;
We then combine (by summing) the read counts pr. gene to read counts per species.&lt;br /&gt;
&amp;lt;pre&amp;gt;taxCounts&amp;lt;-apply(Counts, 2, tapply, INDEX=taxonomy_species, sum)&amp;lt;/pre&amp;gt;&lt;br /&gt;
Try looking at the taxCounts matrix&lt;br /&gt;
&amp;lt;pre&amp;gt;str(taxCounts)&lt;br /&gt;
head(taxCounts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Q3. How many species are there in total?&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;H3&amp;gt;Richness and Diversity&amp;lt;/H3&amp;gt;&lt;br /&gt;
What is the species richness and diversity (Shannon) for the different samples.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4. What does a high Shannon diversity index mean?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OK, lets see it for our samples&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
species_richness&amp;lt;-(colSums(taxCounts&amp;gt;0))&lt;br /&gt;
names(species_richness)&amp;lt;-NULL&lt;br /&gt;
require(vegan)&lt;br /&gt;
speciesDiversity&amp;lt;-diversity(t(taxCounts), index = &amp;quot;shannon&amp;quot;)&lt;br /&gt;
names(speciesDiversity)&amp;lt;-NULL &lt;br /&gt;
par(mfrow=c(1,1))&lt;br /&gt;
barplot(sort(species_richness), las=3, main=&amp;quot;Species richness&amp;quot;, xlab=&amp;quot;Samples&amp;quot;, ylab=&amp;quot;Richness&amp;quot;)&lt;br /&gt;
barplot(sort(speciesDiversity), xlab=&amp;quot;Samples&amp;quot;, las=3, main=&amp;quot;Diversity (Shannon)&amp;quot;)&lt;br /&gt;
plot(species_richness,speciesDiversity,xlab=&amp;quot;Richness&amp;quot;, ylab=&amp;quot;Shannon diversity index&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:raw_richness.png]][[File:raw_shannon.png]][[File:raw_richnessVSshannonZoom.png]]&lt;br /&gt;
&lt;br /&gt;
Each samples or persons richness and diversity is shown and the third plot shows each sample/persons richness &amp;amp; diversity as a dot.&lt;br /&gt;
&amp;lt;H3&amp;gt;Downsizing or rarefying&amp;lt;/H3&amp;gt;&lt;br /&gt;
But this was on the raw count data with different sampling depth (number of counts) per sample. We should downsize so that we get fair comparisons.&lt;br /&gt;
&lt;br /&gt;
First suggest the number of reads we should sample per sample for the downsizing [target]. If we chose a low target we will loose abundance resolution and detection sensitivity. If we chose it higher we will loose samples.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;gt; plot(sampleDepth, pch=20, log=&amp;quot;y&amp;quot;, xlab=&amp;quot;Samples&amp;quot;, ylab=&amp;quot;Number of reads&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:raw_sampledepth.png]]&lt;br /&gt;
&lt;br /&gt;
There is no right answer (but there are less good suggestions). Insert the number you want to downsize to below and plot it again - the samples above the horizontal line we will keep and the samples below the line we will throw out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; downsizeTarget &amp;lt;- INSERT NUMBER&lt;br /&gt;
&amp;gt; plot(sampleDepth, pch=20, log=&amp;quot;y&amp;quot;, xlab=&amp;quot;Samples&amp;quot;, ylab=&amp;quot;Number of reads&amp;quot;); abline(h=downsizeTarget)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:downsized_sampledepth.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5. Which threshold did you chose and why? How many samples did you loose?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OK lets downsize&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; dz_Counts&amp;lt;-round(t(t(Counts)*downsizeTarget/sampleDepth))&lt;br /&gt;
&amp;gt; weak_samples&amp;lt;-sampleDepth&amp;lt;downsizeTarget&lt;br /&gt;
&amp;gt; dz_Counts[,weak_samples]&amp;lt;-NA # samples that did not make the cut&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a quick and dirty downsizing (ideally one resampled the reads to a given depth, but that will take days)&lt;br /&gt;
Count the species again, now on the downsized data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dz_taxCounts&amp;lt;-apply(dz_Counts, 2, tapply, INDEX=taxonomy_species, sum); gc() &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And the richness and diversity again, now on downsized data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; dz_species_richness&amp;lt;-(colSums(dz_taxCounts&amp;gt;0))&lt;br /&gt;
&amp;gt; names(dz_species_richness)&amp;lt;-NULL&lt;br /&gt;
&amp;gt; require(vegan)&lt;br /&gt;
&amp;gt; dz_speciesDiversity&amp;lt;-diversity(t(dz_taxCounts), index = &amp;quot;shannon&amp;quot;)&lt;br /&gt;
&amp;gt; dz_speciesDiversity[weak_samples]&amp;lt;-NA&lt;br /&gt;
&amp;gt; names(dz_speciesDiversity)&amp;lt;-NULL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now plot the richness and diversity with downsized data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; par(mfrow=c(1,1), pch=1)&lt;br /&gt;
&amp;gt; barplot(sort(dz_species_richness), las=3, main=&amp;quot;Species richness (Downsized)&amp;quot;, xlab=&amp;quot;Species&amp;quot;, ylab=&amp;quot;Richness&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:downsized_richness.png]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
barplot(sort(dz_speciesDiversity), las=3,main=&amp;quot;Shannon&#039;s diversity index (downsized)&amp;quot;, xlab=&amp;quot;Species&amp;quot;, ylab=&amp;quot;Shannon diversity&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:downsized_shannon.png]]&lt;br /&gt;
&lt;br /&gt;
And compare to the raw data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; plot(dz_species_richness,species_richness, xlab=&amp;quot;downsized richness&amp;quot;, ylab=&amp;quot;raw richness&amp;quot;, main=&amp;quot;Richness&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Comparing_richness.png]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; plot(dz_speciesDiversity,speciesDiversity,xlab=&amp;quot;downsized species diversity&amp;quot;, ylab=&amp;quot;raw species diversity&amp;quot;,main=&amp;quot;Diversity (Shannon)&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Comparing_shannon.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6. What is the effect on the downsizing on richness&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7. What is the effect on the downsizing on diversity (shannon)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Lets plot the abundance of each species in a sample with low diversity and a sample with high diversity. You should be able to see a clear difference between the two samples!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; par(mfrow=c(1,2))&lt;br /&gt;
&amp;gt; barplot(taxCounts[,4], main=&amp;quot;Person 4, SD &amp;gt; 3&amp;quot;, xaxt=&amp;quot;n&amp;quot;, xlab=&amp;quot;Species&amp;quot;, ylab=&amp;quot;Normalized abundance&amp;quot;)&lt;br /&gt;
&amp;gt; barplot(taxCounts[,240], main=&amp;quot;Person 240, SD &amp;lt; 0.5&amp;quot;, xaxt=&amp;quot;n&amp;quot;, xlab=&amp;quot;Species&amp;quot;, ylab=&amp;quot;Normalized abundance&amp;quot;)&lt;br /&gt;
&amp;gt; par(mfrow=c(1,1))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:comparing_species_abundance.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Comparisons&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now lets see if there is a difference between the microbiome of lean and obese humans. But first load some sample more information: BMI and Class.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; load(url(&amp;quot;http://teaching.healthtech.dtu.dk/material/22126/BMI.RData&amp;quot;))&lt;br /&gt;
&amp;gt; boxplot(BMI$BMI.kg.m2 ~ BMI$Class, col=c(&amp;quot;red&amp;quot;, &amp;quot;gray&amp;quot;,&amp;quot;blue&amp;quot;), ylab=&amp;quot;BMI&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:bmi_class.png]]&lt;br /&gt;
&lt;br /&gt;
Class are: le = Lean; ow = Overweight; ob = Obese&lt;br /&gt;
&lt;br /&gt;
First let us see if the abundance of E. coli differs between obese and lean individuals using a Wilcoxon rank sum test (look for the p-value in the output), also lets get the mean abundance of E. coli in the tree groups :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; wilcox.test(x=dz_taxCounts[&amp;quot;Escherichia coli&amp;quot;,BMI$Classification==&amp;quot;ob&amp;quot;], y=dz_taxCounts[&amp;quot;Escherichia coli&amp;quot;,BMI$Classification==&amp;quot;le&amp;quot;] )&lt;br /&gt;
&amp;gt; tapply(dz_taxCounts[&amp;quot;Escherichia coli&amp;quot;,], BMI$Classification, mean, na.rm=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8. Is there any significant difference in abundance of E. coli between the different BMI groups?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Let&#039;s test all species correcting for multiple testing using Benjamini-Hochberg (False Discovery Rate) (we are testing 120 species) and plot them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; pval&amp;lt;-apply(dz_taxCounts, 1, function(V){wilcox.test(x=V[BMI$Classification==&amp;quot;ob&amp;quot;],y=V[BMI$Classification==&amp;quot;le&amp;quot;])$p.value})&lt;br /&gt;
&amp;gt; Abundance_ratio&amp;lt;-log2(apply(dz_taxCounts, 1,function(V){mean(x=V[BMI$Classification==&amp;quot;ob&amp;quot;], na.rm=TRUE)/mean(V[BMI$Classification==&amp;quot;le&amp;quot;], na.rm=TRUE)}))&lt;br /&gt;
&amp;gt; pval.adjust = p.adjust(pval, method=&amp;quot;BH&amp;quot;)&lt;br /&gt;
&amp;gt; plot(sort(pval.adjust), log=&amp;quot;y&amp;quot;, pch=16, xlab=&amp;quot;Species&amp;quot;, ylab=&amp;quot;p-values&amp;quot;)&lt;br /&gt;
&amp;gt; abline(h=0.05, col=&amp;quot;grey&amp;quot;, lty=2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q9. How many species are significant with an false discovery rate &amp;lt; 0.05?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Let us look at the top 10 most significant species abundance.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; o&amp;lt;-order(pval)&lt;br /&gt;
&amp;gt; BMIstat&amp;lt;-data.frame(pval,pval.adjust, Abundance_ratio)[o,]&lt;br /&gt;
&amp;gt; BMIstat[1:10,]&lt;br /&gt;
&amp;gt; par(mar=c(5,18,5,5))&lt;br /&gt;
&amp;gt; barplot(BMIstat[1:10,3], names.arg=rownames(BMIstat)[1:10], las=1,xlab=&amp;quot;log fold difference between lean and obese&amp;quot;, horiz=TRUE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:log_fold_diff_sign.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q10. Can you see any differences in the abundances - which species have large differences, what are their p-values?&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q11. What type of bacteria is the most significant one? [try google]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Beta-diversity and PCA&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Plot the Bray-curtis distance between samples as a heatmap.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(RColorBrewer)&lt;br /&gt;
library(gplots)&lt;br /&gt;
vdist = as.matrix(vegdist(t(taxCounts)))&lt;br /&gt;
rownames(vdist) = colnames(vdist)&lt;br /&gt;
hmcol = colorRampPalette(brewer.pal(9, &amp;quot;GnBu&amp;quot;))(100)&lt;br /&gt;
heatmap.2(vdist, trace=&#039;none&#039;, col=rev(hmcol))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q12. Can you see some clusters of samples?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally for the PCA:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; my.rda &amp;lt;- rda(t(taxCounts))&lt;br /&gt;
&amp;gt; biplot(my.rda, display = c(&amp;quot;sites&amp;quot;, &amp;quot;species&amp;quot;), type = c(&amp;quot;text&amp;quot;, &amp;quot;points&amp;quot;))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q13. Can you see which species that seems to be driving the differences between the samples?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Statistically modelling the variance using DESeq2&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, we will see the power of statistically modelling the variance instead of downsizing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; if (!requireNamespace(&amp;quot;BiocManager&amp;quot;, quietly = TRUE))&lt;br /&gt;
&amp;gt; install.packages(&amp;quot;BiocManager&amp;quot;)&lt;br /&gt;
&amp;gt; BiocManager::install(&amp;quot;DESeq2&amp;quot;)&lt;br /&gt;
&amp;gt; library(DESeq2)&lt;br /&gt;
&amp;gt; cts &amp;lt;- taxCounts&lt;br /&gt;
&amp;gt; coldata = BMI[,1]&lt;br /&gt;
&amp;gt; coldata = matrix(NA, nrow=nrow(BMI), ncol=1)&lt;br /&gt;
&amp;gt; coldata[,1] = as.vector(BMI[,1])&lt;br /&gt;
&amp;gt; rownames(coldata) = rownames(BMI)&lt;br /&gt;
&amp;gt; colnames(coldata) = &amp;quot;BMI&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at coldata&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
coldata&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that all individuals are in our coldata (information) and also in the data is true&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
all(rownames(coldata) == colnames(cts))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Load data into DESeq format, perform statistical analysis and get results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; dds &amp;lt;- DESeqDataSetFromMatrix(countData = cts, colData = coldata, design = ~ BMI)&lt;br /&gt;
&amp;gt; dds &amp;lt;- DESeq(dds)&lt;br /&gt;
&amp;gt; res &amp;lt;- results(dds)&lt;br /&gt;
&amp;gt; res&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Order the results according to the adjusted p-value and show the most significant&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; resOrdered &amp;lt;- res[order(res$pvalue),]&lt;br /&gt;
&amp;gt; head(resOrdered)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q14. which are the most significant species (google)? Is there an overlap between these and using downsizing+wilcoxon test (what you did above)?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please find answers [[QuantitativeMetagenomicsSolution|here]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:DDseq_350OTU.png&amp;diff=46</id>
		<title>File:DDseq 350OTU.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:DDseq_350OTU.png&amp;diff=46"/>
		<updated>2024-03-19T15:44:52Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:DDseq_100OTU.png&amp;diff=45</id>
		<title>File:DDseq 100OTU.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:DDseq_100OTU.png&amp;diff=45"/>
		<updated>2024-03-19T15:44:27Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:PrincipalComponents.png&amp;diff=44</id>
		<title>File:PrincipalComponents.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:PrincipalComponents.png&amp;diff=44"/>
		<updated>2024-03-19T15:44:01Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rawkaijubar.png&amp;diff=43</id>
		<title>File:Rawkaijubar.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rawkaijubar.png&amp;diff=43"/>
		<updated>2024-03-19T15:43:35Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Kaiju_solution&amp;diff=42</id>
		<title>Kaiju solution</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Kaiju_solution&amp;diff=42"/>
		<updated>2024-03-19T15:43:08Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;b&amp;gt; Q1: What is nr_euk? And how do the choice of database influence the results of Kaiju?&amp;lt;/b&amp;gt;  nr stands for non-redundant and indicates, that each entry is only found once within the database. BLASTS&amp;#039; nr database contains bacteria, archea and fungi.  euk indicates that microbial eukaryotes and fungi are included.  The database should be intended as the target of the search, so it is of importance that it contains the organisms you are searching for.  &amp;lt;b&amp;gt; Q2: Explain the...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;b&amp;gt; Q1: What is nr_euk? And how do the choice of database influence the results of Kaiju?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
nr stands for non-redundant and indicates, that each entry is only found once within the database. BLASTS&#039; nr database contains bacteria, archea and fungi. &lt;br /&gt;
euk indicates that microbial eukaryotes and fungi are included.&lt;br /&gt;
&lt;br /&gt;
The database should be intended as the target of the search, so it is of importance that it contains the organisms you are searching for.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q2: Explain the terms precision and sensitivity in relation to testing. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Precision is how sure you are of your true positives.&lt;br /&gt;
&lt;br /&gt;
* Sensitivity is how sure you are that you are not missing any positives.&lt;br /&gt;
&lt;br /&gt;
Dependent on whether you want to be confident in your true positives or whether it&#039;s more important to cover all true negatives you can tune the precision and sensitivity parameters.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q3: Take a look at pacu_kaiju.otu.tab and pacu_kaiju.tax.tab and explain what information the files contain. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* pacu_kaiju.otu.tab: Contains the read count of all OTU&#039;s within all samples. &lt;br /&gt;
* pacu_kaiju.tax.tab: Contains information regarding the taxonomic composition of the OTU&#039;s, including Domain, Phylum, Class, Order, Family, Genus and Species&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q4: Look at the plot. Which domains do you see in the samples?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The most dominant domain is Bacteria. &lt;br /&gt;
However a lot of reads could not be assigned taxonomy and are thus assigned &amp;quot;Unknown&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Archea and Eukaryota is seen to a very limited extend.&lt;br /&gt;
&lt;br /&gt;
[[File:Rawkaijubar.png|450px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q5: Can you think of domains or fields that could be relevant to investigate for other research questions?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The data can be divided into all different taxonomy, such as Domain, Phylum, Class, Order, Family, Genus or even according to Species.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q6: What is PCA used forr?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
PCA is used to reduce the dimensionality of the data in order make it interpretable but at the same time minimising the information loss.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q7: What do the plot tell us about the principal components and their associated amount of information?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:PrincipalComponents.png|450px|]]&lt;br /&gt;
&lt;br /&gt;
We see that the variation that can be explained by each PC gradually declines, indicating that the first components carries the most information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q8: Do we see any significant pairs?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So it seems that only Post-antibiotic vs Antibiotic is more significant than the usual threshold of 0.05.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q9: How many OTU&#039;s are significantly different between the treatments? Try to change the alpha to 0.01. How many OTU&#039;s is then significant? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the threshold 0.05 we see 245 OTU&#039;s.&lt;br /&gt;
&lt;br /&gt;
For the threshold 0.01 we see 177 OTU&#039;s.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q10: What does the plots with 100 and 350 OTU&#039;s show? Is any phylums dominant? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We see that the log2fold change is negative for most OTU&#039;s, indicating that the OTU is more expressed in the control than in the samples which receive antibiotics.&lt;br /&gt;
&lt;br /&gt;
Out of the significant OTU&#039;s we see that the majority belongs to the proteobacteria.&lt;br /&gt;
&lt;br /&gt;
[[File:DDseq 100OTU.png|450px]] [[File:DDseq 350OTU.png|450px]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Kaiju_exercise&amp;diff=41</id>
		<title>Kaiju exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Kaiju_exercise&amp;diff=41"/>
		<updated>2024-03-19T15:42:25Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;!-- =22136 Metagenomics and Microbiome Analysis Kaiju exercise= --&amp;gt;  ==Introduction== [http://kaiju.binf.ku.dk/ Kaiju] is a protein-based sensitive taxonomic classification of high-throughput sequencing reads from metagenomic whole genome sequencing or metatranscriptomics experiments. &amp;lt;br&amp;gt; Kaiju translates metagenomic sequencing reads into the six possible reading frames and searches for maximum exact matches (MEMs) of amino acid sequences in a given database of annotat...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- =22136 Metagenomics and Microbiome Analysis Kaiju exercise= --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
[http://kaiju.binf.ku.dk/ Kaiju] is a protein-based sensitive taxonomic classification of high-throughput sequencing reads from metagenomic whole genome sequencing or metatranscriptomics experiments. &amp;lt;br&amp;gt;&lt;br /&gt;
Kaiju translates metagenomic sequencing reads into the six possible reading frames and searches for maximum exact matches (MEMs) of amino acid sequences in a given database of annotated proteins from microbial reference genomes. If matches to one or more database sequences are found for a read, Kaiju outputs the taxonomic identifier of the corresponding taxon, or it determines the Last Common Ancestor (LCA) in the case of equally good matches to different taxa. Kaiju’s underlying sequence comparison algorithm uses the Burrows–Wheeler transform (BWT) of the protein database, which enables exact string matching in time proportional to the length of the query, to achieve a high classification speed.&lt;br /&gt;
&lt;br /&gt;
In k-mer-based methods, the size of k governs the sensitivity and precision of the search. If k is chosen too large, no identical k-mers between read and database might be found, especially for short or erroneous reads, as well as for evolutionary distant sequences. If k is chosen too small, more false positive matches will be found. Therefore, in order to not be restricted by a prespecified k-mer size, Kaiju finds MEMs between reads and database to achieve both a high sensitivity and precision. Reads are directly assigned to a species or strain, or in case of ambiguity, to higher level nodes in the taxonomic tree. For example, if a read contains an amino acid sequence that is identical in two different species of the same genus then the read will be classified to this genus. Kaiju also offers the possibility to extend matches by allowing a certain number of amino acid substitutions at the end of an exact match in a greedy heuristic approach using the BLOSUM62 substitution matrix. See the [https://www.nature.com/articles/ncomms11257 paper]for a detailed description of Kaiju’s algorithm&lt;br /&gt;
The most important adjustments are made to adjust the sensitivity of Kaiju. Running Kaiju in greedy mode will be more sensitive BUT less precise. As in we can see that we have Enterobacterales but not if it is &amp;lt;i&amp;gt;Salmonella&amp;lt;/i&amp;gt; or &amp;lt;i&amp;gt;Escherichia&amp;lt;/i&amp;gt;.&lt;br /&gt;
Sensitivity &amp;lt;&amp;gt; Precision&lt;br /&gt;
&lt;br /&gt;
===Construct Burrows-Wheeler transform and FM-index===&lt;br /&gt;
Before classification of reads, Kaiju&#039;s database index needs to be built from a reference protein database. You can either create a local index based on the currently available data from GenBank, or download one of the indexes used by the [http://kaiju.binf.ku.dk/server Kaiju web server].&lt;br /&gt;
For creating a local index, the program kaiju-makedb will download a source database and the taxonomy files from the NCBI FTP server, convert them into a protein database and construct Kaiju&#039;s index (the Burrows-Wheeler transform and the FM-index) in one go.&lt;br /&gt;
For this course, we have downloaded the pre-indexed database nr_euk (made 2019-06-25) from the Kaiju website so you do not need to create a database, but can use the &amp;lt;b&amp;gt; Kaiju database at /home/databases/databases/Kaiju/ &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Assigning taxonomy using Kaiju ===&lt;br /&gt;
Kaiju needs to know the location of the database (kaiju_db_nr_euk.fmi in this case) which you want to use and the associate nodes.dmp file. &lt;br /&gt;
It is able to take paired-end reads as in the example below:&lt;br /&gt;
  kaiju -t /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp -f /home/databases/databases/Kaiju/kaiju_db_nr_euk.fmi -i reads.fastq [-j reads2.fastq]&lt;br /&gt;
&lt;br /&gt;
Mandatory arguments:&lt;br /&gt;
   -t FILENAME   Name of nodes.dmp file&lt;br /&gt;
   -f FILENAME   Name of database (.fmi) file&lt;br /&gt;
   -i FILENAME   Name of input file containing reads in FASTA or FASTQ format&lt;br /&gt;
&lt;br /&gt;
Optional arguments:&lt;br /&gt;
   -j FILENAME   Name of second input file for paired-end reads&lt;br /&gt;
   -o FILENAME   Name of output file. If not specified, output will be printed to STDOUT&lt;br /&gt;
   -z INT        Number of parallel threads for classification (default: 1)&lt;br /&gt;
   -a STRING     Run mode, either &amp;quot;mem&amp;quot;  or &amp;quot;greedy&amp;quot; (default: greedy)&lt;br /&gt;
   -e INT        Number of mismatches allowed in Greedy mode (default: 3)&lt;br /&gt;
   -m INT        Minimum match length (default: 11)&lt;br /&gt;
   -s INT        Minimum match score in Greedy mode (default: 65)&lt;br /&gt;
   -E FLOAT      Minimum E-value in Greedy mode&lt;br /&gt;
   -x            Enable SEG low complexity filter (enabled by default)&lt;br /&gt;
   -X            Disable SEG low complexity filter&lt;br /&gt;
   -p            Input sequences are protein sequences&lt;br /&gt;
   -v            Enable verbose output&lt;br /&gt;
&lt;br /&gt;
==Exercise time !!!==&lt;br /&gt;
===Kaiju - Protein-based taxonomy===&lt;br /&gt;
&lt;br /&gt;
We are going to compare the effects of using different settings in Kaiju and visualize using [https://github.com/marbl/Krona/wiki Krona]. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the exercises we will use the database nr_euk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q1: What is nr_euk? And how do the choice of database influence the results of Kaiju? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Different settings will lead to differences in accuracy and precision of the model.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q2: Explain the terms precision and sensitivity in relation to testing. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, we will run kaiju using the most precise but less sensitive mem mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
kaiju -i /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/SRR7610114_1.fastq \&lt;br /&gt;
-j /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/SRR7610114_2.fastq -t /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp \&lt;br /&gt;
-f /home/databases/databases/Kaiju/kaiju_db_nr_euk.fmi -v -z 5 -a mem -o SRR7610114_mem.kaiju&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Second, we will run using VERY greedy options allowing 5 mismatches and only an E-value of 0.1&lt;br /&gt;
&amp;lt;pre&amp;gt;kaiju -i /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/SRR7610114_1.fastq \&lt;br /&gt;
-j /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/SRR7610114_2.fastq -t /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp \&lt;br /&gt;
-f /home/databases/databases/Kaiju/kaiju_db_nr_euk.fmi -v -z 5 -a greedy -e 5 -E 0.1 -o SRR7610114_greedy.kaiju&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t have the patience to wait for the program to run, you can also copy the files from&lt;br /&gt;
&amp;lt;pre&amp;gt;/home/projects/22126_NGS/exercises/metagenomics/kaiju&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try to visualise the results with Krona&lt;br /&gt;
&amp;lt;pre&amp;gt;kaiju2krona -i SRR7610114_mem.kaiju -o SRR7610114_mem.krona -t /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp \&lt;br /&gt;
-n /home/databases/databases/Kaiju/kaiju_db_nr_euk_names.dmp ; ktImportText -o SRR7610114_mem.html SRR7610114_mem.krona  &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the .html-file and open it in your browser.&lt;br /&gt;
&lt;br /&gt;
If you are interested [https://www.cell.com/cell/pdf/S0092-8674(19)30775-5.pdf many other tools] exists for taxonomic classification. However as the results for SRR7610114 we will continue with Kaiju, which we now want to run on all samples.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; AS IT TAKES TOO MUCH TIME FOR EVERYONE TO RUN KAIJU ON ALL SAMPLES YOU SHOULD USE THE RESULTS FOUND IN  /home/projects/22126_NGS/exercises/metagenomics/kaiju/all_samples and skip the parallelisation &amp;lt;/span&amp;gt; &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;parallel -j 1 --xapply &amp;quot;kaiju -i /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/{1} -j /home/projects/22126_NGS/exercises/metagenomics/Pacu/preprocessed/{2} \&lt;br /&gt;
-t /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp -f /home/databases/databases/Kaiju/kaiju_db_nr_euk.fmi -o {1.}.kaiju -v -z 30&amp;quot; \&lt;br /&gt;
:::: /home/projects/22126_NGS/exercises/metagenomics/Pacu/no_fish_r1.list  :::: /home/projects/22126_NGS/exercises/metagenomics/Pacu/no_fish_r2.list;&lt;br /&gt;
cd all_samples; rename &#039;_1.kaiju&#039; &#039;.kaiju&#039; *.kaiju&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we want to fuse all the information into one table. First we need to create tabulated tables and the tools provided by Kaiju are far from optimal, so we use some homebrewed ones.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir all_samples;&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/metagenomics/kaiju/all_samples/* all_samples/;&lt;br /&gt;
/home/ctools/misc_scripts/kaiju2phyloseq.py -i all_samples -n /home/databases/databases/Kaiju/kaiju_db_nr_euk_names.dmp \&lt;br /&gt;
-m /home/databases/databases/Kaiju/kaiju_db_nr_euk_nodes.dmp -o pacu_kaiju; rm -r all_samples &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q3: Take a look at pacu_kaiju.otu.tab and pacu_kaiju.tax.tab and explain what information the files contain. &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Kaiju - RStudio import===&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; I recommend moving files to your laptop and running RStudio locally. &amp;lt;/span style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, we will use [https://rstudio.com/ RStudio], but first we need RStudio set up with necessary packages etc. This workflow uses [https://www.tidyverse.org Tidyverse] and [https://cran.r-project.org/web/packages/broom/vignettes/broom.html broom]. Furthermore, we will use [http://joey711.github.io/phyloseq/ Phyloseq] and [https://github.com/Russel88/DAtest/wiki DAtest].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;library(tidyverse)&lt;br /&gt;
library(broom)&lt;br /&gt;
library(phyloseq)&lt;br /&gt;
library(DAtest)&lt;br /&gt;
library(vegan)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Load in the data from Kaiju and use the metadata found in /home/projects/22126_NGS/exercises/metagenomics/kaiju/&lt;br /&gt;
&amp;lt;pre&amp;gt;otutab &amp;lt;- read.csv(&amp;quot;pacu_kaiju.otu.tab&amp;quot;, sep = &amp;quot;\t&amp;quot;, row.names = 1, header = TRUE)&lt;br /&gt;
OTU = otu_table(otutab, taxa_are_rows = TRUE)&lt;br /&gt;
&lt;br /&gt;
taxtab &amp;lt;- read.csv(&amp;quot;pacu_kaiju.tax.tab&amp;quot;, sep = &amp;quot;\t&amp;quot;, row.names = 1, header = TRUE)&lt;br /&gt;
taxmat = as.matrix(taxtab)&lt;br /&gt;
TAX = tax_table(taxmat)&lt;br /&gt;
&lt;br /&gt;
metadata = read.csv(&amp;quot;metadata.csv&amp;quot;, sep = &amp;quot;,&amp;quot;, skip=1, header=FALSE)&lt;br /&gt;
metadata &amp;lt;- rename(metadata, Run=1, Day=2, Treatment=3) #renaming the columns &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the data has been loaded we are now ready to perform the phyloseq analysis.&lt;br /&gt;
&amp;lt;pre&amp;gt;META = sample_data(metadata)&lt;br /&gt;
rownames(META) &amp;lt;-metadata$Run&lt;br /&gt;
physeq = phyloseq(OTU, TAX, META)&lt;br /&gt;
physeq &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The phyloseq results can be saved as an rds object as:&lt;br /&gt;
&amp;lt;pre&amp;gt;saveRDS(physeq, &amp;quot;pacu.phyloseq.rds&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Kaiju - Sample composition using R===&lt;br /&gt;
To get a feel for the samples we can plot the domain distribution but first we&#039;ll make it into a dataframe&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_df &amp;lt;- psmelt(physeq)&lt;br /&gt;
rawkaijubarplot &amp;lt;- ggplot(physeq_df, aes(x = Sample, y = Abundance, fill = Domain)) + theme_bw() +   geom_bar(stat = &amp;quot;identity&amp;quot;) + theme(axis.text.x = element_text(angle=90, size=6))&lt;br /&gt;
rawkaijubarplot&lt;br /&gt;
dir.create(&amp;quot;Results&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;Results/rawkaijubarplot.png&amp;quot;) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q4: Look at the plot. Which domains do you see in the samples?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For simplicity we will focus on the main components of the known bacterial community. Adjust according to your question, time and resources.&amp;lt;/b&amp;gt;&lt;br /&gt;
We want to focus on the known bacterial composition, so we do:&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_bac &amp;lt;- subset_taxa(physeq, Domain == &amp;quot;Bacteria&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q5: Can you think of domains or fields that could be relevant to investigate for other research questions?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can filter low abundant taxa based on three criteria:&lt;br /&gt;
&lt;br /&gt;
*They should be present in a minimum amount of samples (min.samples)&lt;br /&gt;
&lt;br /&gt;
*They should have a minimum amount of reads (min.reads)&lt;br /&gt;
&lt;br /&gt;
*They should have a minimum average relative abundance (min.abundance)&lt;br /&gt;
&lt;br /&gt;
You don&#039;t have to use all three criteria. The filtered taxa are grouped in a new taxa called &amp;quot;Others&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
We only want taxa that have at least a 0.00005 fraction of the total reads. These will be fused into a category called “Others”. This is quite a lot that we filter but it allows us to work faster in this example.&lt;br /&gt;
Firstly we identify the number of reads from the fraction 0.00005.&lt;br /&gt;
&amp;lt;pre&amp;gt; n_reads &amp;lt;- sum(sample_sums(physeq_bac))*0.00005 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This number of reads is used for as cutoff.&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_bac_cutoff = preDA(physeq_bac, min.reads = n_reads)&lt;br /&gt;
physeq_bac_cutoff&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To visualize we do again make a dataframe&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_bac_cutoff_df &amp;lt;- psmelt(physeq_bac_cutoff) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And we do the visualization&lt;br /&gt;
&amp;lt;pre&amp;gt;ggplot(physeq_bac_cutoff_df, aes(x = Sample, y = Abundance, fill = Family)) + theme_bw() +   geom_bar(stat = &amp;quot;identity&amp;quot;) + theme(axis.text.x = element_text(angle=90, size=6))&lt;br /&gt;
ggsave(&amp;quot;Results/kaijuClassbarplot.png&amp;quot;, width = unit(15,&amp;quot;cm&amp;quot;))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is two &amp;quot;NA&amp;quot; categories. One indicates that Kaiju was unable to assign taxonomy, while the other comes from the fused “Others” that are less abundant.&lt;br /&gt;
&lt;br /&gt;
We can also look at the relative abundance of each class and cluster according to treatment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_relat_abund &amp;lt;- transform_sample_counts(physeq_bac_cutoff, function(x){x / sum(x)})&lt;br /&gt;
phyloseq::plot_bar(physeq_relat_abund, fill = &amp;quot;Phylum&amp;quot;) +&lt;br /&gt;
  geom_bar(aes(color = Phylum, fill = Phylum), stat = &amp;quot;identity&amp;quot;, position = &amp;quot;stack&amp;quot;) +&lt;br /&gt;
  labs(x = &amp;quot;&amp;quot;, y = &amp;quot;Relative Abundance\n&amp;quot;) +&lt;br /&gt;
  facet_wrap(~ Treatment, scales = &amp;quot;free&amp;quot;) +&lt;br /&gt;
  theme(panel.background = element_blank(),&lt;br /&gt;
        axis.text.x=element_blank(),&lt;br /&gt;
        axis.ticks.x=element_blank())&lt;br /&gt;
ggsave(&amp;quot;Results/kaijuPhylumRel_abund.png&amp;quot;, width = unit(10, &amp;quot;cm&amp;quot;))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Kaiju - Beta-diversity analysis using R===&lt;br /&gt;
When we start comparing samples, consequences of the compositional nature of sequencing become important.&lt;br /&gt;
To do beta-diversity we need to normalize somehow. The classical way is by rarefaction to the number of observations of the smallest sample, however this means removing valuable data. Also, relative abundances become less precise, as it produces false zeroes and [https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003531 several other problems]. Luckily, we now have much better methods available.&lt;br /&gt;
We will use a Centered Log-Ratio transformation (CLR), which is a dedicated compositional transformation using log-ratio to the geometric mean of the relative abundance.&lt;br /&gt;
&lt;br /&gt;
Given an observation vector of D “counted” features (taxa, operational taxonomic units or OTUs, genes, etc.) in a sample, x = [x1, x2, …xD] and G(x) is the [https://en.wikipedia.org/wiki/Geometric_mean geometric mean] of x. &lt;br /&gt;
We use the geometric mean instead of the more common arithmetic mean, because it is the only correct mean when presented as ratios to reference values. &lt;br /&gt;
&lt;br /&gt;
CLR transformation for the sample can be obtained as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:CLR equation.png]]&lt;br /&gt;
&lt;br /&gt;
However, G(x) cannot be determined for without deleting, replacing or estimating the 0 count values. Read more [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5695134/ here] and [https://academic.oup.com/gigascience/article/8/9/giz107/5572529 here] about CLR.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We perform a zero correction by substituting 0 with 1 and all non-zero values are corrected such that log-ratios before and after correction are the same.&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_zc &amp;lt;- transform_sample_counts(physeq_bac_cutoff, function(y) sapply(y, function(x) ifelse(x==0, 1, (1-(sum(y==0)*1)/sum(y))*x)))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can perform the log transformation:&lt;br /&gt;
&amp;lt;pre&amp;gt;physeq_clr &amp;lt;- transform_sample_counts(physeq_zc, function(x) log(x/exp(mean(log(x))))) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can now perform the Principal Component Analysis (PCA). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q6:What is PCA used for?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we do a redundancy analysis (RDA) without restraints which is the same.&lt;br /&gt;
&amp;lt;pre&amp;gt;ord_clr &amp;lt;- ordinate(physeq_clr, &amp;quot;RDA&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usually, we only look at the first couple of principal components because we can plot them easily but with a scree plot we can look at many more.&lt;br /&gt;
&amp;lt;pre&amp;gt;plot_scree(ord_clr) +&lt;br /&gt;
  geom_bar(stat=&amp;quot;identity&amp;quot;, fill = &amp;quot;blue&amp;quot;) +&lt;br /&gt;
  labs(x = &amp;quot;\nAxis&amp;quot;, y = &amp;quot;Proportion of Variance\n&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;Results/kaijuclrscree.png&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q7: What do the plot tell us about the principal components and their associated amount of information?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, we will plot PC1 and PC2 while scaling the plot to reflect the relative amount of information explained by each.&lt;br /&gt;
&amp;lt;pre&amp;gt;clr1 &amp;lt;- ord_clr$CA$eig[1] / sum(ord_clr$CA$eig)&lt;br /&gt;
clr2 &amp;lt;- ord_clr$CA$eig[2] / sum(ord_clr$CA$eig)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot were the coordinates are fixed to reflect importance:&lt;br /&gt;
&amp;lt;pre&amp;gt;plot_ordination(physeq, ord_clr, type=&amp;quot;samples&amp;quot;, color=&amp;quot;Treatment&amp;quot;) +&lt;br /&gt;
  geom_point(size = 4) +&lt;br /&gt;
  coord_fixed(clr2 / clr1) + &lt;br /&gt;
  geom_text(aes(label=Day), colour=&amp;quot;black&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;Results/kaijuclrPCA.png&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or more spread out for easy reading:&lt;br /&gt;
&amp;lt;pre&amp;gt;plot_ordination(physeq, ord_clr, type=&amp;quot;samples&amp;quot;, color=&amp;quot;Treatment&amp;quot;) +&lt;br /&gt;
  geom_point(size = 6) +&lt;br /&gt;
  geom_text(aes(label=Day), colour=&amp;quot;black&amp;quot;)&lt;br /&gt;
ggsave(&amp;quot;Results/kaijuclrPCA1x1.png&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We see a clear tendency for especially late phase antibiotic treatment samples being separated from the other samples, but is it statistically significant? &lt;br /&gt;
Albeit very useful, PCA is just an exploratory data visualization tool. To test whether the samples cluster beyond what is expected by sampling variability we will  use permutational multivariate analysis of variance (PERMANOVA). &lt;br /&gt;
It does this by partitioning the sums of squares for the within- and between-cluster components using the concept of centroids. Many permutations of the data (i.e. random shuffling) are used to generate the null distribution. &lt;br /&gt;
The test from ADONIS can be confounded by differences in dispersion (or spread)…so we want to check this as well.&lt;br /&gt;
&lt;br /&gt;
First, we create a distance matrix. This is also called the [https://academic.oup.com/bioinformatics/article/34/16/2870/4956011 Aitchison distance].&lt;br /&gt;
&amp;lt;pre&amp;gt;clr_dist_matrix &amp;lt;- distance(physeq_clr, method = &amp;quot;euclidean&amp;quot;)&lt;br /&gt;
adonis(clr_dist_matrix ~ sample_data(physeq_clr)$Treatment, method = &amp;quot;eucledian&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Why do we not always end up with exactly this result?&lt;br /&gt;
So, despite grouping the less significant “Day 1” samples together with the other antibiotic treatment samples or not merging Pre, Post and control samples, the analysis still shows that the samples are not randomly clustered according to treatment. &lt;br /&gt;
In fact, Treatment explains 31% of the variance.&lt;br /&gt;
&lt;br /&gt;
Now, we want to do a post-hoc pairwise test to see exactly which treatments drive the variance. This can be done easily using the package pairwiseAdonis - installation guide [https://github.com/pmartinezarbizu/pairwiseAdonis here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;library(pairwiseAdonis)&lt;br /&gt;
pairwise.adonis(clr_dist_matrix, sample_data(physeq_clr)$Treatment, sim.method = &amp;quot;eucledian&amp;quot;, p.adjust.m = &amp;quot;holm&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q8: Do we see any significant pairs?&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Kaiju - Differential abundance using R===&lt;br /&gt;
&lt;br /&gt;
Now we want to focus on differential abundance. In this case we will look for differential abundance based on phylogeny, but my chosen method can also be used for genes. [https://www.bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html DeSeq2] is fairly easy to use, shows consistent performance and works by fitting a negative binomial model for count data. DESeq2 default data normalization is Relative Log Expression (RLE) based on scaling each sample by the median ratio of the sample counts over the geometric mean counts across samples. This [https://www.biorxiv.org/content/10.1101/406264v1.full.pdf paper] explains more about RLE and CLR. What is also very useful is that DeSeq2 easily allows for the inclusion of covariates in the analysis.&lt;br /&gt;
&lt;br /&gt;
First we load the needed R packages and the R-object created in &amp;quot;Kaiju - RStudio import&amp;quot;. You will need to install DESeq2.&lt;br /&gt;
&amp;lt;pre&amp;gt;library(phyloseq)&lt;br /&gt;
library(DAtest)&lt;br /&gt;
library(DESeq2)&lt;br /&gt;
pacuphyseq = readRDS(&amp;quot;pacu.phyloseq.rds&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Firstly, we need to decide at which level you want to test your hypothesis. Do you want to be specific or is it more fitting with your hypothesis to test at a higher taxonomic level. It really depends on the hypothesis and sometimes it makes sense to do it on several levels.&lt;br /&gt;
Secondly, we need to filter. In this example we filter a lot to speed things up, but there really is no golden standard here. Scientifically, it is a trade-off between keeping rare Amplicon sequence variants (ASVs) which could be interesting to test, and removing ASVs to increase statistical power.&lt;br /&gt;
Here we collapse the hierarchical taxonomical data at genus level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;phy_genus &amp;lt;- tax_glom(pacuphyseq, &amp;quot;Genus&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
This takes 5-10 minutes. In the meantime you can read a bit about [https://www.bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html DeSeq2]&lt;br /&gt;
&lt;br /&gt;
We display a summary of the data&lt;br /&gt;
&amp;lt;pre&amp;gt;phy_genus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The DESeq2 analysis is carried out. &lt;br /&gt;
&amp;lt;pre&amp;gt;treatdds &amp;lt;- phyloseq_to_deseq2(phy_genus, ~ Treatment)&lt;br /&gt;
treatdds &amp;lt;- DESeq(treatdds)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We investigate the results, where we use the threshold for significance of 0.05. Entries with p-values above 0.05 are removed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;res = results(treatdds, alpha = 0.05)&lt;br /&gt;
alpha = 0.05&lt;br /&gt;
sigtab = res[which(res$padj &amp;lt; alpha), ]&lt;br /&gt;
sigtab = cbind(as(sigtab, &amp;quot;data.frame&amp;quot;), as(tax_table(phy_genus)[rownames(sigtab), ], &amp;quot;matrix&amp;quot;))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We take a look at the data. The dimensions tells us how many OTU&#039;s that are significantly differential abundant between the treatment forms.&lt;br /&gt;
&amp;lt;pre&amp;gt;head(sigtab)&lt;br /&gt;
dim(sigtab)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q9: How many OTU&#039;s are significantly different between the treatments? Try to change the alpha to 0.01. How many OTU&#039;s is then significant? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In order to visualise the data we sort the OTU&#039;s according to p-value and select the 100 OTU&#039;s with the lowest p-value.&lt;br /&gt;
&amp;lt;pre&amp;gt;sig100 &amp;lt;- sigtab[order(sigtab$padj),][1:100,]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We visualise the significant OTU&#039;s. We choose to color and fill by Phylum and label by Genus.&lt;br /&gt;
&amp;lt;pre&amp;gt;library(&amp;quot;ggplot2&amp;quot;)&lt;br /&gt;
theme_set(theme_bw())&lt;br /&gt;
scale_fill_discrete &amp;lt;- function(palname = &amp;quot;Set1&amp;quot;, ...) {&lt;br /&gt;
  scale_fill_brewer(palette = palname, ...)&lt;br /&gt;
}&lt;br /&gt;
# Phylum order&lt;br /&gt;
x = tapply(sigtab$log2FoldChange, sigtab$Phylum, function(x) max(x))&lt;br /&gt;
x = sort(x, TRUE)&lt;br /&gt;
sigtab$Phylum = factor(as.character(sigtab$Phylum), levels=names(x))&lt;br /&gt;
# Genus order&lt;br /&gt;
x = tapply(sigtab$log2FoldChange, sigtab$Genus, function(x) max(x))&lt;br /&gt;
x = sort(x, TRUE)&lt;br /&gt;
sigtab$Genus = factor(as.character(sigtab$Genus), levels=names(x))&lt;br /&gt;
ggplot(sigtab, aes(x=Genus, y=log2FoldChange, color=Phylum)) + geom_point(size=2) + &lt;br /&gt;
  theme(axis.text.x = element_text(angle = -90, hjust = 0, vjust=0.5))&lt;br /&gt;
ggsave(&amp;quot;Results/DDseq_100OTU.png&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try to select the 350 OTU&#039;s with the lowest p-value and make the same plot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Q10: What does the plots with 100 and 350 OTU&#039;s show? Are any phylums dominant? &amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Kaiju_solution|here]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Longread_exercise_answers&amp;diff=40</id>
		<title>Longread exercise answers</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Longread_exercise_answers&amp;diff=40"/>
		<updated>2024-03-19T15:41:44Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q1&amp;#039;&amp;#039;&amp;#039;  Counting all the lines minus the header gives us: &amp;lt;pre&amp;gt; zcat BGI_hg38_chr20.vcf.gz |grep -v &amp;quot;^#&amp;quot;|wc -l  &amp;lt;/pre&amp;gt;  1878 variants   &amp;#039;&amp;#039;&amp;#039;Q2&amp;#039;&amp;#039;&amp;#039;  We can try the following: &amp;lt;pre&amp;gt; zcat BGI_hg38_chr20.vcf.gz |grep -v &amp;quot;^#&amp;quot; |cut -f 10  |sed &amp;quot;s/:.*//g&amp;quot;|sort | uniq -c |sort -n &amp;lt;/pre&amp;gt;   &amp;lt;OL&amp;gt; &amp;lt;LI&amp;gt;grep -v &amp;quot;^#&amp;quot;  grep -v: Inverts the match, i.e., selects lines that do not match the given pattern. &amp;quot;^#&amp;quot;: The pattern to match lines starting with a hash (#). These lines are usually he...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Counting all the lines minus the header gives us:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat BGI_hg38_chr20.vcf.gz |grep -v &amp;quot;^#&amp;quot;|wc -l &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1878 variants&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
We can try the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat BGI_hg38_chr20.vcf.gz |grep -v &amp;quot;^#&amp;quot; |cut -f 10  |sed &amp;quot;s/:.*//g&amp;quot;|sort | uniq -c |sort -n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;grep -v &amp;quot;^#&amp;quot;  grep -v: Inverts the match, i.e., selects lines that do not match the given pattern. &amp;quot;^#&amp;quot;: The pattern to match lines starting with a hash (#). These lines are usually headers or comments in VCF files.&lt;br /&gt;
&amp;lt;LI&amp;gt;cut -f 10&lt;br /&gt;
&amp;lt;LI&amp;gt; cut: Extracts specific fields from each line. -f 10: takes the 10th field, i.e. the genotype information.&lt;br /&gt;
&amp;lt;LI&amp;gt; sed &amp;quot;s/:.*//g&amp;quot;  &amp;quot;s/:.*//g&amp;quot;: Removes everything after the first colon in each line. This leaves us with the GT field (e.g., 0/1, 1/1).&lt;br /&gt;
&amp;lt;LI&amp;gt; sort Sorts lines of text in alphabetical order.&lt;br /&gt;
&amp;lt;LI&amp;gt; uniq -c  Counts the number of occurrences of each unique line. Here, it counts each unique genotype.&lt;br /&gt;
&amp;lt;LI&amp;gt; sort -n : Sorts the output numerically. This will arrange the genotypes in ascending order based on their frequency.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     33 1/2&lt;br /&gt;
     85 1|1&lt;br /&gt;
    182 0|1&lt;br /&gt;
    587 1/1&lt;br /&gt;
    991 0/1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So 85+182=267 variants are already phased. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr20	2855611	rs4364082	T	C	938.64	.	AC=1;AF=0.500;AN=2;BaseQRankSum=0.690;DB;DP=47;ExcessHet=3.0103;FS=10.989;MLEAC=1;MLEAF=0.500;MQ=60.00;MQRankSum=0.00;QD=19.97;ReadPosRankSum=0.976;SOR=0.117	GT:AD:DP:GQ:PGT:PID:PL:PS	0|1:21,26:47:99:0|1:2855611_T_C:946,0,745:2855611&lt;br /&gt;
chr20	2855618	rs6051444	C	T	886.64	.	AC=1;AF=0.500;AN=2;BaseQRankSum=1.09;DB;DP=46;ExcessHet=3.0103;FS=14.200;MLEAC=1;MLEAF=0.500;MQ=60.00;MQRankSum=0.00;QD=19.27;ReadPosRankSum=0.855;SOR=0.387	GT:AD:DP:GQ:PGT:PID:PL:PS	0|1:22,24:46:99:0|1:2855611_T_C:894,0,797:2855611&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
They are 6 bases away from each other.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Sequences are quite long compared to Illumina/BGI&lt;br /&gt;
&lt;br /&gt;
 samtools view  HG002_pacbio.bam |awk &#039;{print length($10)}&#039; | awk &#039;{sum+=$1; n++} END {if(n&amp;gt;0) print sum/n}&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
Aligning+indexing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/minimap2/minimap2-2.26_x64-linux/minimap2 -a   /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.mini /home/projects/22126_NGS/exercises/long_reads/HG002_pacbio.fq.gz |samtools view -uS - |samtools sort /dev/stdin &amp;gt; HG002_pacbio.bam &lt;br /&gt;
samtools index HG002_pacbio.bam &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools view  HG002_pacbio.bam |awk &#039;{print length($10)}&#039; | awk &#039;{sum+=$1; n++} END {if(n&amp;gt;0) print sum/n}&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9474.43 so almost 10kb.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;: yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
First phase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
whatshap phase  --ignore-read-groups  --reference=/home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -o BGI_hg38_chr20_phased.vcf.gz BGI_hg38_chr20.vcf.gz HG002_pacbio.bam &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat BGI_hg38_chr20_phased.vcf.gz |grep -v &amp;quot;^#&amp;quot; |cut -f 10  |sed &amp;quot;s/:.*//g&amp;quot;|sort | uniq -c |sort -n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      7 0/1&lt;br /&gt;
     33 1/2&lt;br /&gt;
    550 1|0&lt;br /&gt;
    616 0|1&lt;br /&gt;
    672 1/1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so 550+616=1166 phased variants compared to 267 previously.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Longread_exercise&amp;diff=39</id>
		<title>Longread exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Longread_exercise&amp;diff=39"/>
		<updated>2024-03-19T15:41:18Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  First: &amp;lt;OL&amp;gt; &amp;lt;LI&amp;gt;Navigate to your home directory: &amp;lt;LI&amp;gt;Create a directory called &amp;quot;longread&amp;quot;  &amp;lt;LI&amp;gt;Navigate to the directory you just created. &amp;lt;/OL&amp;gt;  We will phase some variants using [https://www.biorxiv.org/content/10.1101/085050v2 WhatsHap] (no not the messaging app).  First, what is phasing?   Phasing means that we determine which base is on the same chromosome as another base for neighboring variants. Let&amp;#039;s consider a small example with just two varia...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to your home directory:&lt;br /&gt;
&amp;lt;LI&amp;gt;Create a directory called &amp;quot;longread&amp;quot; &lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to the directory you just created.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will phase some variants using [https://www.biorxiv.org/content/10.1101/085050v2 WhatsHap] (no not the messaging app).&lt;br /&gt;
&lt;br /&gt;
First, what is phasing? &lt;br /&gt;
&lt;br /&gt;
Phasing means that we determine which base is on the same chromosome as another base for neighboring variants.&lt;br /&gt;
Let&#039;s consider a small example with just two variants (single nucleotide polymorphisms or SNPs) to illustrate phasing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; SNP1: Located on chromosome 1 at position 1000. The individual is heterozygous A or G. &lt;br /&gt;
&amp;lt;LI&amp;gt; SNP2: Located on chromosome 1 at position 2000. The individual is heterozygous C or T.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Great! but do we have: &lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; A and C on the same chromosome and G and T on the other chromosome&lt;br /&gt;
&amp;lt;LI&amp;gt; A and T on the same chromosome and G and C on the other chromosome&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Without phasing we don&#039;t have this information. This is important because phasing informs us about the phenotypic (therefore for health and reaction to drugs/treatments) consequences of the different bases.&lt;br /&gt;
&lt;br /&gt;
In a VCF, unphased variants will appear like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1     1000    rs123  A     G      29    PASS    INFO           GT  0/1&lt;br /&gt;
chr1     2000    rs456  C     T      29    PASS    INFO           GT  0/1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;0/1&#039;&#039;&#039; means heterozygous reference+alternative.&lt;br /&gt;
&lt;br /&gt;
Now, if A and C are on the same chromosome, phased variants can appear as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1     1000    rs123  A     G      29    PASS    INFO           GT  0|1&lt;br /&gt;
chr1     2000    rs456  C     T      29    PASS    INFO           GT  0|1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but if A and C are on different chromosomes, phased variants can appear as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chr1     1000    rs123  A     G      29    PASS    INFO           GT  0|1&lt;br /&gt;
chr1     2000    rs456  C     T      29    PASS    INFO           GT  1|0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this exercise, we will:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt; Do standard genotyping using BGI sequencing from an [https://en.wikipedia.org/wiki/Ashkenazi_Jews Ashkenazi] individual&lt;br /&gt;
&amp;lt;LI&amp;gt; Align long reads from PacBio&lt;br /&gt;
&amp;lt;LI&amp;gt; Learn how to install software using [https://bioconda.github.io/ bioconda]&lt;br /&gt;
&amp;lt;LI&amp;gt; Use the long reads to phase our variants&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Genotyping with BGI reads&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reads are here:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/long_reads/BGI1.fq.gz&lt;br /&gt;
/home/projects/22126_NGS/exercises/long_reads/BGI2.fq.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
They do not have adapters. As we have previously covered aligning and genotyping, you can copy paste the commands, just make sure you understand what you are doing. First, let&#039;s have a look at BGI-Seq data:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat /home/projects/22126_NGS/exercises/long_reads/BGI1.fq.gz |head&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will notice it is very much like Illumina in terms of read length and encoding.&lt;br /&gt;
&lt;br /&gt;
Just go ahead and align them using bwa mem and sort them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bwa mem -R &amp;quot;@RG\tID:HG002\tSM:HG002&amp;quot; -t 10 /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa  BGI1.fq.gz BGI2.fq.gz |samtools view -uS - |samtools sort /dev/stdin &amp;gt; BGI_hg38.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let&#039;s remove duplicates:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java -jar /home/ctools/picard_2.23.8/picard.jar MarkDuplicates -I BGI_hg38.bam -M BGI_hg38_metrics.txt -O BGI_hg38_rmdup.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then index:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools index BGI_hg38_rmdup.bam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let&#039;s genotype:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gatk --java-options &amp;quot;-Xmx10g&amp;quot; HaplotypeCaller    -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa    -I  BGI_hg38_rmdup.bam  -L chr20:2000000-3000000  -O  BGI_hg38_chr20.gvcf.gz --dbsnp /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz  -ERC GVCF&lt;br /&gt;
gatk  IndexFeatureFile -I BGI_hg38_chr20.gvcf.gz&lt;br /&gt;
gatk  GenotypeGVCFs -R /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -V BGI_hg38_chr20.gvcf.gz  -O BGI_hg38_chr20.vcf.gz  -L chr20:2000000-3000000 --dbsnp  /home/databases/databases/GRCh38/Homo_sapiens_assembly38.dbsnp138.vcf.gz &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that GATK will phase variants on the same read (or pairs). &lt;br /&gt;
&#039;&#039;&#039;Q1&#039;&#039;&#039;: How many variants are there? (hint: do not forget to remove the header)&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;: How many variants are phased? (hint: remove the header and look at the 10th column (the genotype info) using cut).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039;: Consider rs4364082 and rs6051444 (hint search using grep). Why are these variants phased?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Align PacBio reads&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, let&#039;s have a look at PacBio data:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/projects/22126_NGS/exercises/long_reads/HG002_pacbio.fq.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;: What do you notice?&lt;br /&gt;
&lt;br /&gt;
Let&#039;s align to hg38+sort:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/minimap2/minimap2-2.26_x64-linux/minimap2 -a   /home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.mini  [input fastq here] |samtools view -uS - |samtools sort /dev/stdin &amp;gt; [output BAM here]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-a forces sam output which is converted to bam and sorted.&lt;br /&gt;
Let&#039;s index:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools index [bam file]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;: What is the average read length? (hint: awk &#039;{print length($10)}&#039; prints the length of the 10th field, the sequences.  hint2: to compute the average of the first column of numbers use: awk &#039;{sum+=$1; n++} END {if(n&amp;gt;0) print sum/n})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Use bioconda to install software&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bioconda is a game-changer for anyone starting bioinformatics. It allows you to install software very easily and offers a vast repository of bioinformatics tools. It solves the problem of you needing library A to install software B and needing C to build A etc. All you need is to setup an &amp;quot;environment&amp;quot; where your software will be installed. An &amp;quot;environment&amp;quot; is a directory in your home dir where the software and its depencies will be installed.&lt;br /&gt;
&lt;br /&gt;
Beware! The behavior of several commands like python will not be the same as it will use the python from your environment.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s install WhatsHap through bioconda. First, let&#039;s create an environment called whatshap-env and install whatshap:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/bin/conda create -n whatshap-env bioconda::whatshap&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then init the environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/bin/conda init bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Log out and log back in&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Activate the environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda activate whatshap-env&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the installation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
whatshap --help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;: Was that easy?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt;Phase variants using WhatsHap&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then let&#039;s phase our variants:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
whatshap phase  --ignore-read-groups  --reference=/home/databases/references/human/GRCh38_full_analysis_set_plus_decoy_hla.fa -o [output vcf] [input vcf] [long reads bam] &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039; How many extra variants are phased?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To deactivate conda write:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
conda deactivate&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You did not like conda? Do not forget to remove the following from your ~/.bashrc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# &amp;gt;&amp;gt;&amp;gt; conda initialize &amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
# !! Contents within this block are managed by &#039;conda init&#039; !!&lt;br /&gt;
__conda_setup=&amp;quot;$(&#039;/home/ctools/anaconda3_2021.11/bin/conda&#039; &#039;shell.bash&#039; &#039;hook&#039; 2&amp;gt; /dev/null)&amp;quot;&lt;br /&gt;
if [ $? -eq 0 ]; then&lt;br /&gt;
    eval &amp;quot;$__conda_setup&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    if [ -f &amp;quot;/home/ctools/anaconda3_2021.11/etc/profile.d/conda.sh&amp;quot; ]; then&lt;br /&gt;
        . &amp;quot;/home/ctools/anaconda3_2021.11/etc/profile.d/conda.sh&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
        export PATH=&amp;quot;/home/ctools/anaconda3_2021.11/bin:$PATH&amp;quot;&lt;br /&gt;
    fi&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and remove ~/.conda/:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm -rfv ~/.conda/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please find the answers [[Longread_exercise_answers|here]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Congratulations you finished the exercise!&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig3.png&amp;diff=38</id>
		<title>File:Rnaseq fig3.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig3.png&amp;diff=38"/>
		<updated>2024-03-19T15:39:51Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig2.png&amp;diff=37</id>
		<title>File:Rnaseq fig2.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig2.png&amp;diff=37"/>
		<updated>2024-03-19T15:39:24Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig1.png&amp;diff=36</id>
		<title>File:Rnaseq fig1.png</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=File:Rnaseq_fig1.png&amp;diff=36"/>
		<updated>2024-03-19T15:39:01Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Rnaseq_exercise_answers&amp;diff=35</id>
		<title>Rnaseq exercise answers</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Rnaseq_exercise_answers&amp;diff=35"/>
		<updated>2024-03-19T15:37:57Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;div class=&amp;quot;page-content has-page-title&amp;quot;&amp;gt; &amp;lt;div id=&amp;quot;overview-and-background&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt; &amp;lt;h1&amp;gt;Overview and background&amp;lt;/h1&amp;gt; &amp;lt;div id=&amp;quot;groups&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt; &amp;lt;h2&amp;gt;Groups&amp;lt;/h2&amp;gt; &amp;lt;p&amp;gt;Please get into groups of 2-3. We don’t have enough computational power for all of you working alone. Please let the instructors know if you need help finding a group.&amp;lt;/p&amp;gt; &amp;lt;/div&amp;gt;  &amp;lt;div id=&amp;quot;assignment-notes&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt; &amp;lt;h2&amp;gt;Assignment notes&amp;lt;/h2&amp;gt; &amp;lt;p&amp;gt;While some question...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;page-content has-page-title&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;overview-and-background&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Overview and background&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;groups&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Groups&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Please get into groups of 2-3. We don’t have enough computational power for all of you working alone. Please let the instructors know if you need help finding a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment-notes&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Assignment notes&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;While some questions might seem hard we naturally don’t ask questions/tasks which you have not been given the tools to solve in this assignment - so if you are stuck try thinking about what you have already learned before asking an instructor.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment-overview&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Assignment overview&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In this assignment you are going to analyze RNA-sequencing data from real cancer patients to analyze the importance of alternative splicing in a clinical context&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;biological-background&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Biological background&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Today you will be working with colorectal cancers - specifically Colon Adenocarcinoma (often abbreviated COAD). It is a cancer of the colon that is very frequent. The lifetime risk of developing&lt;br /&gt;
colorectal cancer is ~4% for both males and females. That means COAD represents ~10% of all cancers and results in the death of hundreds of thousands of people each year! (More info on COAD can be found on [https://en.wikipedia.org/wiki/Colorectal_cancer Wikipedia].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One important aspect of cancer is that tumors from different patients are extremely different even when they originate from the same tissue (more info on tumor heterogeneity [https://en.wikipedia.org/wiki/Tumour_heterogeneity here]). To improve treatment and prognosis we therefore try to classify COAD into cancer subtypes (a simple form of precision medicine). We currently think there are 5 subtypes (see [https://www.cell.com/cancer-cell/pdf/S1535-6108(18)30114-4.pdf Liu &#039;&#039;et al.&#039;&#039;]) and today you will be working with CIN and GS. CIN is an abbreviation for Chromosomal INstable and GS means genome stable. More on that later.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To help us understand COAD subtypes you will today compare these to healthy adjacent tissue. For all samples a biopsy was taken and bulk RNA-seq performed. Low-quality samples have been removed.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;bioinformatic-background&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Bioinformatic background&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For background on transcriptomics and splicing please refer to today’s slides. The data you are working with is a randomly selected a subset of the TCGA COAD data (google TCGA if you want to know more). The data was quantified with Kallisto against the human transcriptome.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Today you will be using the &#039;pairedGSEA&#039; R package we developed. This package is specifically designed to make it easy to do the following analysis:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Differential gene expression (aka DGE) via DESeq(2)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Differential gene usage (differential splicing) (aka DGU)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;gene-set over-representation analysis (ORA) on DGU and DGE&lt;br /&gt;
results&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;While at each step facilitating easy comparison of DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Assignment&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-1-determine-which-cancer-to-work-with&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 1: Determine which cancer to work with&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Determine which cancer type you will work with:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If your birthday is within the first 6 months of the year (January-June) you will work with &amp;lt;strong&amp;gt;CIN&amp;lt;/strong&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If your birthday is within the last 6 months of the year (July-December) you will work with &amp;lt;strong&amp;gt;GS&amp;lt;/strong&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-2-set-up-enviroment&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 2: Set up enviroment&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Log into the server as you usually do except this time you have to use the &#039;-X&#039; option. That means using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -X username@pupil1.healthtech.dtu.dk&amp;lt;/pre&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Make a directory for this exercise and move into it&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir transcriptomics_exercise&lt;br /&gt;
cd transcriptomics_exercise&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Copy the exercise data of your cancer subtype to your folder&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/transcriptomics/coad_iso_subset_cin.Rdata .&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/transcriptomics/coad_iso_subset_gs.Rdata .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-3-start-r-session-and-enviroment&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 3: Start R session and enviroment&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To start an R session in your terminal typing (or copy/pasting)&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R-4.2.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;And load the library we need by typing&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(pairedGSEA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This loads the functionality of the “pairedGSEA” R package.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-4-load-and-inspect-data&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 4: Load and inspect data&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Load the assignment data into your R session:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
load(&amp;amp;#39;coad_iso_subset_cin.Rdata&amp;amp;#39;)&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
load(&amp;amp;#39;coad_iso_subset_gs.Rdata&amp;amp;#39;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will give you two data objects in your R session:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A count matrix&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A matrix with meta information about each sample in the count matrix.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A list of gene_sets that you should use for your ORA analysis (step 7).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;All objects can be directly used by the &#039;pairedGSEA&#039;&lt;br /&gt;
package - no need to do any data modifications.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use the following functions to take a look at the data:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### List objects in an R session&lt;br /&gt;
ls()&lt;br /&gt;
&lt;br /&gt;
### Inspect the first lines of the object&lt;br /&gt;
head( &amp;amp;lt;object_name&amp;amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Which object contains what data?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;cinCountsSubset : Count data&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;cinMeta : Condition info (ctrl vs cancer)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;gene_set_list : List of gene-sets&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-5-run-differential-analysis&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 5: Run differential analysis&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next you will need to use the &#039;pairedGSEA&#039; package and&lt;br /&gt;
here a bit of self-study is needed. &amp;lt;strong&amp;gt;Importantly&amp;lt;/strong&amp;gt; you&lt;br /&gt;
should only run this analysis once per group - else we don’t have&lt;br /&gt;
enough computational power. You can download the&lt;br /&gt;
&#039;pairedGSEA&#039; vignette (short document showing how to use it)&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://www.dropbox.com/s/oalth29pxulffec/pairedGSEA.html?dl=1&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Hints:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;After reading the introduction you can skip to the&lt;br /&gt;
&#039;3.3 Running the analysis&#039; section.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;For now you only need to use &#039;paired_diff()&#039; as that&lt;br /&gt;
makes both differential analyses (both DGE and DGU).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is no need to use the “store_results” option&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: This will take a while to run (~10 min).&lt;br /&gt;
In the mean time take a closer look at the Liu &amp;lt;em&amp;gt;et al.&amp;lt;/em&amp;gt; paper&lt;br /&gt;
(see above) and summarise what the difference between the CIN and GS&lt;br /&gt;
COAD subtypes are.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    gi_diff_results &amp;amp;lt;- paired_diff(&lt;br /&gt;
    object = cinCountsSubset,&lt;br /&gt;
    metadata = cinMeta, # Use with count matrix or if you want to change it in&lt;br /&gt;
    # the input object&lt;br /&gt;
    group_col = &amp;amp;#39;condition&amp;amp;#39;,&lt;br /&gt;
    sample_col = &amp;amp;#39;sample_id&amp;amp;#39;,&lt;br /&gt;
    baseline = &amp;amp;#39;Control&amp;amp;#39;,&lt;br /&gt;
    case = &amp;amp;#39;COAD_genome_instable&amp;amp;#39;,&lt;br /&gt;
    store_results = FALSE&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-6-inspect-diffrential-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 6: Inspect diffrential result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Look at the first 10 lines of the result&lt;br /&gt;
file. Which gene is most significant (smallest p-value) for the DGE and&lt;br /&gt;
DGU analysis (respectively DESeq2 and DEXSeq)&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;DESeq2 (DGE): AAR2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;DEXSeq (DGU): A1BG&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following code &amp;lt;em&amp;gt;example&amp;lt;/em&amp;gt; counts how many significantly&lt;br /&gt;
differentially expressed genes are found:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sum( gi_diff_results$padj_deseq &amp;amp;lt; 0.05, na.rm = T )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Modify the R code above to count how many&lt;br /&gt;
genes are DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sum( gi_diff_results$padj_deseq &amp;amp;lt; 0.05, na.rm = T )&lt;br /&gt;
# 4860&lt;br /&gt;
sum( gi_diff_results$padj_dexseq &amp;amp;lt; 0.05, na.rm = T )&lt;br /&gt;
# 2117&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Use the &#039;nrow()&#039; function to&lt;br /&gt;
calculate the fraction of genes that are DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sum( gi_diff_results$padj_deseq &amp;amp;lt; 0.05, na.rm = T ) / nrow(gi_diff_results)&lt;br /&gt;
# 0.66&lt;br /&gt;
sum( gi_diff_results$padj_dexseq &amp;amp;lt; 0.05, na.rm = T )  / nrow(gi_diff_results)&lt;br /&gt;
# 0.29&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we are ready to do the gene-set enrichment analysis.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-7-run-gene-set-enrichment-analysis&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 7: Run Gene-Set Enrichment Analysis&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use the vignette to help you use &#039;pairedGSEA&#039; to run GSEA on both DGE and DGU results (see the vignette section 4: “Over-Representation Analysis”). You should use the &#039;gene_set_list&#039; object you have already loaded into R instead of using the &#039;prepare_msigdb()&#039; function.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note: There is (again) no need to store the intermediary results.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    gi_paired_ora &amp;lt;- paired_ora(&lt;br /&gt;
    paired_diff_result = gi_diff_results,&lt;br /&gt;
    gene_sets = gene_set_list,&lt;br /&gt;
    experiment_title = NULL&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-8-inspect-ora-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 8: Inspect ORA result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;What you have been analyzing so far is a subset of the entire dataset&lt;br /&gt;
(since the runtime else would have been 3-4x longer). To enable a more&lt;br /&gt;
realistic last step use &amp;lt;strong&amp;gt;one&amp;lt;/strong&amp;gt; of these commands to load&lt;br /&gt;
the full results corresponding to what you have been working with.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
load(&amp;amp;#39;/home/projects/22126_NGS/exercises/transcriptomics/03_coad_cin_ora.Rdata&amp;amp;#39;)&lt;br /&gt;
# loads the &amp;amp;quot;cin_ora&amp;amp;quot; object&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
load(&amp;amp;#39;/home/projects/22126_NGS/exercises/transcriptomics/03_coad_gs_ora.Rdata&amp;amp;#39;)&lt;br /&gt;
# loads the gs_ora object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following code &amp;lt;em&amp;gt;example&amp;lt;/em&amp;gt; extract the ORA analysis of&lt;br /&gt;
either DGU and DGE and sorts it so the most significant gene-sets are at&lt;br /&gt;
the top.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### DGE:&lt;br /&gt;
dge_ora_sorted &amp;amp;lt;- gi_paired_ora[&lt;br /&gt;
    sort.list(gi_paired_ora$pval_deseq),                 # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_deseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_deseq&amp;amp;#39;)   # select part&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
### DGU ORA:&lt;br /&gt;
dgu_ora_sorted &amp;amp;lt;- gi_paired_ora[&lt;br /&gt;
    sort.list(gi_paired_ora$pval_dexseq),                # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_dexseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_dexseq&amp;amp;#39;) # select part&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Look at the 10-15 most significant gene&lt;br /&gt;
sets from both analyses. What are the similarities and differences?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### DGE:&lt;br /&gt;
dge_ora_sorted &amp;amp;lt;- cin_ora[&lt;br /&gt;
    sort.list(cin_ora$pval_deseq),                 # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_deseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_deseq&amp;amp;#39;)   # select part&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
head(dge_ora_sorted, 15)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
##                                         pathway   pval_deseq&lt;br /&gt;
## 3823                   REACTOME_RRNA_PROCESSING 3.694775e-19&lt;br /&gt;
## 4433  GOBP_RIBONUCLEOPROTEIN_COMPLEX_BIOGENESIS 4.453501e-17&lt;br /&gt;
## 3879                   GOBP_RIBOSOME_BIOGENESIS 5.320229e-16&lt;br /&gt;
## 3785                              KEGG_RIBOSOME 2.192710e-14&lt;br /&gt;
## 1061            GOBP_MITOTIC_CELL_CYCLE_PROCESS 1.962214e-13&lt;br /&gt;
## 4700                       HALLMARK_E2F_TARGETS 2.038376e-13&lt;br /&gt;
## 977                         REACTOME_CELL_CYCLE 2.567524e-13&lt;br /&gt;
## 3759 REACTOME_EUKARYOTIC_TRANSLATION_ELONGATION 3.350223e-13&lt;br /&gt;
## 3828       REACTOME_SELENOAMINO_ACID_METABOLISM 4.766866e-13&lt;br /&gt;
## 4598                    HALLMARK_G2M_CHECKPOINT 7.966641e-13&lt;br /&gt;
## 3923 REACTOME_EUKARYOTIC_TRANSLATION_INITIATION 3.734833e-12&lt;br /&gt;
## 864                              GOCC_NUCLEOLUS 6.125940e-12&lt;br /&gt;
## 747                 REACTOME_INFECTIOUS_DISEASE 7.879724e-12&lt;br /&gt;
## 425    GOBP_RESPONSE_TO_ORGANIC_CYCLIC_COMPOUND 8.207220e-12&lt;br /&gt;
## 2449                    GOCC_ANCHORING_JUNCTION 9.689453e-12&lt;br /&gt;
##      enrichment_score_deseq&lt;br /&gt;
## 3823              0.6239502&lt;br /&gt;
## 4433              0.4724997&lt;br /&gt;
## 3879              0.5166409&lt;br /&gt;
## 3785              0.7224417&lt;br /&gt;
## 1061              0.3588459&lt;br /&gt;
## 4700              0.5451123&lt;br /&gt;
## 977               0.3721868&lt;br /&gt;
## 3759              0.6923103&lt;br /&gt;
## 3828              0.6601218&lt;br /&gt;
## 4598              0.5398054&lt;br /&gt;
## 3923              0.6205530&lt;br /&gt;
## 864               0.3070925&lt;br /&gt;
## 747               0.3249413&lt;br /&gt;
## 425               0.3294544&lt;br /&gt;
## 2449              0.3259827&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;DGE: something with RIBOSOME and CELL_CYCLE&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;r&amp;quot;&amp;gt;&lt;br /&gt;
### DGU ORA:&lt;br /&gt;
dgu_ora_sorted &amp;lt;- cin_ora[&lt;br /&gt;
    sort.list(cin_ora$pval_dexseq),                # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_dexseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_dexseq&amp;amp;#39;) # select part&lt;br /&gt;
]&lt;br /&gt;
head(dgu_ora_sorted, 15)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
##                                                                  pathway&lt;br /&gt;
## 2757                                   GOBP_ACTIN_FILAMENT_BASED_PROCESS&lt;br /&gt;
## 2449                                             GOCC_ANCHORING_JUNCTION&lt;br /&gt;
## 2787          REACTOME_SIGNALING_BY_RHO_GTPASES_MIRO_GTPASES_AND_RHOBTB3&lt;br /&gt;
## 3180                   GOMF_NUCLEOSIDE_TRIPHOSPHATASE_REGULATOR_ACTIVITY&lt;br /&gt;
## 2259                                      GOMF_ENZYME_REGULATOR_ACTIVITY&lt;br /&gt;
## 2345                                   GOMF_CYTOSKELETAL_PROTEIN_BINDING&lt;br /&gt;
## 2682 GOMF_TRANSFERASE_ACTIVITY_TRANSFERRING_PHOSPHORUS_CONTAINING_GROUPS&lt;br /&gt;
## 3363        GOBP_REGULATION_OF_SMALL_GTPASE_MEDIATED_SIGNAL_TRANSDUCTION&lt;br /&gt;
## 2045                                         GOCC_SUPRAMOLECULAR_COMPLEX&lt;br /&gt;
## 2806                                GOMF_PROTEIN_DOMAIN_SPECIFIC_BINDING&lt;br /&gt;
## 2869                      GOBP_SMALL_GTPASE_MEDIATED_SIGNAL_TRANSDUCTION&lt;br /&gt;
## 1781                      GOBP_POSITIVE_REGULATION_OF_CATALYTIC_ACTIVITY&lt;br /&gt;
## 3047                                    WP_VEGFAVEGFR2_SIGNALING_PATHWAY&lt;br /&gt;
## 2377                              GOBP_ORGANOPHOSPHATE_METABOLIC_PROCESS&lt;br /&gt;
## 2072                                             GOBP_CELL_MORPHOGENESIS&lt;br /&gt;
##       pval_dexseq enrichment_score_dexseq&lt;br /&gt;
## 2757 3.504255e-16               0.7528919&lt;br /&gt;
## 2449 7.263291e-15               0.7065107&lt;br /&gt;
## 2787 1.728464e-14               0.7489251&lt;br /&gt;
## 3180 1.837683e-14               0.8509545&lt;br /&gt;
## 2259 2.393632e-14               0.6135585&lt;br /&gt;
## 2345 4.224209e-14               0.6584802&lt;br /&gt;
## 2682 1.400344e-13               0.6628826&lt;br /&gt;
## 3363 3.661677e-13               0.9806811&lt;br /&gt;
## 2045 4.692953e-13               0.5934650&lt;br /&gt;
## 2806 2.857812e-12               0.7084235&lt;br /&gt;
## 2869 3.593536e-12               0.7767232&lt;br /&gt;
## 1781 5.678506e-12               0.5736414&lt;br /&gt;
## 3047 5.845276e-12               0.8127997&lt;br /&gt;
## 2377 6.168410e-12               0.6300335&lt;br /&gt;
## 2072 1.251178e-11               0.6002377&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;DGU: something with ACTIN, JUNCTION and SIGNALING&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-9-visual-inspection-of-ora-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 9: Visual inspection of ORA result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Based on your insights from step 8 use the &#039;plot_ora()&#039; functionality to test if these are just examples or generalize to all the significant results. An example: If I from the 10-15 top gene-sets saw that only DGU had gene-sets covering “telomer” function I would use the &#039;plot_ora()&#039; function to test this.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;r&amp;quot;&amp;gt;&lt;br /&gt;
plot_ora(&lt;br /&gt;
    ora=cin_ora,&lt;br /&gt;
    plotly = FALSE,&lt;br /&gt;
    pattern = &amp;amp;quot;CELL_CYCLE&amp;amp;quot;, # Identify all gene sets about telomeres&lt;br /&gt;
    cutoff = 0.1, # Only include significant gene sets&lt;br /&gt;
    lines = TRUE, # Guide lines&lt;br /&gt;
    colors = c(&amp;amp;#39;red&amp;amp;#39;,&amp;amp;#39;blue&amp;amp;#39;,&amp;amp;#39;black&amp;amp;#39;)&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Rnaseq_fig1.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Looks like cell cycle changes are mediated by both (enrichment is on the diagonal) and the majority is significant for both DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot_ora(&lt;br /&gt;
    ora=cin_ora,&lt;br /&gt;
    plotly = FALSE,&lt;br /&gt;
    pattern = &amp;amp;quot;RIBOSOME&amp;amp;quot;, # Identify all gene sets about telomeres&lt;br /&gt;
    cutoff = 0.33, # Only include significant gene sets&lt;br /&gt;
    lines = TRUE, # Guide lines&lt;br /&gt;
    colors = c(&amp;amp;#39;red&amp;amp;#39;,&amp;amp;#39;blue&amp;amp;#39;,&amp;amp;#39;black&amp;amp;#39;)&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
[[File:Rnaseq_fig2.png]]&lt;br /&gt;
&lt;br /&gt;
Ribosome is clearly mainly significant for DGE.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot_ora(&lt;br /&gt;
    ora=cin_ora,&lt;br /&gt;
    plotly = FALSE,&lt;br /&gt;
    pattern = &amp;amp;quot;ACTIN&amp;amp;quot;, # Identify all gene sets about telomeres&lt;br /&gt;
    cutoff = 0.33, # Only include significant gene sets&lt;br /&gt;
    lines = TRUE, # Guide lines&lt;br /&gt;
    colors = c(&amp;amp;#39;red&amp;amp;#39;,&amp;amp;#39;blue&amp;amp;#39;,&amp;amp;#39;black&amp;amp;#39;)&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Rnaseq_fig3.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Although many actin-related pathways are significant for both DGU and DGE more are DGU. Also, the enrichment among DGU is more pronounced (points are to the right of the diagonal line).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Lastly, note the low correlation suggesting an overall low similarity in biological signaling mediated through DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Try to make a hypothesis as to why this/these molecular functions might be important for cancer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;CELL_CYCLE: One of the main hallmarks of cancer - uncontrolled cell division.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;RIBOSOME: Many ribosomes are needed when cells are dividing (as indicated by increased cell cycle).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ACTIN: Actin is involved in cell movement and thereby cancer invasion and metastasis.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-10-critical-self-evaluation&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 10: Critical self evaluation&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Take a moment to think about what potential problems there could be with this assignment. Are there any obvious things we have not taken into consideration?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Answer&amp;lt;/strong&amp;gt;: The main problems are:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;More QC should have been done (clustering, outliers, etc)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;This is only a subset of the data (the real dataset has ~300 cancer samples)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We do not take co-factors into account. How many of the effects are due to e.g. gender and age differences?&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-11-repport-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 11: Report result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Go to the blackboard and report one or more of the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A keyword that showed a similar enrichment pattern in DGU and DGE&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A keyword that showed preferential regulation through DGU or DGE&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;bonus-assignment&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Bonus Assignment&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use &#039;pairedGSEA&#039; to analyze the other COAD cancer subtype (the one you did not analyze). Are the gene-sets similar or different between the subtypes and analysis types?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Rnaseq_exercise&amp;diff=34</id>
		<title>Rnaseq exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Rnaseq_exercise&amp;diff=34"/>
		<updated>2024-03-19T15:37:12Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot; &amp;lt;div class=&amp;quot;page-content has-page-title&amp;quot;&amp;gt; &amp;lt;div id=&amp;quot;overview-and-background&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt; &amp;lt;h1&amp;gt;Overview and background&amp;lt;/h1&amp;gt; &amp;lt;div id=&amp;quot;groups&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt; &amp;lt;h2&amp;gt;Groups&amp;lt;/h2&amp;gt; &amp;lt;p&amp;gt;Please get into groups of 2-3. We don’t have enough computational power for all of you working alone. Please let the instructors know if you need help finding a group.&amp;lt;/p&amp;gt; &amp;lt;/div&amp;gt;  &amp;lt;div id=&amp;quot;assignment-notes&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt; &amp;lt;h2&amp;gt;Assignment notes&amp;lt;/h2&amp;gt; &amp;lt;p&amp;gt;While some question...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;page-content has-page-title&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;overview-and-background&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Overview and background&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;groups&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Groups&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Please get into groups of 2-3. We don’t have enough computational power for all of you working alone. Please let the instructors know if you need help finding a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment-notes&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Assignment notes&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;While some questions might seem hard we naturally don’t ask questions/tasks which you have not been given the tools to solve in this assignment - so if you are stuck try thinking about what you have already learned before asking an instructor.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment-overview&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Assignment overview&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In this assignment you are going to analyze RNA-sequencing data from real cancer patients to analyze the importance of alternative splicing in a clinical context&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;biological-background&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Biological background&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Today you will be working with colorectal cancers - specifically Colon Adenocarcinoma (often abbreviated COAD). It is a cancer of the colon that is very frequent. The lifetime risk of developing&lt;br /&gt;
colorectal cancer is ~4% for both males and females. That means COAD represents ~10% of all cancers and results in the death of hundreds of thousands of people each year! (More info on COAD can be found on [https://en.wikipedia.org/wiki/Colorectal_cancer Wikipedia].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One important aspect of cancer is that tumors from different patients are extremely different even when they originate from the same tissue (more info on tumor heterogeneity [https://en.wikipedia.org/wiki/Tumour_heterogeneity here]). To improve treatment and prognosis we therefore try to classify COAD into cancer subtypes (a simple form of precision medicine). We currently think there are 5 subtypes (see [https://www.cell.com/cancer-cell/pdf/S1535-6108(18)30114-4.pdf Liu &#039;&#039;et al.&#039;&#039;]) and today you will be working with CIN and GS. CIN is an abbreviation for Chromosomal INstable and GS means genome stable. More on that later.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To help us understand COAD subtypes you will today compare these to healthy adjacent tissue. For all samples a biopsy was taken and bulk RNA-seq performed. Low-quality samples have been removed.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;bioinformatic-background&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Bioinformatic background&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For background on transcriptomics and splicing please refer to today’s slides. The data you are working with is a randomly selected a subset of the TCGA COAD data (google TCGA if you want to know more). The data was quantified with Kallisto against the human transcriptome.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Today you will be using the &#039;pairedGSEA&#039; R package we developed. This package is specifically designed to make it easy to do the following analysis:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Differential gene expression (aka DGE) via DESeq(2)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Differential gene usage (differential splicing) (aka DGU)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;gene-set over-representation analysis (ORA) on DGU and DGE&lt;br /&gt;
results&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;While at each step facilitating easy comparison of DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;assignment&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Assignment&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-1-determine-which-cancer-to-work-with&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 1: Determine which cancer to work with&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Determine which cancer type you will work with:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If your birthday is within the first 6 months of the year (January-June) you will work with &amp;lt;strong&amp;gt;CIN&amp;lt;/strong&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If your birthday is within the last 6 months of the year (July-December) you will work with &amp;lt;strong&amp;gt;GS&amp;lt;/strong&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-2-set-up-enviroment&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 2: Set up enviroment&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Log into the server as you usually do except this time you have to use the &#039;-X&#039; option. That means using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -X username@pupil1.healthtech.dtu.dk&amp;lt;/pre&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Make a directory for this exercise and move into it&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir transcriptomics_exercise&lt;br /&gt;
cd transcriptomics_exercise&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Copy the exercise data of your cancer subtype to your folder&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/transcriptomics/coad_iso_subset_cin.Rdata .&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
cp /home/projects/22126_NGS/exercises/transcriptomics/coad_iso_subset_gs.Rdata .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-3-start-r-session-and-enviroment&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 3: Start R session and enviroment&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To start an R session in your terminal typing (or copy/pasting)&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R-4.2.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;And load the library we need by typing&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(pairedGSEA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This loads the functionality of the “pairedGSEA” R package.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-4-load-and-inspect-data&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 4: Load and inspect data&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Load the assignment data into your R session:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
load(&amp;amp;#39;coad_iso_subset_cin.Rdata&amp;amp;#39;)&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
load(&amp;amp;#39;coad_iso_subset_gs.Rdata&amp;amp;#39;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This will give you two data objects in your R session:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A count matrix&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A matrix with meta information about each sample in the count matrix.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A list of gene_sets that you should use for your ORA analysis (step 7).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;All objects can be directly used by the &#039;pairedGSEA&#039;&lt;br /&gt;
package - no need to do any data modifications.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use the following functions to take a look at the data:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### List objects in an R session&lt;br /&gt;
ls()&lt;br /&gt;
&lt;br /&gt;
### Inspect the first lines of the object&lt;br /&gt;
head( &amp;amp;lt;object_name&amp;amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Which object contains what data?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-5-run-differential-analysis&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 5: Run differential analysis&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next you will need to use the &#039;pairedGSEA&#039; package and&lt;br /&gt;
here a bit of self-study is needed. &amp;lt;strong&amp;gt;Importantly&amp;lt;/strong&amp;gt; you&lt;br /&gt;
should only run this analysis once per group - else we don’t have&lt;br /&gt;
enough computational power. You can download the&lt;br /&gt;
&#039;pairedGSEA&#039; vignette (short document showing how to use it)&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://www.dropbox.com/s/oalth29pxulffec/pairedGSEA.html?dl=1&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Hints:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;After reading the introduction you can skip to the&lt;br /&gt;
&#039;3.3 Running the analysis&#039; section.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;For now you only need to use &#039;paired_diff()&#039; as that&lt;br /&gt;
makes both differential analyses (both DGE and DGU).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is no need to use the “store_results” option&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: This will take a while to run (~10 min).&lt;br /&gt;
In the mean time take a closer look at the Liu &amp;lt;em&amp;gt;et al.&amp;lt;/em&amp;gt; paper&lt;br /&gt;
(see above) and summarise what the difference between the CIN and GS&lt;br /&gt;
COAD subtypes are.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-6-inspect-diffrential-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 6: Inspect diffrential result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Look at the first 10 lines of the result&lt;br /&gt;
file. Which gene is most significant (smallest p-value) for the DGE and&lt;br /&gt;
DGU analysis (respectively DESeq2 and DEXSeq)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following code &amp;lt;em&amp;gt;example&amp;lt;/em&amp;gt; counts how many significantly&lt;br /&gt;
differentially expressed genes are found:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sum( gi_diff_results$padj_deseq &amp;amp;lt; 0.05, na.rm = T )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Modify the R code above to count how many&lt;br /&gt;
genes are DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Use the &#039;nrow()&#039; function to&lt;br /&gt;
calculate the fraction of genes that are DGE and DGU.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now we are ready to do the gene-set enrichment analysis.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-7-run-gene-set-enrichment-analysis&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 7: Run Gene-Set Enrichment Analysis&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use the vignette to help you use &#039;pairedGSEA&#039; to run GSEA on both DGE and DGU results (see the vignette section 4: “Over-Representation Analysis”). You should use the &#039;gene_set_list&#039; object you have already loaded into R instead of using the &#039;prepare_msigdb()&#039; function.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note: There is (again) no need to store the intermediary results.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-8-inspect-ora-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 8: Inspect ORA result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;What you have been analyzing so far is a subset of the entire dataset&lt;br /&gt;
(since the runtime else would have been 3-4x longer). To enable a more&lt;br /&gt;
realistic last step use &amp;lt;strong&amp;gt;one&amp;lt;/strong&amp;gt; of these commands to load&lt;br /&gt;
the full results corresponding to what you have been working with.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### for CIN subtype:&lt;br /&gt;
load(&amp;amp;#39;/home/projects/22126_NGS/exercises/transcriptomics/03_coad_cin_ora.Rdata&amp;amp;#39;)&lt;br /&gt;
# loads the &amp;amp;quot;cin_ora&amp;amp;quot; object&lt;br /&gt;
&lt;br /&gt;
### For GS subtype:&lt;br /&gt;
load(&amp;amp;#39;/home/projects/22126_NGS/exercises/transcriptomics/03_coad_gs_ora.Rdata&amp;amp;#39;)&lt;br /&gt;
# loads the gs_ora object&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following code &amp;lt;em&amp;gt;example&amp;lt;/em&amp;gt; extract the ORA analysis of&lt;br /&gt;
either DGU and DGE and sorts it so the most significant gene-sets are at&lt;br /&gt;
the top.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### DGE:&lt;br /&gt;
dge_ora_sorted &amp;amp;lt;- gi_paired_ora[&lt;br /&gt;
    sort.list(gi_paired_ora$pval_deseq),                 # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_deseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_deseq&amp;amp;#39;)   # select part&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
### DGU ORA:&lt;br /&gt;
dgu_ora_sorted &amp;amp;lt;- gi_paired_ora[&lt;br /&gt;
    sort.list(gi_paired_ora$pval_dexseq),                # sort part&lt;br /&gt;
    c(&amp;amp;#39;pathway&amp;amp;#39;,&amp;amp;#39;pval_dexseq&amp;amp;#39;,&amp;amp;#39;enrichment_score_dexseq&amp;amp;#39;) # select part&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Look at the 10-15 most significant gene&lt;br /&gt;
sets from both analyses. What are the similarities and differences?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-9-visual-inspection-of-ora-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 9: Visual inspection of ORA result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Based on your insights from step 8 use the &#039;plot_ora()&#039; functionality to test if these are just examples or generalize to all the significant results. An example: If I from the 10-15 top gene-sets saw that only DGU had gene-sets covering “telomer” function I would use the &#039;plot_ora()&#039; function to test this.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Try to make a hypothesis as to why this/these molecular functions might be important for cancer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-10-critical-self-evaluation&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 10: Critical self evaluation&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Question&amp;lt;/strong&amp;gt;: Take a moment to think about what potential problems there could be with this assignment. Are there any obvious things we have not taken into consideration?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;step-11-repport-result&amp;quot; class=&amp;quot;section level2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Step 11: Report result&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Go to the blackboard and report one or more of the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A keyword that showed a similar enrichment pattern in DGU and DGE&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;A keyword that showed preferential regulation through DGU or DGE&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;bonus-assignment&amp;quot; class=&amp;quot;section level1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Bonus Assignment&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use &#039;pairedGSEA&#039; to analyze the other COAD cancer subtype (the one you did not analyze). Are the gene-sets similar or different between the subtypes and analysis types?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Ancient_DNA_exercise_answers&amp;diff=33</id>
		<title>Ancient DNA exercise answers</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Ancient_DNA_exercise_answers&amp;diff=33"/>
		<updated>2024-03-19T15:36:27Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Q1&amp;#039;&amp;#039;&amp;#039;  the read length is about 100bp but the actual insert size is unknown.  &amp;#039;&amp;#039;&amp;#039;Q2&amp;#039;&amp;#039;&amp;#039;  very low, less than 1%   &amp;#039;&amp;#039;&amp;#039;Q3&amp;#039;&amp;#039;&amp;#039;  About 40bp.  &amp;#039;&amp;#039;&amp;#039;Q4&amp;#039;&amp;#039;&amp;#039;  About 25%.  &amp;#039;&amp;#039;&amp;#039;Q5&amp;#039;&amp;#039;&amp;#039;   As and Gs  &amp;#039;&amp;#039;&amp;#039;Q6&amp;#039;&amp;#039;&amp;#039;  The sample indeed looks ancient. If we did not see DNA fragmentation or damage it could be indicative of present-day human contamination.  &amp;#039;&amp;#039;&amp;#039;Q7&amp;#039;&amp;#039;&amp;#039;  &amp;lt;pre&amp;gt; wc -l world.fam wc -l world.bim &amp;lt;/pre&amp;gt; 297 samples and 587772 SNPs.  &amp;#039;&amp;#039;&amp;#039;Q8&amp;#039;&amp;#039;&amp;#039;  &amp;lt;pre&amp;gt; cut -f2 world.sampleInfo.txt | tail -n +2...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Q1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
the read length is about 100bp but the actual insert size is unknown.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
very low, less than 1%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
About 40bp.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
About 25%.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 As and Gs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The sample indeed looks ancient. If we did not see DNA fragmentation or damage it could be indicative of present-day human contamination.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wc -l world.fam&lt;br /&gt;
wc -l world.bim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
297 samples and 587772 SNPs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cut -f2 world.sampleInfo.txt | tail -n +2 | sort | uniq -c|sort -rn&lt;br /&gt;
     70 Yoruba&lt;br /&gt;
     33 Han&lt;br /&gt;
     29 Basque&lt;br /&gt;
     27 Sardinian&lt;br /&gt;
     25 French&lt;br /&gt;
     20 Hungarian&lt;br /&gt;
     20 Greek&lt;br /&gt;
     19 Bedouin2&lt;br /&gt;
     17 Adygei&lt;br /&gt;
     10 Lithuanian&lt;br /&gt;
     10 Armenian&lt;br /&gt;
      8 Tuscan&lt;br /&gt;
      1 UstIshim&lt;br /&gt;
      1 Stuttgart&lt;br /&gt;
      1 Samara&lt;br /&gt;
      1 NE1&lt;br /&gt;
      1 MA1&lt;br /&gt;
      1 Loschbour&lt;br /&gt;
      1 Karelia&lt;br /&gt;
      1 Iceman&lt;br /&gt;
      1 Brana&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q9:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should be getting the same:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plink --bfile world --missing --out world&lt;br /&gt;
587772 variants loaded from .bim file.&lt;br /&gt;
297 people (0 males, 0 females, 297 ambiguous) loaded from .fam.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q10:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cat world.imiss  |grep -i ice&lt;br /&gt;
     Iceman          Iceman          Y    11873   587772   0.0202&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so about 2%.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q11&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat RISE507.pileup.gz |wc -l &lt;br /&gt;
102014&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q12&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 plink --bfile world --bmerge RISE507 --out RISE507.merge&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
should result in:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Error: 253 variants with 3+ alleles present.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This normally is due to tri-allelic sites. Normally they should be very few. However, in our case, there are a lot. This is likely due to damage that creates spurious variations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q13:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
The Yoruba.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q14:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Han.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q15:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [https://en.wikipedia.org/wiki/Adyghe_people Adygei]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q16&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Sardinians&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q17&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
the [https://en.wikipedia.org/wiki/Ust%27-Ishim_man Ust-Ishim] and the [https://en.wikipedia.org/wiki/Mal%27ta%E2%80%93Buret%27_culture Mal&#039;ta–Buret&#039; boy] (MA1).&lt;br /&gt;
&lt;br /&gt;
There are many reasons that can explain this:&lt;br /&gt;
# the ancient individuals completely fall outside the range of genomic diversity of modern humans i.e. they were isolated populations that potentially died off.&lt;br /&gt;
# these were individuals with mixed ancestry&lt;br /&gt;
# they contain numerous errors due to damage&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q18:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The RISE507 sample from Afanasievo culture.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q19:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Our individual is now a bit outside of the Hungarian / French cluster.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q20&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[https://www.nature.com/articles/nature14507 Allentoft et al. 2015] actually found that the individuals from the [https://en.wikipedia.org/wiki/Afanasievo_culture Afanasievo] were genetically indistinguishable from the [https://en.wikipedia.org/wiki/Yamnaya_culture Yamnhaya culture] which is a culture closely related to [https://en.wikipedia.org/wiki/Western_Steppe_Herders Western Steppe Herders] which is one of the major genetic contributor to present-day Europeans.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Ancient_DNA_exercise&amp;diff=32</id>
		<title>Ancient DNA exercise</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Ancient_DNA_exercise&amp;diff=32"/>
		<updated>2024-03-19T15:35:43Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;  Adapted from Martin Sikora.  First: &amp;lt;OL&amp;gt; &amp;lt;LI&amp;gt;Navigate to your home directory: &amp;lt;LI&amp;gt;Create a directory called &amp;quot;adna&amp;quot;  &amp;lt;LI&amp;gt;Navigate to the directory you just created. &amp;lt;/OL&amp;gt;  We will try to  # Authenticate ancient DNA # do some basic population genetics  &amp;lt;h2&amp;gt; Data authentication&amp;lt;/h2&amp;gt;  Authentication involves making sure that the DNA that you have extracted from my fossil and sequenced is indeed from the fossil and not some modern contaminant. A big differe...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;H2&amp;gt;Overview&amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adapted from Martin Sikora.&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to your home directory:&lt;br /&gt;
&amp;lt;LI&amp;gt;Create a directory called &amp;quot;adna&amp;quot; &lt;br /&gt;
&amp;lt;LI&amp;gt;Navigate to the directory you just created.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will try to &lt;br /&gt;
# Authenticate ancient DNA&lt;br /&gt;
# do some basic population genetics&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Data authentication&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authentication involves making sure that the DNA that you have extracted from my fossil and sequenced is indeed from the fossil and not some modern contaminant. A big difference between modern DNA and ancient DNA is the presence of chemical damage due to the passage of time. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Direct measurements of the rate of chemical damage&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, create a directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir  01_authentication&lt;br /&gt;
cd 01_authentication&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will characterize DNA damage patterns using mapDamage, a software to estimate the rate of nucleotide substitution. In this section, we will examine some example BAM files for the presence of DNA damage patterns typical of ancient DNA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have a set of 10 modern and 26 ancient individuals (subsampled to 100k reads)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /home/projects/22126_NGS/exercises/adna/01_authentication/bam/ -name &amp;quot;*bam&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, run mapDamage on one of the modern individuals:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mapDamage -i /home/projects/22126_NGS/exercises/adna/01_authentication/bam/modern/NA20786.mapped.ILLUMINA.bwa.TSI.low_coverage.20130415.100k_ss.bam -r /home/databases/references/human/hs37d5.fa --no-stats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examine the output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd NA20786.mapped.ILLUMINA.bwa.TSI.low_coverage.20130415.100k_ss.mapDamage/&lt;br /&gt;
okular Length_plot.pdf &amp;amp;&lt;br /&gt;
okular Fragmisincorporation_plot.pdf &amp;amp;&lt;br /&gt;
cd ..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q1:&#039;&#039;&#039; which fragment length occurs most frequently?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q2:&#039;&#039;&#039; what is the frequency of 5&#039; C&amp;gt;T and 3&#039; G&amp;gt;A substitutions ()&lt;br /&gt;
&lt;br /&gt;
Run mapDamage on one of the ancient individuals&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mapDamage -i  /home/projects/22126_NGS/exercises/adna/01_authentication/bam/ancient/allentoft_2015/RISE559.sort.rmdup.realign.md.100k.bam -r /home/databases/references/human/hs37d5.fa --no-stats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examine the output&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd RISE559.sort.rmdup.realign.md.100k.mapDamage/&lt;br /&gt;
okular Length_plot.pdf &amp;amp;&lt;br /&gt;
okular Fragmisincorporation_plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q3:&#039;&#039;&#039; At what fragment length does the distribution show its peak?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q4:&#039;&#039;&#039; what are the frequencies of 5&#039; C&amp;gt;T (red line) and 3&#039; G&amp;gt;A substitutions (blue line)?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q5:&#039;&#039;&#039; which bases are enriched at 5&#039; flanking position?&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q6:&#039;&#039;&#039; does your sample look ancient? if not, what might be the reason?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H2&amp;gt; Population genetics &amp;lt;/H2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new subdirectory and navigate to it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ..&lt;br /&gt;
mkdir 02_popgen&lt;br /&gt;
cd 02_popgen&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Explore the reference panel dataset&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pur reference panel dataset is in binary PLINK format, a widely used format in genetic studies (see documentation [https://www.cog-genomics.org/plink/1.9/ here]). We need to access the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /home/projects/22126_NGS/exercises/adna/02_popgen/plink/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, instead of copying them, we will create symbolic links using the ln command, these acts as placeholders and tell the operating system to pretend that there is an actual file there. This saves considerable disk space compared to copying over the files. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/plink/world.bed .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/plink/world.bim .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/plink/world.cluster .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/plink/world.fam .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/plink/world.sampleInfo.txt .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/eur.poplist .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/modern.poplist .&lt;br /&gt;
ln -s /home/projects/22126_NGS/exercises/adna/02_popgen/noneur.poplist .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The PLINK binary format consists of 3 files:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;file&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;description&#039;&#039;&#039;    &lt;br /&gt;
|-&lt;br /&gt;
| world.bed&lt;br /&gt;
| | genotype data in binary format (&#039;&#039;&#039;not to be confused with genomic intervals bed file but it is confusing&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
| world.bim&lt;br /&gt;
| metadata for the variants, 1 line per variant&lt;br /&gt;
|-&lt;br /&gt;
| world.fam&lt;br /&gt;
| metadata for the samples, 1 line per sample&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We also have the following files than contain extra information:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;file&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;description&#039;&#039;&#039;    &lt;br /&gt;
|-&lt;br /&gt;
|world.cluster&lt;br /&gt;
| pre-defined population groupings for samples (for plink)&lt;br /&gt;
|-&lt;br /&gt;
| world.sampleInfo.txt&lt;br /&gt;
| additional sample metadata (for plotting etc)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us explore the metadata files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
head world.fam&lt;br /&gt;
head world.bim&lt;br /&gt;
head world.cluster&lt;br /&gt;
head world.sampleInfo.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q7:&#039;&#039;&#039; How many samples / SNPs are in our dataset?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q8:&#039;&#039;&#039; what populations are in our reference panel and what sample size do they have (trick: forgo the header using &amp;quot;tail -n+2&amp;quot;, you need &amp;quot;sort&amp;quot; and uniq (prints 1 instance per repeated line), to tell &amp;quot;uniq&amp;quot; to count and print how many lines were repeated &amp;quot;-c&amp;quot;?&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Calculate basic summary statistics (a simple description of the data) for the dataset:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile world --missing --out world&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q9:&#039;&#039;&#039;  are you getting the same number of variants and individuals as you did via UNIX command lines?&lt;br /&gt;
&lt;br /&gt;
The world.imiss file lists the number and fraction of missing genotypes for each sample&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q10:&#039;&#039;&#039; what fraction of SNPs have a missing genotype for the Tyrolean Iceman?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Genotype and merge an ancient individual&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this section, we will merge our ancient data with the reference panel to prepare our dataset for downstream analysis genotypes for our ancient data will be obtained by randomly sampling a read from the alignments (BAM files) at the reference dataset SNP positions.&lt;br /&gt;
&lt;br /&gt;
We are going to use a low-coverage individual from [https://pubmed.ncbi.nlm.nih.gov/26062507/ Allentoft et al (RISE507)], this data was obtained from an ~5100-year-old individual from the Early Bronze Age [https://en.wikipedia.org/wiki/Afanasievo_culture Afanasievo culture] in the Altai Mountains region&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls /home/projects/22126_NGS/exercises/adna/02_popgen/bam/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, we need to extract a genomic interval bed file for the SNP positions of the reference panel:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
awk &#039;{print $1&amp;quot;\t&amp;quot;($4-1)&amp;quot;\t&amp;quot;$4}&#039; world.bim | gzip &amp;gt; world.snps.bed.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
awk is a command to create small programs. In this example, we tell it, print the first columns, the fourth column minus 1 and the fourth column again.&lt;br /&gt;
 &lt;br /&gt;
Inspect the results:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat world.snps.bed.gz | head&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a read pileup file for the reference panel SNP positions (might take a few minutes) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
samtools mpileup -f /home/databases/references/human/hs37d5.fa -B -l world.snps.bed.gz /home/projects/22126_NGS/exercises/adna/02_popgen/bam/RISE507.sort.rmdup.realign.md.bam |gzip &amp;gt; RISE507.pileup.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Examine the output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat RISE507.pileup.gz |head&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q11&#039;&#039;&#039;: how many SNPs of the reference panel are covered in RISE507?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we will randomly sample a DNA fragment at each position and output the results in VCF format (custom python script):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat RISE507.pileup.gz | python2 /home/projects/22126_NGS/exercises/adna/02_popgen/get_haploid_vcf_from_pileup.py -r -s RISE507 |bgzip -c &amp;gt; RISE507.vcf.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is done because the coverage is insufficient to ensure proper genotyping.&lt;br /&gt;
&lt;br /&gt;
Let us inspect the result:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zcat RISE507.vcf.gz |grep -v &amp;quot;^#&amp;quot; |head&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We convert to plink binary format:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
/home/ctools/plink-1.9/plink --vcf RISE507.vcf.gz --make-bed --double-id --out RISE507&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try to merge the sample with the reference panel&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile world --bmerge RISE507 --out RISE507.merge&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
You should get an error.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q12&#039;&#039;&#039;: how many SNPs failed the merge? What is the likely reason?&lt;br /&gt;
&lt;br /&gt;
We will remove the failing SNPs and try again&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507 --exclude RISE507.merge.missnp --make-bed --out RISE507.merge2&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile world --bmerge RISE507.merge2 --out RISE507.world&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make a cluster file for subsetting&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
awk &#039;{print $1,$2,$1}&#039; RISE507.world.fam &amp;gt; RISE507.world.cluster&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;H3&amp;gt;Investigate the genetic affinities of the ancient sample using PCA&amp;lt;/H3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this section, we will try to place our sample within a PCA of a set of modern and ancient individuals.&lt;br /&gt;
&lt;br /&gt;
First, we will have a look at the modern populations in the reference panel:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507.world --keep-clusters modern.poplist --within RISE507.world.cluster --pca header tabs --out modern&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the first two principal components using the custom R script plotPca.R&lt;br /&gt;
&lt;br /&gt;
The three positional arguments are the eigenvector file, sample info file and prefix for the output&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rscript /home/projects/22126_NGS/exercises/adna/02_popgen/plotPca.R modern.eigenvec world.sampleInfo.txt modern&lt;br /&gt;
evince modern.pca.plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q13:&#039;&#039;&#039; which populations are most differentiated along PC1?&lt;br /&gt;
&#039;&#039;&#039;Q14:&#039;&#039;&#039; which populations are most differentiated along PC2?&lt;br /&gt;
&lt;br /&gt;
We repeat the exercise on a subset of European populations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507.world --keep-clusters eur.poplist --within RISE507.world.cluster --pca header tabs --out eur&lt;br /&gt;
Rscript /home/projects/22126_NGS/exercises/adna/02_popgen/plotPca.R eur.eigenvec world.sampleInfo.txt eur&lt;br /&gt;
evince eur.pca.plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q15:&#039;&#039;&#039; which populations are most differentiated along PC1?&lt;br /&gt;
&#039;&#039;&#039;Q16:&#039;&#039;&#039; which populations are most differentiated along PC2?&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Now, let us examine how the cluster of ancient individuals compared to the modern ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507.world --pca header tabs --out ancient.world&lt;br /&gt;
Rscript /home/projects/22126_NGS/exercises/adna/02_popgen/plotPca.R ancient.world.eigenvec world.sampleInfo.txt ancient.world&lt;br /&gt;
evince ancient.world.pca.plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some references if you want to read more about the different ancient samples:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;sample&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;&#039;link&#039;&#039;&#039;    &lt;br /&gt;
|-&lt;br /&gt;
| UstIshim&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Ust%27-Ishim_man]&lt;br /&gt;
|-&lt;br /&gt;
| Loschbour&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Loschbour_man] [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4170574/]&lt;br /&gt;
|-&lt;br /&gt;
| Brana&lt;br /&gt;
| [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4269527/]&lt;br /&gt;
|-&lt;br /&gt;
| NE1&lt;br /&gt;
| [https://www.pnas.org/content/113/2/368]&lt;br /&gt;
|-&lt;br /&gt;
|Stuttgart&lt;br /&gt;
| [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4170574/]&lt;br /&gt;
|-&lt;br /&gt;
| Iceman&lt;br /&gt;
| [https://www.iceman.it/en/the-iceman/]&lt;br /&gt;
|-&lt;br /&gt;
|Karelia&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Karelians]&lt;br /&gt;
|-&lt;br /&gt;
| Samara&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Samara_culture]&lt;br /&gt;
|-&lt;br /&gt;
| MA1&lt;br /&gt;
| [https://en.wikipedia.org/wiki/Mal%27ta%E2%80%93Buret%27_culture]&lt;br /&gt;
|-&lt;br /&gt;
| RISE507&lt;br /&gt;
|[https://pubmed.ncbi.nlm.nih.gov/26062507/]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q17:&#039;&#039;&#039; which ancient individuals don&#039;t cluster close to any modern individuals? what could be a plausible reason?&lt;br /&gt;
&lt;br /&gt;
Repeat the exercise but remove the non-European modern individuals:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507.world --within RISE507.world.cluster --remove-clusters noneur.poplist --pca header tabs --out ancient.eur&lt;br /&gt;
Rscript /home/projects/22126_NGS/exercises/adna/02_popgen/plotPca.R ancient.eur.eigenvec world.sampleInfo.txt ancient.eur&lt;br /&gt;
evince ancient.eur.pca.plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q18:&#039;&#039;&#039; which populations are most differentiated along PC1? what could be a plausible reason?&lt;br /&gt;
&lt;br /&gt;
As a final exercise, we now project the ancient individual on PCs inferred from modern Europeans:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home/ctools/plink-1.9/plink --bfile RISE507.world --within RISE507.world.cluster --pca-clusters eur.poplist --remove-clusters noneur.poplist --pca header tabs --out ancient_proj.eur --maf 0.01&lt;br /&gt;
Rscript /home/projects/22126_NGS/exercises/adna/02_popgen/plotPca.R ancient_proj.eur.eigenvec world.sampleInfo.txt ancient_proj.eur&lt;br /&gt;
evince ancient_proj.eur.pca.plot.pdf &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q19:&#039;&#039;&#039; where does our study individual cluster now?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q20:&#039;&#039;&#039; How do you explain that an individual that is found closer to the modern-day Chinese border is closer to modern Europeans than he is to the Han Chinese?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please find answers [[Ancient_DNA_exercise_answers|here]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=Denovo_solution&amp;diff=31</id>
		<title>Denovo solution</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=Denovo_solution&amp;diff=31"/>
		<updated>2024-03-19T15:35:07Z</updated>

		<summary type="html">&lt;p&gt;WikiSysop: Created page with &amp;quot;Q1. Illumina  Q1A. discarded contains reads that are too short, pair1 and pair2 files contain the read pairs were both passed trimming and singleton are reads were one of the two pairs were discarded.  Q2. Around 84  Q3. N = (M*L)/(L-K+1) = (84*99)/(99-15+1) = 97.84 Genome_size = T/N = (213721367+212523694)/97.84 = 4.35Mb  Q4. Mean = 259 ; SD = 11  Q5. It is lower, this means that the actual kmer peak we found (unless you found one higher than 84) is higher (this would g...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Q1. Illumina&lt;br /&gt;
&lt;br /&gt;
Q1A. discarded contains reads that are too short, pair1 and pair2 files contain the read pairs were both passed trimming and singleton are reads were one of the two pairs were discarded.&lt;br /&gt;
&lt;br /&gt;
Q2. Around 84&lt;br /&gt;
&lt;br /&gt;
Q3. N = (M*L)/(L-K+1) = (84*99)/(99-15+1) = 97.84&lt;br /&gt;
Genome_size = T/N = (213721367+212523694)/97.84 = 4.35Mb&lt;br /&gt;
&lt;br /&gt;
Q4. Mean = 259 ; SD = 11&lt;br /&gt;
&lt;br /&gt;
Q5. It is lower, this means that the actual kmer peak we found (unless you found one higher than 84) is higher (this would give a lower genome size).&lt;br /&gt;
&lt;br /&gt;
Q6. 10 of 195 contigs were scaffolded into scaffolds, this is quite few - normally it is much higher. A reason for this could be that our insert size is quite low (~250 bp) and the repeats in the genome are larger than this.&lt;br /&gt;
&lt;br /&gt;
Q7. Repeat regions&lt;br /&gt;
&lt;br /&gt;
Q8. Contaminations&lt;br /&gt;
&lt;br /&gt;
Q9. Because we use the reference genome as the truth it may be hard to distinguish what is a misassembly and what is true variation from the reference genome. &lt;br /&gt;
&lt;br /&gt;
Q10. This is of course just visual, but it seems that most part of the reference genome is covered by our assembly, so yes.&lt;br /&gt;
&lt;br /&gt;
Q11. Yes, a couple of the small contigs does not map at all, and the C1097 only maps partially. This could be sequence in our strain, but not in the reference genome.&lt;br /&gt;
&lt;br /&gt;
Q12. This is a region with a lot of repeats, this is also why we cant really assemble it. It is used by V. cholerae to integrate new genes into its genome.&lt;br /&gt;
&lt;br /&gt;
Q13. The Nanopore assembly only has 2 contigs and pacbio 1!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Q14. The 454 assembly was best. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>