<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Mapping.py</id>
		<title>Mapping.py - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Mapping.py"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Mapping.py&amp;action=history"/>
		<updated>2026-05-07T17:16:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Mapping.py&amp;diff=1141&amp;oldid=prev</id>
		<title>Rf at 11:48, 23 February 2017</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Mapping.py&amp;diff=1141&amp;oldid=prev"/>
				<updated>2017-02-23T11:48:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:48, 23 February 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Introduction =&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Introduction =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another part of Miguel &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pnheiros &lt;/del&gt;script_tools suite.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another part of Miguel &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Pinheiro&amp;#039;s &lt;/ins&gt;script_tools suite&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. This takes paired-end FASTQ reads and generates a cleaned-up bam file from them&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Outline =&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Outline =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-bwik:diff:version:1.11a:oldid:1140:newid:1141 --&gt;
&lt;/table&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Mapping.py&amp;diff=1140&amp;oldid=prev</id>
		<title>Rf: Created page with &quot;= Introduction =  Another part of Miguel Pnheiros script_tools suite.  = Outline =  Each pair of FASTQ files are mapped to the reference. Bowtie, bwa or smalt are available....&quot;</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Mapping.py&amp;diff=1140&amp;oldid=prev"/>
				<updated>2017-02-23T11:46:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Introduction =  Another part of Miguel Pnheiros script_tools suite.  = Outline =  Each pair of FASTQ files are mapped to the reference. Bowtie, bwa or smalt are available....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
Another part of Miguel Pnheiros script_tools suite.&lt;br /&gt;
&lt;br /&gt;
= Outline =&lt;br /&gt;
&lt;br /&gt;
Each pair of FASTQ files are mapped to the reference. Bowtie, bwa or smalt are available.&lt;br /&gt;
 run_soft.run_bwa_map(self.sz_sample_name, sz_out_directory, self.sz_index_file, self.sz_file_1, self.sz_file_2, self.sz_single_file, self.n_read_length)&lt;br /&gt;
&lt;br /&gt;
The output sam is converted to bam&lt;br /&gt;
 sz_cmd = &amp;quot;%s view -bS %s%s.sam &amp;gt; %s%s_.bam&amp;quot; % (Constants.SOFTWARE_SAMTOOLS, sz_working_directory, sz_sample_name, sz_working_directory, sz_sample_name)&lt;br /&gt;
&lt;br /&gt;
This bam is then sorted&lt;br /&gt;
 sz_cmd = &amp;quot;%s sort %s%s_.bam %s%s__&amp;quot; % (Constants.SOFTWARE_SAMTOOLS, sz_working_directory, sz_sample_name, sz_working_directory, sz_sample_name)&lt;br /&gt;
&lt;br /&gt;
The MarkDuplicates tool from picard-tools is used to clean out redundant alignments&lt;br /&gt;
 sz_cmd = &amp;quot;java -jar %s/MarkDuplicates.jar INPUT=%s%s__.bam OUTPUT=%s%s.bam M=%s%s_%s.txt&amp;quot; % (Constants.SOFTWARE_PICARD_TOOLS_DIRECTORY, sz_working_directory, sz_sample_name,&lt;br /&gt;
&lt;br /&gt;
This duplicate-marked bam file is then indexed with normal (i.e. not tabix, tabular index):&lt;br /&gt;
 sz_cmd = &amp;quot;%s index %s%s.bam&amp;quot; % (Constants.SOFTWARE_SAMTOOLS, sz_working_directory, sz_sample_name)&lt;br /&gt;
&lt;br /&gt;
We delete the unecessary bam and sams:&lt;br /&gt;
&lt;br /&gt;
 sz_cmd = &amp;quot;rm %s%s_.bam %s%s__.bam %s%s.sam&amp;quot; % (sz_working_directory, sz_sample_name, sz_working_directory, sz_sample_name, sz_working_directory, sz_sample_name)&lt;br /&gt;
&lt;br /&gt;
The end bam files are in fact the duplicate-marked files, so we are ready, but we also generate a coverage report from them:&lt;br /&gt;
 sz_cmd = &amp;quot;%s/genomeCoverageBed -ibam %s%s.bam -bga &amp;gt; %s%s.cov&amp;quot; % (Constants.SOFTWARE_BED_TOOLS, sz_working_directory, sz_sample_name, sz_working_directory, sz_sample_name)&lt;/div&gt;</summary>
		<author><name>Rf</name></author>	</entry>

	</feed>