<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22126/index.php?action=history&amp;feed=atom&amp;title=CfDNA_exercise_answers</id>
	<title>CfDNA exercise answers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22126/index.php?action=history&amp;feed=atom&amp;title=CfDNA_exercise_answers"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise_answers&amp;action=history"/>
	<updated>2026-05-04T03:48:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise_answers&amp;diff=75&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;&#039;&#039;&#039;Q1&#039;&#039;&#039;  Using:  &lt;pre&gt; samtools stat /data/shared/exercises/cfdna/patient_1.bam &gt; patient1.stat samtools stat /data/shared/exercises/cfdna/patient_2.bam &gt; patient2.stat  plot-bamstats -p patient1 patient1.stat plot-bamstats -p patient2 patient2.stat  firefox patient1.stat firefox patient2.stat  &lt;/pre&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.  &#039;&#039;&#039;Q2&#039;&#039;&#039;  We first run: &lt;p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22126/index.php?title=CfDNA_exercise_answers&amp;diff=75&amp;oldid=prev"/>
		<updated>2024-03-19T16:05:43Z</updated>

		<summary type="html">&lt;p&gt;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;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Q1&amp;#039;&amp;#039;&amp;#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;
&amp;#039;&amp;#039;&amp;#039;Q2&amp;#039;&amp;#039;&amp;#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;
&amp;#039;&amp;#039;&amp;#039;Q3&amp;#039;&amp;#039;&amp;#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;
&amp;#039;&amp;#039;&amp;#039;Q4&amp;#039;&amp;#039;&amp;#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>
</feed>